/* Marble Thinks · Material Receiving usability polish */
.mrr-track-group{overflow:visible}
.mrr-group-head>div:last-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.mt-receiving-header-action{white-space:nowrap}
.mt-receiving-header-action.primary{background:linear-gradient(135deg,#1769ed,#0d47c5)!important;color:#fff!important;border-color:#1769ed!important;box-shadow:0 8px 20px rgba(23,105,237,.18)}
.mrr-piece-table>.mrr-btn[data-raction="add-piece"]{display:none!important}

/* Individual pieces: replace the old 1540px single line with a compact three-row card. */
.mrr-piece-table{overflow:visible!important;display:flex;flex-direction:column;gap:12px}
.mrr-piece-row{
  min-width:0!important;
  width:100%;
  display:grid!important;
  grid-template-columns:126px repeat(5,minmax(0,1fr))!important;
  grid-template-rows:auto auto auto;
  gap:10px 12px!important;
  padding:14px!important;
  border:1px solid #dfe8f3;
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 24px rgba(16,33,59,.045);
  align-items:end!important;
}
.mrr-piece-row>.mrr-piece-no{grid-column:1;grid-row:1/4;align-self:stretch;border-right:1px solid #e8eef6;padding-right:12px;display:flex;flex-direction:column;justify-content:center}
.mrr-piece-row>.mrr-field:nth-child(2){grid-column:2;grid-row:1}
.mrr-piece-row>.mrr-field:nth-child(3){grid-column:3;grid-row:1}
.mrr-piece-row>.mrr-field:nth-child(4){grid-column:4;grid-row:1}
.mrr-piece-row>.mrr-field:nth-child(5){grid-column:5;grid-row:1}
.mrr-piece-row>.mrr-field:nth-child(6){grid-column:6;grid-row:1}
.mrr-piece-row>.mrr-field:nth-child(7){grid-column:2;grid-row:2}
.mrr-piece-row>.mrr-field:nth-child(8){grid-column:3;grid-row:2}
.mrr-piece-row>.mrr-field:nth-child(9){grid-column:4;grid-row:2}
.mrr-piece-row>.mrr-field:nth-child(10){grid-column:5;grid-row:2}
.mrr-piece-row>.mrr-field:nth-child(11){grid-column:6;grid-row:2}
.mrr-piece-row>.mrr-piece-result{grid-column:2/4;grid-row:3;min-height:58px;border-radius:11px;background:#eef5ff;border:1px solid #d7e7ff;padding:9px 12px;display:flex;flex-direction:column;justify-content:center}
.mrr-piece-row>.mrr-piece-sticker{grid-column:4/6;grid-row:3;align-self:stretch;display:flex;align-items:center;gap:9px;padding:7px 0}
.mrr-piece-row>.mrr-icon-btn{grid-column:6;grid-row:3;justify-self:end;align-self:center}
.mrr-piece-row .mrr-field{min-width:0!important}
.mrr-piece-row .mrr-field input,.mrr-piece-row .mrr-field select{width:100%;min-width:0}
.mrr-piece-row .mrr-combo{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:6px}
.mrr-piece-row .mrr-piece-no span{font-size:9px;letter-spacing:.11em;color:#66809f;font-weight:850}
.mrr-piece-row .mrr-piece-no b{font-size:18px;color:#1264df;margin:2px 0}
.mrr-piece-row .mrr-piece-no small{font-size:9px;color:#70839d;overflow-wrap:anywhere}

/* Bulk create panel */
.mt-bulk-panel{margin:12px 0 14px;border:1px solid #bed8ff;background:linear-gradient(180deg,#f7fbff,#eef6ff);border-radius:15px;padding:15px;box-shadow:0 8px 26px rgba(23,105,237,.07)}
.mt-bulk-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:13px}
.mt-bulk-head h4{margin:0 0 3px;color:#122743;font-size:14px}
.mt-bulk-head p{margin:0;color:#687e98;font-size:10px}
.mt-bulk-close{border:0;background:transparent;color:#536b88;font-size:20px;line-height:1;padding:0 3px}
.mt-bulk-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.mt-bulk-field{display:grid;gap:5px}
.mt-bulk-field label{font-size:9px;font-weight:850;color:#2a4262}
.mt-bulk-field input,.mt-bulk-field select{width:100%;border:1px solid #cddaea;background:#fff;border-radius:8px;padding:8px 9px;font-size:10px;color:#122743;outline:none}
.mt-bulk-field input:focus,.mt-bulk-field select:focus{border-color:#1769ed;box-shadow:0 0 0 3px rgba(23,105,237,.09)}
.mt-bulk-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}
.mt-bulk-btn{border:1px solid #cbd8e8;background:#fff;color:#1a3558;border-radius:9px;padding:9px 14px;font-weight:850;font-size:10px}
.mt-bulk-btn.primary{background:linear-gradient(135deg,#1769ed,#0d47c5);border-color:#1769ed;color:#fff}

/* Confirmation modal */
.mt-confirm-backdrop{position:fixed;inset:0;background:rgba(10,25,45,.5);display:grid;place-items:center;padding:22px;z-index:1000;backdrop-filter:blur(2px)}
.mt-confirm-card{width:min(560px,96vw);background:#fff;border:1px solid #dbe5f0;border-radius:18px;box-shadow:0 28px 90px rgba(8,28,58,.28);overflow:hidden}
.mt-confirm-head{padding:20px 22px 13px;border-bottom:1px solid #edf1f6}
.mt-confirm-head .icon{width:42px;height:42px;border-radius:12px;background:#e9f2ff;color:#1769ed;display:grid;place-items:center;font-size:20px;margin-bottom:11px}
.mt-confirm-head h3{margin:0;color:#11243f;font-size:20px}
.mt-confirm-head p{margin:6px 0 0;color:#6d7f95;font-size:11px;line-height:1.5}
.mt-confirm-body{padding:16px 22px}
.mt-confirm-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mt-confirm-summary div{background:#f6f9fd;border:1px solid #e5ecf4;border-radius:10px;padding:9px 11px}
.mt-confirm-summary span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:#7b8da3;font-weight:800}
.mt-confirm-summary b{display:block;margin-top:3px;font-size:11px;color:#1a2e4a;overflow-wrap:anywhere}
.mt-confirm-foot{padding:14px 22px 20px;display:flex;justify-content:flex-end;gap:9px}
.mt-confirm-foot button{border-radius:9px;padding:10px 14px;font-size:10px;font-weight:850;border:1px solid #ccd8e6;background:#fff;color:#213a5a}
.mt-confirm-foot button.primary{background:#1264df;color:#fff;border-color:#1264df}
.mt-receiving-toast{position:fixed;right:24px;bottom:24px;z-index:1200;background:#0f3565;color:#fff;border-radius:11px;padding:12px 16px;font-size:11px;font-weight:800;box-shadow:0 14px 38px rgba(15,53,101,.28);animation:mtToastIn .18s ease-out}
@keyframes mtToastIn{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}

/* Lot / Batch bubble layout */
.mrr-lot-form.mt-lot-polish{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.mt-lot-stat-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.mt-lot-stat{border:1px solid #dfe8f3;background:#fbfdff;border-radius:13px;padding:10px!important;position:relative;min-width:0}
.mt-lot-stat:before{content:'';display:block;width:25px;height:25px;border-radius:8px;background:#e9f2ff;margin-bottom:7px;box-shadow:inset 0 0 0 1px #d8e8ff}
.mt-lot-stat.accepted:before{background:#e8f7ee;box-shadow:inset 0 0 0 1px #d0eddc}
.mt-lot-stat.damaged:before{background:#fff3e3;box-shadow:inset 0 0 0 1px #ffe2b6}
.mt-lot-stat.rejected:before{background:#fff0f0;box-shadow:inset 0 0 0 1px #ffd8d8}
.mt-lot-stat>span{font-size:9px!important;color:#213a5a!important;font-weight:850!important;text-transform:none!important;letter-spacing:0!important}
.mt-lot-stat input{margin-top:5px;background:#fff!important}
.mt-lot-main-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:12px}
.mt-lot-card{border:1px solid #dfe8f3;background:#fff;border-radius:15px;padding:14px;box-shadow:0 7px 22px rgba(16,33,59,.035)}
.mt-lot-card-head{display:flex;gap:9px;align-items:flex-start;margin-bottom:12px}
.mt-lot-card-head .bubble{width:32px;height:32px;border-radius:10px;background:#e9f2ff;color:#1769ed;display:grid;place-items:center;font-weight:900}
.mt-lot-card-head h4{margin:0;color:#142944;font-size:13px}
.mt-lot-card-head p{margin:3px 0 0;color:#74869c;font-size:9px}
.mt-lot-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mt-lot-details-grid .mrr-field:first-child{grid-column:1/-1}
.mt-lot-area-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mt-lot-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.mt-lot-summary .mrr-metric{border:1px solid #dfe8f3!important;background:#fbfdff!important;border-radius:14px!important;padding:14px!important;min-height:92px;display:flex;flex-direction:column;justify-content:center}
.mt-lot-summary .mrr-metric span{font-size:9px!important;font-weight:850!important;color:#5f7691!important}
.mt-lot-summary .mrr-metric b{font-size:18px!important;margin-top:6px!important;color:#1769ed!important}
.mt-lot-summary .mrr-metric.green b{color:#11915b!important}
.mt-lot-summary .mrr-metric.red b,.mt-lot-summary .mrr-metric.amber b{color:#db4b4b!important}
.mt-lot-additional{display:grid;grid-template-columns:1fr 1fr 2fr;gap:10px}

@media(max-width:1280px){
  .mrr-piece-row{grid-template-columns:110px repeat(3,minmax(0,1fr))!important;grid-template-rows:auto!important}
  .mrr-piece-row>*{grid-column:auto!important;grid-row:auto!important}
  .mrr-piece-row>.mrr-piece-no{grid-row:1/4!important}
  .mt-bulk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .mt-lot-stat-strip{grid-template-columns:repeat(3,1fr)}
  .mt-lot-summary{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .mrr-piece-row{grid-template-columns:1fr 1fr!important}
  .mrr-piece-row>.mrr-piece-no{grid-column:1/-1!important;grid-row:auto!important;border-right:0;border-bottom:1px solid #e8eef6;padding:0 0 8px}
  .mt-bulk-grid{grid-template-columns:1fr 1fr}
  .mt-lot-main-grid{grid-template-columns:1fr}
  .mt-lot-stat-strip,.mt-lot-summary{grid-template-columns:1fr 1fr}
  .mt-lot-details-grid,.mt-lot-area-grid,.mt-lot-additional{grid-template-columns:1fr 1fr}
  .mt-lot-additional .mrr-field:last-child{grid-column:1/-1}
}
@media(max-width:620px){
  .mrr-piece-row,.mt-bulk-grid,.mt-lot-stat-strip,.mt-lot-summary,.mt-lot-details-grid,.mt-lot-area-grid,.mt-lot-additional{grid-template-columns:1fr!important}
  .mt-lot-details-grid .mrr-field:first-child,.mt-lot-additional .mrr-field:last-child{grid-column:auto}
  .mt-confirm-summary{grid-template-columns:1fr}
}

/* MR1 · Receiving Register / landing page
   Scoped so the approved register keeps its existing design while the
   action column fits translated Start Receiving labels on desktop. */
.mrr-register-module .mrr-register-table-wrap{
  overflow-x:hidden;
}
.mrr-register-module .mrr-receiving-table{
  width:100%;
  min-width:0;
  table-layout:fixed;
}
.mrr-register-module .mrr-receiving-table th,
.mrr-register-module .mrr-receiving-table td{
  min-width:0;
  overflow-wrap:anywhere;
}
.mrr-register-module .mrr-receiving-table th:nth-child(1),
.mrr-register-module .mrr-receiving-table td:nth-child(1){width:17%}
.mrr-register-module .mrr-receiving-table th:nth-child(2),
.mrr-register-module .mrr-receiving-table td:nth-child(2){width:14%}
.mrr-register-module .mrr-receiving-table th:nth-child(3),
.mrr-register-module .mrr-receiving-table td:nth-child(3){width:15%}
.mrr-register-module .mrr-receiving-table th:nth-child(4),
.mrr-register-module .mrr-receiving-table td:nth-child(4){width:11%}
.mrr-register-module .mrr-receiving-table th:nth-child(5),
.mrr-register-module .mrr-receiving-table td:nth-child(5){width:18%}
.mrr-register-module .mrr-receiving-table th:nth-child(6),
.mrr-register-module .mrr-receiving-table td:nth-child(6){width:11%}
.mrr-register-module .mrr-receiving-table .mrr-action-col{
  width:14%;
  min-width:132px;
  text-align:end;
  white-space:nowrap;
}
.mrr-register-module .mrr-open-button{
  max-width:100%;
  white-space:nowrap;
}
.mrr-register-module .mrr-start-receiving{
  flex:0 0 auto;
  white-space:nowrap;
}
.mrr-register-module[dir="rtl"] .mrr-receiving-table th{
  text-align:right;
}
.mrr-register-module[dir="rtl"] .mrr-search-box>span{
  padding-left:0;
  padding-right:14px;
}
.mrr-register-module[dir="rtl"] .mrr-receiving-table .mrr-action-col{
  text-align:end;
}
@media(max-width:1150px){
  .mrr-register-module .mrr-register-table-wrap{
    overflow-x:auto;
  }
  .mrr-register-module .mrr-receiving-table{
    min-width:1050px;
    table-layout:auto;
  }
  .mrr-register-module .mrr-receiving-table .mrr-action-col{
    width:160px;
    min-width:160px;
  }
}
@media(max-width:720px){
  .mrr-register-module .mrr-page-header{
    align-items:flex-start;
    flex-direction:column;
  }
  .mrr-register-module .mrr-start-receiving{
    width:100%;
  }
  .mrr-register-module .mrr-list-controls{
    align-items:stretch;
    flex-direction:column;
  }
  .mrr-register-module .mrr-search-box{
    max-width:none;
    width:100%;
  }
  .mrr-register-module .mrr-sort-control select{
    width:100%;
  }
}


/* MR2 · Truck Arrival final-pass page
   Scoped to Receiving step 1 only. Pages 3–5 retain their existing presentation. */
.mrr-arrival-page .mrr-stepper{
  margin-bottom:22px;
  border:1px solid #dce6f2;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(16,33,59,.045);
  background:#fff;
  overflow:hidden;
}
.mrr-arrival-page .mrr-stepper button{
  min-height:62px;
  padding:14px 16px;
  border-right-color:#e5ecf4;
  color:#5f6d85;
  font-size:13px;
  font-weight:850;
  letter-spacing:-.01em;
}
.mrr-arrival-page .mrr-stepper button span{
  width:30px;
  height:30px;
  margin-inline-end:9px;
  background:#edf2f8;
  color:#5b6d84;
  font-size:12px;
}
.mrr-arrival-page .mrr-stepper button.active{
  background:#eaf3ff;
  color:#1769ed;
}
.mrr-arrival-page .mrr-stepper button.active span{
  background:#1769ed;
  color:#fff;
  box-shadow:0 5px 14px rgba(23,105,237,.2);
}
.mrr-arrival-page .mrr-form-paper{
  min-height:0;
  padding:26px 28px 28px;
  border:1px solid #dfe7f1;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(16,33,59,.045);
}
.mrr-arrival-page .mrr-arrival-title-row{
  gap:15px;
  padding-bottom:20px;
  margin-bottom:22px;
  align-items:center;
}
.mrr-arrival-page .mrr-arrival-title-row>span{
  flex:0 0 48px;
  width:48px;
  height:48px;
  border-radius:14px;
  font-size:0;
  background-color:#e7f1ff;
  background-repeat:no-repeat;
  background-position:center;
  background-size:25px 25px;
  box-shadow:inset 0 0 0 1px #d7e7ff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231769ed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3z'/%3E%3Cpath d='M14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}
.mrr-arrival-page .mrr-arrival-title-row h2{
  margin:0 0 4px;
  color:#10233f;
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
}
.mrr-arrival-page .mrr-arrival-title-row p{
  margin:0;
  color:#667892;
  font-size:13px;
  line-height:1.45;
}
.mrr-arrival-page .mrr-grid{
  gap:14px;
  margin-bottom:18px;
}
.mrr-arrival-page .mrr-field{
  position:relative;
  gap:7px;
  min-width:0;
  color:#1d304c;
  font-size:11px;
  font-weight:850;
}
.mrr-arrival-page .mrr-field>span{
  min-height:15px;
  display:flex;
  align-items:center;
}
.mrr-arrival-page .mrr-required{
  margin-inline-start:4px;
  color:#df3d46;
  font-style:normal;
  font-weight:900;
}
.mrr-arrival-page .mrr-field input,
.mrr-arrival-page .mrr-field select,
.mrr-arrival-page .mrr-readonly-control{
  width:100%;
  height:44px;
  min-height:44px;
  border:1px solid #ced9e7;
  border-radius:10px;
  background-color:#fff;
  color:#182b46;
  padding:0 12px 0 44px;
  font:inherit;
  font-weight:750;
  outline:none;
  box-shadow:0 1px 2px rgba(16,33,59,.02);
  transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;
  background-repeat:no-repeat;
  background-position:14px center;
  background-size:17px 17px;
}
.mrr-arrival-page .mrr-readonly-control{
  display:flex;
  align-items:center;
  background-color:#f7faff;
  color:#324966;
  cursor:default;
}
.mrr-arrival-page .mrr-field input::placeholder{
  color:#91a0b3;
  font-weight:550;
}
.mrr-arrival-page .mrr-field input:focus,
.mrr-arrival-page .mrr-field select:focus{
  border-color:#82aef4;
  box-shadow:0 0 0 3px rgba(23,105,237,.09);
}
.mrr-arrival-page .mrr-field select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:38px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e728d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M15 3v4h4'/%3E%3C/svg%3E");
  background-position:calc(100% - 13px) center,14px center;
  background-size:16px 16px,17px 17px;
}
.mrr-arrival-page [data-rfield="warehouseId"]{
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e728d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 4l9 6'/%3E%3Cpath d='M5 9v11h14V9'/%3E%3Cpath d='M9 20v-7h6v7'/%3E%3C/svg%3E");
}
.mrr-arrival-page .mrr-received-by .mrr-readonly-control{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="receivingDate"],
.mrr-arrival-page [data-rfield="actualArrivalDate"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="truck.slipNo"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 3 8 21M16 3l-2 18M4 9h15M3 15h15'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="truck.weighbridgeName"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21h16M6 21V8h12v13M9 12h6M9 16h6'/%3E%3Cpath d='M5 8h14l-2-4H7z'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="truck.vehicleNo"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="truck.biltyNo"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6z'/%3E%3Cpath d='M15 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="truck.driverName"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="truck.driverPhone"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-3 2a16 16 0 0 0 5 5l2-3 5 2v4c0 1-1 2-2 2C9 21 3 15 3 6c0-1 1-2 2-2z'/%3E%3C/svg%3E");
}
.mrr-arrival-page [data-rfield="truck.grossKg"],
.mrr-arrival-page [data-rfield="truck.tareKg"]{
  padding-right:48px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355c8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8h10l2 12H5z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E");
}
.mrr-arrival-page .mrr-input-unit{
  position:absolute;
  right:12px;
  bottom:13px;
  color:#3d5878;
  font-size:11px;
  font-style:normal;
  font-weight:850;
  pointer-events:none;
}
.mrr-arrival-page .mrr-po-strip{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:0;
  margin:3px 0 20px;
  overflow:hidden;
  border:1px solid #d4e4f7;
  border-radius:13px;
  background:#f1f7ff;
}
.mrr-arrival-page .mrr-po-strip>div{
  min-width:0;
  padding:13px 16px;
  justify-content:center;
}
.mrr-arrival-page .mrr-po-strip>div+div{
  border-inline-start:1px solid #d7e5f5;
}
.mrr-arrival-page .mrr-po-strip span{
  color:#657794;
  font-size:9px;
  letter-spacing:.08em;
}
.mrr-arrival-page .mrr-po-strip b{
  margin-top:5px;
  color:#122642;
  font-size:12px;
  overflow-wrap:anywhere;
}
.mrr-arrival-page .mrr-truck-card{
  grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr) 46px minmax(0,1fr);
  align-items:end;
  gap:10px;
  margin-top:4px;
  padding:18px 20px;
  border:0;
  border-radius:14px;
  background:#eef5fd;
}
.mrr-arrival-page .mrr-minus,
.mrr-arrival-page .mrr-equals{
  height:44px;
  color:#526681;
  font-size:24px;
  font-weight:800;
}
.mrr-arrival-page .mrr-truck-card .mrr-metric{
  min-height:44px;
  padding:0;
  border:0;
  background:transparent;
}
.mrr-arrival-page .mrr-truck-card .mrr-metric span{
  display:block;
  min-height:15px;
  margin-bottom:7px;
  color:#1d304c;
  font-size:11px;
  font-weight:850;
}
.mrr-arrival-page .mrr-truck-card .mrr-metric b{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 13px;
  border:1px solid #bcd7fb;
  border-radius:10px;
  background:#dcecff;
  color:#1769ed;
  font-size:20px;
  font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.32);
}
.mrr-arrival-page .mrr-net-load b strong{
  font:inherit;
  font-weight:900;
}
.mrr-arrival-page .mrr-net-load b em{
  color:#26466c;
  font-size:11px;
  font-style:normal;
  font-weight:850;
}
.mrr-arrival-page .mrr-form-footer{
  position:static;
  grid-template-columns:1fr auto;
  margin-top:14px;
  padding:14px 16px;
  border:1px solid #dfe7f1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 26px rgba(16,33,59,.04);
}
.mrr-arrival-page .mrr-form-footer>div:nth-child(2){
  display:flex;
  gap:10px;
  justify-self:end;
}
.mrr-arrival-page .mrr-form-footer .mrr-btn{
  min-height:42px;
  padding:10px 18px;
  border-radius:10px;
  font-size:11px;
  font-weight:900;
}
.mrr-arrival-page .mrr-form-footer .mrr-btn.primary{
  min-width:118px;
  background:linear-gradient(135deg,#1769ed,#0d56d8);
  border-color:#1769ed;
  box-shadow:0 8px 18px rgba(23,105,237,.18);
}
.mrr-arrival-page[dir="rtl"] .mrr-field input,
.mrr-arrival-page[dir="rtl"] .mrr-readonly-control{
  padding-left:12px;
  padding-right:44px;
  background-position:calc(100% - 14px) center;
}
.mrr-arrival-page[dir="rtl"] .mrr-field select{
  padding-left:38px;
  padding-right:44px;
  background-position:13px center,calc(100% - 14px) center;
}
.mrr-arrival-page[dir="rtl"] [data-rfield="truck.grossKg"],
.mrr-arrival-page[dir="rtl"] [data-rfield="truck.tareKg"]{
  padding-left:48px;
}
.mrr-arrival-page[dir="rtl"] .mrr-input-unit{
  right:auto;
  left:12px;
}
@media(max-width:1180px){
  .mrr-arrival-page .mrr-grid.four{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mrr-arrival-page .mrr-truck-card{
    grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr) 38px minmax(0,1fr);
  }
}
@media(max-width:860px){
  .mrr-arrival-page .mrr-form-paper{
    padding:20px;
  }
  .mrr-arrival-page .mrr-stepper{
    overflow-x:auto;
    grid-template-columns:repeat(5,minmax(175px,1fr));
  }
  .mrr-arrival-page .mrr-grid.three,
  .mrr-arrival-page .mrr-grid.four{
    grid-template-columns:1fr 1fr;
  }
  .mrr-arrival-page .mrr-po-strip{
    grid-template-columns:1fr 1fr;
  }
  .mrr-arrival-page .mrr-po-strip>div:nth-child(3),
  .mrr-arrival-page .mrr-po-strip>div:nth-child(4){
    border-top:1px solid #d7e5f5;
  }
  .mrr-arrival-page .mrr-po-strip>div:nth-child(3){
    border-inline-start:0;
  }
  .mrr-arrival-page .mrr-truck-card{
    grid-template-columns:1fr;
  }
  .mrr-arrival-page .mrr-minus,
  .mrr-arrival-page .mrr-equals{
    display:none;
  }
}
@media(max-width:580px){
  .mrr-arrival-page .mrr-form-paper{
    padding:16px;
    border-radius:16px;
  }
  .mrr-arrival-page .mrr-arrival-title-row{
    align-items:flex-start;
  }
  .mrr-arrival-page .mrr-arrival-title-row>span{
    flex-basis:42px;
    width:42px;
    height:42px;
    background-size:22px 22px;
  }
  .mrr-arrival-page .mrr-arrival-title-row h2{
    font-size:20px;
  }
  .mrr-arrival-page .mrr-grid.three,
  .mrr-arrival-page .mrr-grid.four,
  .mrr-arrival-page .mrr-po-strip{
    grid-template-columns:1fr;
  }
  .mrr-arrival-page .mrr-po-strip>div+div{
    border-inline-start:0;
    border-top:1px solid #d7e5f5;
  }
  .mrr-arrival-page .mrr-form-footer{
    grid-template-columns:1fr;
  }
  .mrr-arrival-page .mrr-form-footer>div:first-child,
  .mrr-arrival-page .mrr-form-footer>div:nth-child(2){
    width:100%;
    justify-self:stretch;
  }
  .mrr-arrival-page .mrr-form-footer .mrr-btn{
    flex:1 1 0;
  }
}


/* MR2 · Page 3 Slab Receiving final-pass
   Scoped to Piece / Lot Tracking. Block and Counter receive their dedicated
   material presentation in MR3 and MR4. */
.mrr-tracking-page{
  --mrr-track-border:#dfe7f1;
  --mrr-track-soft:#f6f9fd;
  --mrr-track-blue:#1769ed;
  --mrr-track-blue-soft:#eaf3ff;
  --mrr-track-text:#10233f;
  --mrr-track-muted:#667892;
}
.mrr-tracking-page .mrr-stepper{
  margin-bottom:22px;
  border:1px solid #dce6f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(16,33,59,.045);
  overflow:hidden;
}
.mrr-tracking-page .mrr-stepper button{
  min-height:62px;
  padding:14px 16px;
  border-right-color:#e5ecf4;
  color:#5f6d85;
  font-size:13px;
  font-weight:850;
  letter-spacing:-.01em;
}
.mrr-tracking-page .mrr-stepper button span{
  width:30px;
  height:30px;
  margin-inline-end:9px;
  background:#edf2f8;
  color:#5b6d84;
  font-size:12px;
}
.mrr-tracking-page .mrr-stepper button.active{
  background:var(--mrr-track-blue-soft);
  color:var(--mrr-track-blue);
}
.mrr-tracking-page .mrr-stepper button.active span{
  background:var(--mrr-track-blue);
  color:#fff;
  box-shadow:0 5px 14px rgba(23,105,237,.2);
}
.mrr-tracking-page .mrr-form-paper{
  min-height:0;
  padding:26px 28px 28px;
  border:1px solid var(--mrr-track-border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(16,33,59,.045);
}
.mrr-tracking-page .mrr-tracking-title{
  display:flex;
  gap:15px;
  align-items:center;
  padding-bottom:20px;
  margin-bottom:22px;
  border-bottom:1px solid #edf1f6;
}
.mrr-tracking-page .mrr-tracking-title>span{
  flex:0 0 48px;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#e7f1ff;
  color:var(--mrr-track-blue);
  font-size:16px;
  font-weight:900;
  box-shadow:inset 0 0 0 1px #d7e7ff;
}
.mrr-tracking-page .mrr-tracking-title h2{
  margin:0 0 4px;
  color:var(--mrr-track-text);
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
}
.mrr-tracking-page .mrr-tracking-title p{
  margin:0;
  color:var(--mrr-track-muted);
  font-size:13px;
  line-height:1.45;
}
.mrr-tracking-page .mrr-form-footer{
  position:static;
  z-index:auto;
  grid-template-columns:1fr auto;
  margin-top:14px;
  padding:14px 16px;
  border:1px solid var(--mrr-track-border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 26px rgba(16,33,59,.04);
}
.mrr-tracking-page .mrr-form-footer>div:nth-child(2){
  display:flex;
  justify-self:end;
  gap:10px;
}
.mrr-tracking-page .mrr-form-footer .mrr-btn{
  min-height:42px;
  padding:10px 18px;
  border-radius:10px;
  font-size:11px;
  font-weight:900;
}
.mrr-tracking-page .mrr-form-footer .mrr-btn.primary{
  min-width:118px;
  background:linear-gradient(135deg,#1769ed,#0d56d8);
  border-color:#1769ed;
  box-shadow:0 8px 18px rgba(23,105,237,.18);
}

/* Slab group */
.mrr-tracking-page .mrr-slab-group{
  margin:0 0 20px;
  padding:0;
  overflow:hidden;
  border:1px solid #dce6f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 9px 28px rgba(16,33,59,.045);
}
.mrr-tracking-page .mrr-slab-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid #e8eef6;
}
.mrr-tracking-page .mrr-slab-material{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}
.mrr-tracking-page .mrr-material-type-badge{
  flex:0 0 auto;
  min-width:58px;
  padding:7px 10px;
  border:1px solid #cfe0fb;
  border-radius:10px;
  background:#eef5ff;
  color:#1769ed;
  text-align:center;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.mrr-tracking-page .mrr-slab-material h3{
  margin:0;
  color:#10233f;
  font-size:17px;
  font-weight:900;
  overflow-wrap:anywhere;
}
.mrr-tracking-page .mrr-slab-material p{
  margin:4px 0 0;
  color:#6b7e97;
  font-size:10px;
  font-weight:700;
}
.mrr-tracking-page .mrr-slab-group-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.mrr-tracking-page .mrr-slab-type-lock{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 20px 0;
  padding:11px 13px;
  border:1px solid #d6e6fa;
  border-radius:11px;
  background:#f3f8ff;
}
.mrr-tracking-page .mrr-slab-type-lock>span{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#e3efff;
  font-size:13px;
}
.mrr-tracking-page .mrr-slab-type-lock b{
  display:block;
  color:#17375f;
  font-size:10px;
  font-weight:900;
}
.mrr-tracking-page .mrr-slab-type-lock small{
  display:block;
  margin-top:2px;
  color:#6d8099;
  font-size:9px;
  line-height:1.35;
}
.mrr-tracking-page .mrr-slab-method{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:14px 20px 18px;
  padding:5px;
  border:1px solid #dfe8f3;
  border-radius:13px;
  background:#f6f9fd;
}
.mrr-tracking-page .mrr-slab-method button{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:12px 14px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#526984;
  text-align:start;
  cursor:pointer;
}
.mrr-tracking-page .mrr-slab-method button b{
  font-size:11px;
  font-weight:900;
}
.mrr-tracking-page .mrr-slab-method button small{
  font-size:9px;
  font-weight:650;
  line-height:1.35;
}
.mrr-tracking-page .mrr-slab-method button.active{
  border-color:#c9dcfa;
  background:#fff;
  color:#1769ed;
  box-shadow:0 6px 16px rgba(23,105,237,.09);
}

/* Slab pieces */
.mrr-tracking-page .mrr-slab-piece-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:0 20px 20px;
}
.mrr-tracking-page .mrr-slab-piece-card{
  overflow:hidden;
  border:1px solid #dfe7f1;
  border-radius:15px;
  background:#fff;
}
.mrr-tracking-page .mrr-slab-piece-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #ebf0f6;
  background:#f8fbff;
}
.mrr-tracking-page .mrr-slab-piece-id{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.mrr-tracking-page .mrr-slab-piece-id span{
  color:#6e8199;
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.mrr-tracking-page .mrr-slab-piece-id b{
  color:#1769ed;
  font-size:18px;
  font-weight:900;
}
.mrr-tracking-page .mrr-slab-piece-id small{
  color:#6e8199;
  font-size:9px;
  overflow-wrap:anywhere;
}
.mrr-tracking-page .mrr-slab-remove{
  width:30px;
  height:30px;
  border-radius:8px;
}
.mrr-tracking-page .mrr-slab-fields{
  display:grid;
  gap:12px;
  padding:14px 14px 0;
}
.mrr-tracking-page .mrr-slab-dimensions{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.mrr-tracking-page .mrr-slab-measurements,
.mrr-tracking-page .mrr-slab-quality{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.mrr-tracking-page .mrr-slab-group .mrr-field{
  min-width:0;
  gap:6px;
  color:#1d304c;
  font-size:10px;
  font-weight:850;
}
.mrr-tracking-page .mrr-slab-group .mrr-field>span{
  min-height:14px;
}
.mrr-tracking-page .mrr-slab-group .mrr-field input,
.mrr-tracking-page .mrr-slab-group .mrr-field select{
  width:100%;
  min-width:0;
  height:42px;
  min-height:42px;
  padding:0 11px;
  border:1px solid #ced9e7;
  border-radius:9px;
  background:#fff;
  color:#182b46;
  font:inherit;
  font-weight:750;
  outline:none;
  box-shadow:0 1px 2px rgba(16,33,59,.02);
}
.mrr-tracking-page .mrr-slab-group .mrr-field input:focus,
.mrr-tracking-page .mrr-slab-group .mrr-field select:focus{
  border-color:#82aef4;
  box-shadow:0 0 0 3px rgba(23,105,237,.09);
}
.mrr-tracking-page .mrr-slab-group .mrr-field input::placeholder{
  color:#92a0b2;
  font-weight:550;
}
.mrr-tracking-page .mrr-slab-group .mrr-field small{
  min-height:12px;
  color:#7c8da2;
  font-size:8px;
  font-weight:650;
  line-height:1.3;
}
.mrr-tracking-page .mrr-slab-group .mrr-required{
  margin-inline-start:3px;
  color:#d8434e;
  font-style:normal;
}
.mrr-tracking-page .mrr-slab-group .mrr-combo{
  display:grid;
  grid-template-columns:minmax(0,1fr) 74px;
  gap:7px;
}
.mrr-tracking-page .mrr-slab-piece-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:14px;
  padding:12px 14px;
  border-top:1px solid #edf1f6;
  background:#fbfdff;
}
.mrr-tracking-page .mrr-slab-calculation{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(130px,1fr));
  gap:8px;
}
.mrr-tracking-page .mrr-slab-metric{
  min-width:0;
  padding:8px 10px;
  border:1px solid #e1e8f1;
  border-radius:9px;
  background:#fff;
}
.mrr-tracking-page .mrr-slab-metric span{
  display:block;
  color:#70839a;
  font-size:8px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.mrr-tracking-page .mrr-slab-metric b{
  display:block;
  margin-top:3px;
  color:#18304e;
  font-size:12px;
  font-weight:900;
}
.mrr-tracking-page .mrr-slab-metric b em{
  color:#627690;
  font-size:9px;
  font-style:normal;
}
.mrr-tracking-page .mrr-slab-metric.blue{
  border-color:#d3e3fb;
  background:#f0f6ff;
}
.mrr-tracking-page .mrr-slab-metric.blue b{color:#1769ed}
.mrr-tracking-page .mrr-slab-metric.green{border-color:#d9ebdf;background:#f4fbf6}
.mrr-tracking-page .mrr-slab-metric.amber{border-color:#f2e2bc;background:#fff9ea}
.mrr-tracking-page .mrr-slab-metric.red{border-color:#f0d1d5;background:#fff5f6}
.mrr-tracking-page .mrr-slab-piece-foot .mrr-piece-sticker{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:wrap;
}
.mrr-tracking-page .mrr-sticker-state{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
}
.mrr-tracking-page .mrr-sticker-state b{font-size:9px;color:#274567}
.mrr-tracking-page .mrr-sticker-state small{font-size:8px;color:#6f8096}
.mrr-tracking-page .mrr-sticker-state small.needs-reprint{color:#b56a00}
.mrr-tracking-page .mrr-add-slab{
  align-self:flex-start;
  display:inline-flex!important;
  margin-top:0;
}

/* Slab Lot / Batch */
.mrr-tracking-page .mrr-slab-lot{
  display:grid;
  gap:14px;
  padding:0 20px 20px;
}
.mrr-tracking-page .mrr-slab-lot-section{
  padding:15px;
  border:1px solid #e0e8f2;
  border-radius:14px;
  background:#fff;
}
.mrr-tracking-page .mrr-slab-section-head{
  margin-bottom:12px;
}
.mrr-tracking-page .mrr-slab-section-head h4{
  margin:0;
  color:#18304e;
  font-size:12px;
  font-weight:900;
}
.mrr-tracking-page .mrr-slab-section-head p{
  margin:4px 0 0;
  color:#74869d;
  font-size:9px;
  line-height:1.4;
}
.mrr-tracking-page .mrr-slab-lot .mrr-slab-fields{
  padding:0;
}
.mrr-tracking-page .mrr-slab-lot-qty,
.mrr-tracking-page .mrr-slab-lot-measure{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.mrr-tracking-page .mrr-slab-lot-details{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.mrr-tracking-page .mrr-slab-lot-quality{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.mrr-tracking-page .mrr-slab-classification-summary,
.mrr-tracking-page .mrr-slab-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

/* RTL */
.mrr-tracking-page[dir="rtl"] .mrr-slab-method button,
.mrr-tracking-page[dir="rtl"] .mrr-sticker-state{
  align-items:flex-start;
  text-align:right;
}
.mrr-tracking-page[dir="rtl"] .mrr-slab-material,
.mrr-tracking-page[dir="rtl"] .mrr-slab-type-lock{
  text-align:right;
}

/* Responsive Page 3 */
@media(max-width:1180px){
  .mrr-tracking-page .mrr-slab-dimensions,
  .mrr-tracking-page .mrr-slab-lot-qty,
  .mrr-tracking-page .mrr-slab-lot-details,
  .mrr-tracking-page .mrr-slab-lot-measure{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:860px){
  .mrr-tracking-page .mrr-form-paper{padding:20px}
  .mrr-tracking-page .mrr-stepper{
    overflow-x:auto;
    grid-template-columns:repeat(5,minmax(175px,1fr));
  }
  .mrr-tracking-page .mrr-slab-group-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .mrr-tracking-page .mrr-slab-group-actions{justify-content:flex-start}
  .mrr-tracking-page .mrr-slab-measurements,
  .mrr-tracking-page .mrr-slab-quality,
  .mrr-tracking-page .mrr-slab-lot-quality{
    grid-template-columns:1fr 1fr;
  }
  .mrr-tracking-page .mrr-slab-classification-summary,
  .mrr-tracking-page .mrr-slab-summary-grid{
    grid-template-columns:1fr 1fr;
  }
  .mrr-tracking-page .mrr-slab-piece-foot{
    align-items:stretch;
    flex-direction:column;
  }
  .mrr-tracking-page .mrr-slab-piece-foot .mrr-piece-sticker{
    justify-content:flex-start;
  }
}
@media(max-width:580px){
  .mrr-tracking-page .mrr-form-paper{
    padding:16px;
    border-radius:16px;
  }
  .mrr-tracking-page .mrr-tracking-title{align-items:flex-start}
  .mrr-tracking-page .mrr-tracking-title>span{
    flex-basis:42px;
    width:42px;
    height:42px;
  }
  .mrr-tracking-page .mrr-tracking-title h2{font-size:20px}
  .mrr-tracking-page .mrr-slab-group-head{padding:15px}
  .mrr-tracking-page .mrr-slab-type-lock{margin:12px 15px 0}
  .mrr-tracking-page .mrr-slab-method{
    grid-template-columns:1fr;
    margin:12px 15px 15px;
  }
  .mrr-tracking-page .mrr-slab-piece-list,
  .mrr-tracking-page .mrr-slab-lot{
    padding-left:15px;
    padding-right:15px;
    padding-bottom:15px;
  }
  .mrr-tracking-page .mrr-slab-dimensions,
  .mrr-tracking-page .mrr-slab-measurements,
  .mrr-tracking-page .mrr-slab-quality,
  .mrr-tracking-page .mrr-slab-lot-qty,
  .mrr-tracking-page .mrr-slab-lot-details,
  .mrr-tracking-page .mrr-slab-lot-measure,
  .mrr-tracking-page .mrr-slab-lot-quality,
  .mrr-tracking-page .mrr-slab-classification-summary,
  .mrr-tracking-page .mrr-slab-summary-grid{
    grid-template-columns:1fr;
  }
  .mrr-tracking-page .mrr-slab-calculation{grid-template-columns:1fr 1fr}
  .mrr-tracking-page .mrr-add-slab{width:100%;justify-content:center}
  .mrr-tracking-page .mrr-form-footer{grid-template-columns:1fr}
  .mrr-tracking-page .mrr-form-footer>div:first-child,
  .mrr-tracking-page .mrr-form-footer>div:nth-child(2){
    width:100%;
    justify-self:stretch;
  }
  .mrr-tracking-page .mrr-form-footer .mrr-btn{flex:1 1 0}
}


/* MR3 · Page 3 Block Receiving final-pass */
.mrr-tracking-page .mrr-block-group{
  margin:0 0 20px;
  padding:0;
  overflow:hidden;
  border:1px solid #dce6f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 9px 28px rgba(16,33,59,.045);
}
.mrr-tracking-page .mrr-block-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid #e8eef6;
}
.mrr-tracking-page .mrr-block-material{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}
.mrr-tracking-page .mrr-block-material h3{
  margin:0;
  color:#10233f;
  font-size:17px;
  font-weight:900;
  overflow-wrap:anywhere;
}
.mrr-tracking-page .mrr-block-material p{
  margin:4px 0 0;
  color:#6b7e97;
  font-size:10px;
  font-weight:700;
}
.mrr-tracking-page .mrr-block-group-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.mrr-tracking-page .mrr-block-type-lock{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 20px 0;
  padding:11px 13px;
  border:1px solid #d6e6fa;
  border-radius:11px;
  background:#f3f8ff;
}
.mrr-tracking-page .mrr-block-type-lock>span{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#e3efff;
  font-size:13px;
}
.mrr-tracking-page .mrr-block-type-lock b{
  display:block;
  color:#17375f;
  font-size:10px;
  font-weight:900;
}
.mrr-tracking-page .mrr-block-type-lock small{
  display:block;
  margin-top:2px;
  color:#6d8099;
  font-size:9px;
  line-height:1.35;
}
.mrr-tracking-page .mrr-block-method{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:14px 20px 18px;
  padding:5px;
  border:1px solid #dfe8f3;
  border-radius:13px;
  background:#f6f9fd;
}
.mrr-tracking-page .mrr-block-method button{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:12px 14px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#526984;
  text-align:start;
  cursor:pointer;
}
.mrr-tracking-page .mrr-block-method button b{
  font-size:11px;
  font-weight:900;
}
.mrr-tracking-page .mrr-block-method button small{
  font-size:9px;
  font-weight:650;
  line-height:1.35;
}
.mrr-tracking-page .mrr-block-method button.active{
  border-color:#c9dcfa;
  background:#fff;
  color:#1769ed;
  box-shadow:0 6px 16px rgba(23,105,237,.09);
}

/* Individual blocks */
.mrr-tracking-page .mrr-block-piece-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:0 20px 20px;
}
.mrr-tracking-page .mrr-block-piece-card{
  overflow:hidden;
  border:1px solid #dfe7f1;
  border-radius:15px;
  background:#fff;
}
.mrr-tracking-page .mrr-block-piece-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #ebf0f6;
  background:#f8fbff;
}
.mrr-tracking-page .mrr-block-piece-id{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.mrr-tracking-page .mrr-block-piece-id span{
  color:#6e8199;
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.mrr-tracking-page .mrr-block-piece-id b{
  color:#1769ed;
  font-size:18px;
  font-weight:900;
}
.mrr-tracking-page .mrr-block-piece-id small{
  color:#6e8199;
  font-size:9px;
  overflow-wrap:anywhere;
}
.mrr-tracking-page .mrr-block-fields{
  display:grid;
  gap:12px;
  padding:14px 14px 0;
}
.mrr-tracking-page .mrr-block-identity{grid-template-columns:minmax(220px,420px)}
.mrr-tracking-page .mrr-block-dimensions{grid-template-columns:repeat(4,minmax(0,1fr))}
.mrr-tracking-page .mrr-block-measurements{grid-template-columns:repeat(2,minmax(0,1fr))}
.mrr-tracking-page .mrr-block-quality{grid-template-columns:repeat(3,minmax(0,1fr))}
.mrr-tracking-page .mrr-block-group .mrr-field{
  min-width:0;
  gap:6px;
  color:#1d304c;
  font-size:10px;
  font-weight:850;
}
.mrr-tracking-page .mrr-block-group .mrr-field>span{min-height:14px}
.mrr-tracking-page .mrr-block-group .mrr-field input,
.mrr-tracking-page .mrr-block-group .mrr-field select{
  width:100%;
  min-width:0;
  height:42px;
  min-height:42px;
  padding:0 11px;
  border:1px solid #ced9e7;
  border-radius:9px;
  background:#fff;
  color:#182b46;
  font:inherit;
  font-weight:750;
  outline:none;
  box-shadow:0 1px 2px rgba(16,33,59,.02);
}
.mrr-tracking-page .mrr-block-group .mrr-field input:focus,
.mrr-tracking-page .mrr-block-group .mrr-field select:focus{
  border-color:#82aef4;
  box-shadow:0 0 0 3px rgba(23,105,237,.09);
}
.mrr-tracking-page .mrr-block-group .mrr-field small{
  min-height:12px;
  color:#7c8da2;
  font-size:8px;
  font-weight:650;
  line-height:1.3;
}
.mrr-tracking-page .mrr-block-group .mrr-required{
  margin-inline-start:3px;
  color:#d8434e;
  font-style:normal;
}
.mrr-tracking-page .mrr-block-piece-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:14px;
  padding:12px 14px;
  border-top:1px solid #edf1f6;
  background:#fbfdff;
}
.mrr-tracking-page .mrr-block-calculation{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(130px,1fr));
  gap:8px;
}
.mrr-tracking-page .mrr-block-metric{
  min-width:0;
  padding:8px 10px;
  border:1px solid #e1e8f1;
  border-radius:9px;
  background:#fff;
}
.mrr-tracking-page .mrr-block-metric span{
  display:block;
  color:#70839a;
  font-size:8px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.mrr-tracking-page .mrr-block-metric b{
  display:block;
  margin-top:3px;
  color:#18304e;
  font-size:12px;
  font-weight:900;
}
.mrr-tracking-page .mrr-block-metric b em{
  color:#627690;
  font-size:9px;
  font-style:normal;
}
.mrr-tracking-page .mrr-block-metric.blue{border-color:#d3e3fb;background:#f0f6ff}
.mrr-tracking-page .mrr-block-metric.blue b{color:#1769ed}
.mrr-tracking-page .mrr-block-metric.green{border-color:#d9ebdf;background:#f4fbf6}
.mrr-tracking-page .mrr-block-metric.amber{border-color:#f2e2bc;background:#fff9ea}
.mrr-tracking-page .mrr-block-metric.red{border-color:#f0d1d5;background:#fff5f6}
.mrr-tracking-page .mrr-block-piece-foot .mrr-piece-sticker{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:wrap;
}
.mrr-tracking-page .mrr-add-block{
  align-self:flex-start;
  display:inline-flex!important;
}

/* Block lot */
.mrr-tracking-page .mrr-block-lot{
  display:grid;
  gap:14px;
  padding:0 20px 20px;
}
.mrr-tracking-page .mrr-block-lot-section{
  padding:15px;
  border:1px solid #e0e8f2;
  border-radius:14px;
  background:#fff;
}
.mrr-tracking-page .mrr-block-section-head{margin-bottom:12px}
.mrr-tracking-page .mrr-block-section-head h4{
  margin:0;
  color:#18304e;
  font-size:12px;
  font-weight:900;
}
.mrr-tracking-page .mrr-block-section-head p{
  margin:4px 0 0;
  color:#74869d;
  font-size:9px;
  line-height:1.4;
}
.mrr-tracking-page .mrr-block-lot .mrr-block-fields{padding:0}
.mrr-tracking-page .mrr-block-lot-qty{grid-template-columns:repeat(4,minmax(0,1fr))}
.mrr-tracking-page .mrr-block-lot-details{grid-template-columns:repeat(5,minmax(0,1fr))}
.mrr-tracking-page .mrr-block-lot-measure{grid-template-columns:repeat(3,minmax(0,1fr))}
.mrr-tracking-page .mrr-block-lot-quality{grid-template-columns:repeat(3,minmax(0,1fr))}
.mrr-tracking-page .mrr-block-classification-summary,
.mrr-tracking-page .mrr-block-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.mrr-tracking-page[dir="rtl"] .mrr-block-method button,
.mrr-tracking-page[dir="rtl"] .mrr-block-material,
.mrr-tracking-page[dir="rtl"] .mrr-block-type-lock{
  text-align:right;
}

@media(max-width:1180px){
  .mrr-tracking-page .mrr-block-dimensions,
  .mrr-tracking-page .mrr-block-lot-qty,
  .mrr-tracking-page .mrr-block-lot-details{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:860px){
  .mrr-tracking-page .mrr-block-group-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .mrr-tracking-page .mrr-block-group-actions{justify-content:flex-start}
  .mrr-tracking-page .mrr-block-quality,
  .mrr-tracking-page .mrr-block-lot-measure,
  .mrr-tracking-page .mrr-block-lot-quality{
    grid-template-columns:1fr 1fr;
  }
  .mrr-tracking-page .mrr-block-classification-summary,
  .mrr-tracking-page .mrr-block-summary-grid{
    grid-template-columns:1fr 1fr;
  }
  .mrr-tracking-page .mrr-block-piece-foot{
    align-items:stretch;
    flex-direction:column;
  }
  .mrr-tracking-page .mrr-block-piece-foot .mrr-piece-sticker{justify-content:flex-start}
}
@media(max-width:580px){
  .mrr-tracking-page .mrr-block-group-head{padding:15px}
  .mrr-tracking-page .mrr-block-type-lock{margin:12px 15px 0}
  .mrr-tracking-page .mrr-block-method{
    grid-template-columns:1fr;
    margin:12px 15px 15px;
  }
  .mrr-tracking-page .mrr-block-piece-list,
  .mrr-tracking-page .mrr-block-lot{
    padding-left:15px;
    padding-right:15px;
    padding-bottom:15px;
  }
  .mrr-tracking-page .mrr-block-identity,
  .mrr-tracking-page .mrr-block-dimensions,
  .mrr-tracking-page .mrr-block-measurements,
  .mrr-tracking-page .mrr-block-quality,
  .mrr-tracking-page .mrr-block-lot-qty,
  .mrr-tracking-page .mrr-block-lot-details,
  .mrr-tracking-page .mrr-block-lot-measure,
  .mrr-tracking-page .mrr-block-lot-quality,
  .mrr-tracking-page .mrr-block-classification-summary,
  .mrr-tracking-page .mrr-block-summary-grid{
    grid-template-columns:1fr;
  }
  .mrr-tracking-page .mrr-block-calculation{grid-template-columns:1fr 1fr}
  .mrr-tracking-page .mrr-add-block{width:100%;justify-content:center}
}


/* MR4 · Page 3 Counter Receiving final-pass */
.mrr-tracking-page .mrr-counter-group{
  margin:0 0 20px;
  padding:0;
  overflow:hidden;
  border:1px solid #dce6f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 9px 28px rgba(16,33,59,.045);
}
.mrr-tracking-page .mrr-counter-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid #e8eef6;
}
.mrr-tracking-page .mrr-counter-material{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
}
.mrr-tracking-page .mrr-counter-material h3{
  margin:0;
  color:#10233f;
  font-size:17px;
  font-weight:900;
  overflow-wrap:anywhere;
}
.mrr-tracking-page .mrr-counter-material p{
  margin:4px 0 0;
  color:#6b7e97;
  font-size:10px;
  font-weight:700;
}
.mrr-tracking-page .mrr-counter-group-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.mrr-tracking-page .mrr-counter-type-lock{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 20px 0;
  padding:11px 13px;
  border:1px solid #d6e6fa;
  border-radius:11px;
  background:#f3f8ff;
}
.mrr-tracking-page .mrr-counter-type-lock>span{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#e3efff;
  font-size:13px;
}
.mrr-tracking-page .mrr-counter-type-lock b{
  display:block;
  color:#17375f;
  font-size:10px;
  font-weight:900;
}
.mrr-tracking-page .mrr-counter-type-lock small{
  display:block;
  margin-top:2px;
  color:#6d8099;
  font-size:9px;
  line-height:1.35;
}
.mrr-tracking-page .mrr-counter-method{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:14px 20px 18px;
  padding:5px;
  border:1px solid #dfe8f3;
  border-radius:13px;
  background:#f6f9fd;
}
.mrr-tracking-page .mrr-counter-method button{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:12px 14px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#526984;
  text-align:start;
  cursor:pointer;
}
.mrr-tracking-page .mrr-counter-method button b{font-size:11px;font-weight:900}
.mrr-tracking-page .mrr-counter-method button small{font-size:9px;font-weight:650;line-height:1.35}
.mrr-tracking-page .mrr-counter-method button.active{
  border-color:#c9dcfa;
  background:#fff;
  color:#1769ed;
  box-shadow:0 6px 16px rgba(23,105,237,.09);
}
.mrr-tracking-page .mrr-counter-piece-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:0 20px 20px;
}
.mrr-tracking-page .mrr-counter-piece-card{
  overflow:hidden;
  border:1px solid #dfe7f1;
  border-radius:15px;
  background:#fff;
}
.mrr-tracking-page .mrr-counter-piece-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #ebf0f6;
  background:#f8fbff;
}
.mrr-tracking-page .mrr-counter-piece-id{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.mrr-tracking-page .mrr-counter-piece-id span{
  color:#6e8199;
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.mrr-tracking-page .mrr-counter-piece-id b{color:#1769ed;font-size:18px;font-weight:900}
.mrr-tracking-page .mrr-counter-piece-id small{color:#6e8199;font-size:9px;overflow-wrap:anywhere}
.mrr-tracking-page .mrr-counter-fields{
  display:grid;
  gap:12px;
  padding:14px 14px 0;
}
.mrr-tracking-page .mrr-counter-dimensions{grid-template-columns:repeat(4,minmax(0,1fr))}
.mrr-tracking-page .mrr-counter-measurements,
.mrr-tracking-page .mrr-counter-quality{grid-template-columns:repeat(3,minmax(0,1fr))}
.mrr-tracking-page .mrr-counter-group .mrr-field{
  min-width:0;
  gap:6px;
  color:#1d304c;
  font-size:10px;
  font-weight:850;
}
.mrr-tracking-page .mrr-counter-group .mrr-field>span{min-height:14px}
.mrr-tracking-page .mrr-counter-group .mrr-field input,
.mrr-tracking-page .mrr-counter-group .mrr-field select{
  width:100%;
  min-width:0;
  height:42px;
  min-height:42px;
  padding:0 11px;
  border:1px solid #ced9e7;
  border-radius:9px;
  background:#fff;
  color:#182b46;
  font:inherit;
  font-weight:750;
  outline:none;
  box-shadow:0 1px 2px rgba(16,33,59,.02);
}
.mrr-tracking-page .mrr-counter-group .mrr-field input:focus,
.mrr-tracking-page .mrr-counter-group .mrr-field select:focus{
  border-color:#82aef4;
  box-shadow:0 0 0 3px rgba(23,105,237,.09);
}
.mrr-tracking-page .mrr-counter-group .mrr-field small{
  min-height:12px;
  color:#7c8da2;
  font-size:8px;
  font-weight:650;
  line-height:1.3;
}
.mrr-tracking-page .mrr-counter-group .mrr-required{
  margin-inline-start:3px;
  color:#d8434e;
  font-style:normal;
}
.mrr-tracking-page .mrr-counter-group .mrr-combo{
  display:grid;
  grid-template-columns:minmax(0,1fr) 74px;
  gap:7px;
}
.mrr-tracking-page .mrr-counter-piece-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:14px;
  padding:12px 14px;
  border-top:1px solid #edf1f6;
  background:#fbfdff;
}
.mrr-tracking-page .mrr-counter-calculation{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(130px,1fr));
  gap:8px;
}
.mrr-tracking-page .mrr-counter-metric{
  min-width:0;
  padding:8px 10px;
  border:1px solid #e1e8f1;
  border-radius:9px;
  background:#fff;
}
.mrr-tracking-page .mrr-counter-metric span{
  display:block;
  color:#70839a;
  font-size:8px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.mrr-tracking-page .mrr-counter-metric b{
  display:block;
  margin-top:3px;
  color:#18304e;
  font-size:12px;
  font-weight:900;
}
.mrr-tracking-page .mrr-counter-metric b em{color:#627690;font-size:9px;font-style:normal}
.mrr-tracking-page .mrr-counter-metric.blue{border-color:#d3e3fb;background:#f0f6ff}
.mrr-tracking-page .mrr-counter-metric.blue b{color:#1769ed}
.mrr-tracking-page .mrr-counter-metric.green{border-color:#d9ebdf;background:#f4fbf6}
.mrr-tracking-page .mrr-counter-metric.amber{border-color:#f2e2bc;background:#fff9ea}
.mrr-tracking-page .mrr-counter-metric.red{border-color:#f0d1d5;background:#fff5f6}
.mrr-tracking-page .mrr-counter-piece-foot .mrr-piece-sticker{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:wrap;
}
.mrr-tracking-page .mrr-add-counter{align-self:flex-start;display:inline-flex!important}
.mrr-tracking-page .mrr-counter-lot{
  display:grid;
  gap:14px;
  padding:0 20px 20px;
}
.mrr-tracking-page .mrr-counter-lot-section{
  padding:15px;
  border:1px solid #e0e8f2;
  border-radius:14px;
  background:#fff;
}
.mrr-tracking-page .mrr-counter-section-head{margin-bottom:12px}
.mrr-tracking-page .mrr-counter-section-head h4{margin:0;color:#18304e;font-size:12px;font-weight:900}
.mrr-tracking-page .mrr-counter-section-head p{margin:4px 0 0;color:#74869d;font-size:9px;line-height:1.4}
.mrr-tracking-page .mrr-counter-lot .mrr-counter-fields{padding:0}
.mrr-tracking-page .mrr-counter-lot-qty{grid-template-columns:repeat(4,minmax(0,1fr))}
.mrr-tracking-page .mrr-counter-lot-details{grid-template-columns:repeat(4,minmax(0,1fr))}
.mrr-tracking-page .mrr-counter-lot-measure{grid-template-columns:repeat(3,minmax(0,1fr))}
.mrr-tracking-page .mrr-counter-lot-quality{grid-template-columns:repeat(3,minmax(0,1fr))}
.mrr-tracking-page .mrr-counter-classification-summary,
.mrr-tracking-page .mrr-counter-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.mrr-tracking-page[dir="rtl"] .mrr-counter-method button,
.mrr-tracking-page[dir="rtl"] .mrr-counter-material,
.mrr-tracking-page[dir="rtl"] .mrr-counter-type-lock{text-align:right}
@media(max-width:1180px){
  .mrr-tracking-page .mrr-counter-dimensions,
  .mrr-tracking-page .mrr-counter-lot-qty,
  .mrr-tracking-page .mrr-counter-lot-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
  .mrr-tracking-page .mrr-counter-group-head{align-items:flex-start;flex-direction:column}
  .mrr-tracking-page .mrr-counter-group-actions{justify-content:flex-start}
  .mrr-tracking-page .mrr-counter-measurements,
  .mrr-tracking-page .mrr-counter-quality,
  .mrr-tracking-page .mrr-counter-lot-measure,
  .mrr-tracking-page .mrr-counter-lot-quality{grid-template-columns:1fr 1fr}
  .mrr-tracking-page .mrr-counter-classification-summary,
  .mrr-tracking-page .mrr-counter-summary-grid{grid-template-columns:1fr 1fr}
  .mrr-tracking-page .mrr-counter-piece-foot{align-items:stretch;flex-direction:column}
  .mrr-tracking-page .mrr-counter-piece-foot .mrr-piece-sticker{justify-content:flex-start}
}
@media(max-width:580px){
  .mrr-tracking-page .mrr-counter-group-head{padding:15px}
  .mrr-tracking-page .mrr-counter-type-lock{margin:12px 15px 0}
  .mrr-tracking-page .mrr-counter-method{grid-template-columns:1fr;margin:12px 15px 15px}
  .mrr-tracking-page .mrr-counter-piece-list,
  .mrr-tracking-page .mrr-counter-lot{padding-left:15px;padding-right:15px;padding-bottom:15px}
  .mrr-tracking-page .mrr-counter-dimensions,
  .mrr-tracking-page .mrr-counter-measurements,
  .mrr-tracking-page .mrr-counter-quality,
  .mrr-tracking-page .mrr-counter-lot-qty,
  .mrr-tracking-page .mrr-counter-lot-details,
  .mrr-tracking-page .mrr-counter-lot-measure,
  .mrr-tracking-page .mrr-counter-lot-quality,
  .mrr-tracking-page .mrr-counter-classification-summary,
  .mrr-tracking-page .mrr-counter-summary-grid{grid-template-columns:1fr}
  .mrr-tracking-page .mrr-counter-calculation{grid-template-columns:1fr 1fr}
  .mrr-tracking-page .mrr-add-counter{width:100%;justify-content:center}
}


/* MR5 · Receiving tracking photos and stickers */
.mrr-tracking-page .mrr-tracking-photo{
  margin:14px;
  padding:12px;
  border:1px solid #dfe8f2;
  border-radius:12px;
  background:#f9fbfe;
}
.mrr-tracking-page .mrr-slab-lot>.mrr-tracking-photo,
.mrr-tracking-page .mrr-block-lot>.mrr-tracking-photo,
.mrr-tracking-page .mrr-counter-lot>.mrr-tracking-photo{
  margin:0;
}
.mrr-tracking-page .mrr-tracking-photo-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.mrr-tracking-page .mrr-tracking-photo-head>div{
  min-width:0;
}
.mrr-tracking-page .mrr-tracking-photo-head b{
  display:block;
  color:#18304e;
  font-size:10px;
  font-weight:900;
}
.mrr-tracking-page .mrr-tracking-photo-head small{
  display:block;
  margin-top:3px;
  max-width:620px;
  color:#72849a;
  font-size:8px;
  font-weight:650;
  line-height:1.4;
}
.mrr-tracking-page .mrr-photo-add{
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 11px;
  border:1px solid #bdd3f5;
  border-radius:9px;
  background:#fff;
  color:#1769ed;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(23,105,237,.05);
}
.mrr-tracking-page .mrr-photo-add:hover{
  background:#f3f8ff;
}
.mrr-tracking-page .mrr-photo-add.disabled{
  opacity:.45;
  cursor:not-allowed;
}
.mrr-tracking-page .mrr-photo-add input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.mrr-tracking-page .mrr-tracking-photo-grid{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:10px;
}
.mrr-tracking-page .mrr-tracking-photo-card{
  width:132px;
  overflow:hidden;
  border:1px solid #d8e2ed;
  border-radius:10px;
  background:#fff;
  box-shadow:0 4px 12px rgba(16,33,59,.05);
}
.mrr-tracking-page .mrr-tracking-photo-card img{
  display:block;
  width:100%;
  height:88px;
  object-fit:cover;
  background:#eef3f8;
}
.mrr-tracking-page .mrr-tracking-photo-card>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:7px 8px;
}
.mrr-tracking-page .mrr-tracking-photo-card span{
  min-width:0;
  overflow:hidden;
  color:#425b77;
  font-size:8px;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mrr-tracking-page .mrr-tracking-photo-card button{
  flex:0 0 24px;
  width:24px;
  height:24px;
  padding:0;
  border:0;
  border-radius:7px;
  background:#fff1f2;
  color:#bd3341;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
.mrr-tracking-page .mrr-tracking-photo-empty{
  width:100%;
  padding:11px;
  border:1px dashed #d5e0eb;
  border-radius:9px;
  background:#fff;
  color:#8392a5;
  font-size:8px;
  font-weight:650;
}
.mrr-tracking-page .mrr-tracking-photo footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:9px;
  color:#7a8ca2;
  font-size:8px;
  font-weight:700;
}
.mrr-tracking-page .mrr-tracking-photo footer b{
  flex:0 0 auto;
  color:#506983;
  font-size:8px;
}
.mrr-tracking-page .mrr-piece-sticker .sticker{
  min-height:36px;
  padding:8px 12px;
  border-radius:9px;
  font-size:9px;
  font-weight:900;
}
@media(max-width:580px){
  .mrr-tracking-page .mrr-tracking-photo{
    margin:12px;
  }
  .mrr-tracking-page .mrr-slab-lot>.mrr-tracking-photo,
  .mrr-tracking-page .mrr-block-lot>.mrr-tracking-photo,
  .mrr-tracking-page .mrr-counter-lot>.mrr-tracking-photo{
    margin:0;
  }
  .mrr-tracking-page .mrr-tracking-photo-head{
    flex-direction:column;
  }
  .mrr-tracking-page .mrr-photo-add{
    width:100%;
  }
  .mrr-tracking-page .mrr-tracking-photo-card{
    width:calc(50% - 5px);
  }
}


/* MR6 · Guided Slab Camera */
.mrr-tracking-page .mrr-slab-camera-launch{
  width:calc(100% - 28px);
  margin:-4px 14px 14px;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid #c9dcfa;
  border-radius:11px;
  background:#f4f8ff;
  color:#1769ed;
  text-align:start;
  cursor:pointer;
}
.mrr-tracking-page .mrr-slab-lot>.mrr-slab-camera-launch{
  width:100%;
  margin:0;
}
.mrr-tracking-page .mrr-slab-camera-launch>span:first-child{
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#e4efff;
  font-size:15px;
}
.mrr-tracking-page .mrr-slab-camera-launch>span:last-child{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.mrr-tracking-page .mrr-slab-camera-launch b{
  font-size:9px;
  font-weight:900;
}
.mrr-tracking-page .mrr-slab-camera-launch small{
  color:#657d9a;
  font-size:8px;
  font-weight:700;
}
.mrr-tracking-page .mrr-slab-camera-launch:hover{
  background:#edf5ff;
  border-color:#abc9f5;
}
.mrr-tracking-page .mrr-slab-camera-launch:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.mrr-slab-camera-modal{
  position:fixed;
  inset:0;
  z-index:10050;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(7,18,34,.72);
  backdrop-filter:blur(5px);
}
.mrr-slab-camera-shell{
  width:min(920px,100%);
  max-height:min(94vh,920px);
  overflow:auto;
  border:1px solid #dce5ef;
  border-radius:20px;
  background:#fff;
  box-shadow:0 28px 80px rgba(3,14,31,.35);
}
.mrr-slab-camera-head{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:15px 18px;
  border-bottom:1px solid #e7edf4;
  background:rgba(255,255,255,.97);
}
.mrr-slab-camera-head p{
  margin:0 0 2px;
  color:#1769ed;
  font-size:8px;
  font-weight:900;
  letter-spacing:.09em;
}
.mrr-slab-camera-head h2{
  margin:0;
  color:#10233f;
  font-size:18px;
  font-weight:900;
}
.mrr-slab-camera-close{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #d8e1eb;
  border-radius:9px;
  background:#fff;
  color:#49617d;
  font-size:20px;
  cursor:pointer;
}
.mrr-slab-camera-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 18px;
  border-bottom:1px solid #e8eef5;
  background:#f8fbff;
}
.mrr-slab-camera-toolbar>span{
  color:#657a93;
  font-size:9px;
  font-weight:800;
}
.mrr-camera-frame-toggle{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid #d6e1ef;
  border-radius:9px;
  background:#fff;
  color:#596f8a;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
}
.mrr-camera-frame-toggle.active{
  border-color:#b7d0f6;
  background:#eaf3ff;
  color:#1769ed;
}
.mrr-slab-camera-stage{
  position:relative;
  min-height:420px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(145deg,#0d1725,#17263a);
}
.mrr-slab-camera-placeholder,
.mrr-slab-camera-preview{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}
.mrr-slab-camera-demo{
  position:relative;
  z-index:2;
  width:min(420px,70%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  padding:22px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(4,12,24,.54);
  color:#fff;
  text-align:center;
}
.mrr-slab-camera-demo>span{
  font-size:26px;
  opacity:.8;
}
.mrr-slab-camera-demo b{
  font-size:12px;
  font-weight:900;
}
.mrr-slab-camera-demo small{
  max-width:330px;
  color:#c5d1df;
  font-size:9px;
  line-height:1.45;
}
.mrr-slab-camera-frame{
  position:absolute;
  z-index:1;
  width:min(82%,720px);
  aspect-ratio:var(--mrr-camera-slab-aspect,2);
  max-height:76%;
  border:1px dashed rgba(255,255,255,.78);
  border-radius:6px;
  box-shadow:0 0 0 999px rgba(0,0,0,.18);
  pointer-events:none;
}
.mrr-slab-camera-frame i{
  position:absolute;
  width:28px;
  height:28px;
  border-color:#fff;
  border-style:solid;
  border-width:0;
}
.mrr-slab-camera-frame i:nth-child(1){top:-2px;left:-2px;border-top-width:3px;border-left-width:3px}
.mrr-slab-camera-frame i:nth-child(2){top:-2px;right:-2px;border-top-width:3px;border-right-width:3px}
.mrr-slab-camera-frame i:nth-child(3){bottom:-2px;left:-2px;border-bottom-width:3px;border-left-width:3px}
.mrr-slab-camera-frame i:nth-child(4){bottom:-2px;right:-2px;border-bottom-width:3px;border-right-width:3px}
.mrr-slab-camera-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#0b1522;
}
.mrr-slab-camera-preview .preview-frame{
  z-index:2;
}
.mrr-camera-preview-status{
  position:absolute;
  z-index:4;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(680px,calc(100% - 32px));
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:10px;
  background:rgba(6,17,31,.84);
  color:#fff;
  text-align:center;
  font-size:9px;
  font-weight:850;
  line-height:1.4;
}
.mrr-camera-preview-status.ready{
  background:rgba(16,101,68,.9);
}
.mrr-camera-preview-status.warn{
  background:rgba(153,84,15,.92);
}
.mrr-slab-camera-tips{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:12px 18px;
  border-top:1px solid #e7edf4;
  border-bottom:1px solid #e7edf4;
  background:#fbfdff;
}
.mrr-slab-camera-tips span{
  padding:8px 9px;
  border:1px solid #e2e9f2;
  border-radius:8px;
  background:#fff;
  color:#5f738d;
  font-size:8px;
  font-weight:750;
  line-height:1.35;
}
.mrr-slab-camera-actions{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:14px 18px 10px;
}
.mrr-slab-camera-actions [data-slab-camera-retake]{
  justify-self:start;
}
.mrr-slab-camera-actions [data-slab-camera-use]{
  justify-self:end;
}
.mrr-camera-open{
  justify-self:center;
  min-width:160px;
}
.mrr-slab-camera-footnote{
  padding:0 18px 15px;
  color:#7c8da2;
  text-align:center;
  font-size:8px;
  line-height:1.4;
}
.mrr-slab-camera-modal[dir="rtl"] .mrr-slab-camera-toolbar,
.mrr-slab-camera-modal[dir="rtl"] .mrr-slab-camera-head{
  text-align:right;
}

@media(max-width:760px){
  .mrr-slab-camera-modal{
    padding:0;
    align-items:stretch;
  }
  .mrr-slab-camera-shell{
    width:100%;
    max-height:none;
    min-height:100dvh;
    border:0;
    border-radius:0;
  }
  .mrr-slab-camera-stage{
    min-height:52dvh;
  }
  .mrr-slab-camera-tips{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:520px){
  .mrr-slab-camera-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .mrr-slab-camera-stage{
    min-height:48dvh;
  }
  .mrr-slab-camera-frame{
    width:88%;
  }
  .mrr-slab-camera-tips{
    grid-template-columns:1fr 1fr;
    gap:6px;
    padding:10px 12px;
  }
  .mrr-slab-camera-actions{
    grid-template-columns:1fr 1fr;
    padding:12px;
  }
  .mrr-camera-open{
    grid-column:1/-1;
    width:100%;
    order:-1;
  }
  .mrr-slab-camera-actions [data-slab-camera-retake],
  .mrr-slab-camera-actions [data-slab-camera-use]{
    width:100%;
    justify-self:stretch;
  }
  .mrr-slab-camera-footnote{
    padding:0 12px 14px;
  }
}


/* Receiving save retry lock: the Receiving record is already committed; only photo retry remains. */
.mrr-receiving-saved-lock{
  min-inline-size:0;
  margin:0;
  padding:0;
  border:0;
}
.mrr-receiving-saved-lock:disabled{
  opacity:.78;
}


/* MR7.3 · Purchase mirrored into Receiving */
.mrr-tracking-page .mrr-order-reference{
  margin:14px;
  overflow:hidden;
  border:1px solid #dce6f2;
  border-radius:12px;
  background:#f8fbff;
}
.mrr-tracking-page .mrr-slab-lot>.mrr-order-reference,
.mrr-tracking-page .mrr-block-lot>.mrr-order-reference,
.mrr-tracking-page .mrr-counter-lot>.mrr-order-reference{
  margin:0;
}
.mrr-tracking-page .mrr-order-reference>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid #e3ebf4;
  background:#f1f6fc;
}
.mrr-tracking-page .mrr-order-reference>header p{
  margin:0 0 2px;
  color:#60758e;
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.mrr-tracking-page .mrr-order-reference>header h4{
  margin:0;
  color:#18304e;
  font-size:11px;
  font-weight:900;
}
.mrr-tracking-page .mrr-order-flow{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:5px 8px;
  border:1px solid #b8d1f7;
  border-radius:999px;
  background:#eaf3ff;
  color:#1769ed;
  font-size:8px;
  font-weight:900;
  white-space:nowrap;
}
.mrr-tracking-page .mrr-order-reference-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:0;
}
.mrr-tracking-page .mrr-order-reference-item{
  min-width:0;
  padding:10px 12px;
  border-inline-end:1px solid #e5ecf4;
  border-bottom:1px solid #e5ecf4;
}
.mrr-tracking-page .mrr-order-reference-item span{
  display:block;
  margin-bottom:3px;
  color:#71849a;
  font-size:8px;
  font-weight:750;
}
.mrr-tracking-page .mrr-order-reference-item b{
  display:block;
  overflow:hidden;
  color:#263d59;
  font-size:10px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mrr-tracking-page .mrr-order-reference-item em{
  color:#6d8097;
  font-size:8px;
  font-style:normal;
  font-weight:750;
}
.mrr-tracking-page .mrr-order-reference-item.blue b{
  color:#1769ed;
}
.mrr-tracking-page .mrr-order-reference-note{
  margin:0;
  padding:9px 12px 10px;
  color:#657b94;
  font-size:8px;
  font-weight:700;
  line-height:1.4;
}
.mrr-tracking-page .mrr-actual-heading{
  display:flex;
  align-items:baseline;
  gap:9px;
  margin:14px 14px 8px;
}
.mrr-tracking-page .mrr-actual-heading span{
  color:#18304e;
  font-size:10px;
  font-weight:900;
}
.mrr-tracking-page .mrr-actual-heading small{
  color:#7c8da1;
  font-size:8px;
  font-weight:700;
}
.mrr-tracking-page .mrr-cut-block-output .mrr-slab-type-lock{
  border-color:#b9d3fa;
  background:#f1f7ff;
}
@media(max-width:580px){
  .mrr-tracking-page .mrr-order-reference{
    margin:12px;
  }
  .mrr-tracking-page .mrr-order-reference>header{
    align-items:flex-start;
    flex-direction:column;
  }
  .mrr-tracking-page .mrr-order-reference-grid{
    grid-template-columns:1fr 1fr;
  }
  .mrr-tracking-page .mrr-actual-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
    margin:12px 12px 7px;
  }
}


/* MR7.5 · Mobile Page 3 containment, stepper and footer correction
   Keeps Page 3 inside the phone viewport and keeps Back + Continue together.
   The footer remains non-sticky so it never covers tracking fields. */
@media(max-width:860px){
  .mrr-tracking-page{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
    overflow-x:hidden;
    overflow-x:clip;
  }
  .mrr-tracking-page .mrr-form-head,
  .mrr-tracking-page .mrr-stepper,
  .mrr-tracking-page .mrr-form-paper,
  .mrr-tracking-page .mrr-form-footer,
  .mrr-tracking-page .mrr-track-group{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .mrr-tracking-page .mrr-stepper{
    display:flex;
    grid-template-columns:none;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }
  .mrr-tracking-page .mrr-stepper::-webkit-scrollbar{
    display:none;
  }
  .mrr-tracking-page .mrr-stepper button{
    flex:0 0 132px;
    width:132px;
    min-width:132px;
    max-width:132px;
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:11px 10px;
    text-align:start;
    white-space:normal;
    line-height:1.2;
    scroll-snap-align:start;
  }
  .mrr-tracking-page .mrr-stepper button span{
    flex:0 0 28px;
    width:28px;
    height:28px;
    margin-right:0;
    margin-inline-end:7px;
  }
  .mrr-tracking-page .mrr-slab-group,
  .mrr-tracking-page .mrr-block-group,
  .mrr-tracking-page .mrr-counter-group,
  .mrr-tracking-page .mrr-slab-piece-card,
  .mrr-tracking-page .mrr-block-piece-card,
  .mrr-tracking-page .mrr-counter-piece-card,
  .mrr-tracking-page .mrr-slab-lot,
  .mrr-tracking-page .mrr-block-lot,
  .mrr-tracking-page .mrr-counter-lot,
  .mrr-tracking-page .mrr-order-reference,
  .mrr-tracking-page .mrr-tracking-photo{
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .mrr-tracking-page .mrr-slab-fields,
  .mrr-tracking-page .mrr-block-fields,
  .mrr-tracking-page .mrr-counter-fields,
  .mrr-tracking-page .mrr-slab-calculation,
  .mrr-tracking-page .mrr-block-calculation,
  .mrr-tracking-page .mrr-counter-calculation,
  .mrr-tracking-page .mrr-order-reference-grid{
    max-width:100%;
    min-width:0;
  }
  .mrr-tracking-page .mrr-field,
  .mrr-tracking-page .mrr-combo{
    max-width:100%;
    min-width:0;
  }
  .mrr-tracking-page .mrr-field input,
  .mrr-tracking-page .mrr-field select,
  .mrr-tracking-page .mrr-field textarea{
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .mrr-tracking-page .mrr-combo,
  .mrr-tracking-page .mrr-counter-group .mrr-combo{
    grid-template-columns:minmax(0,1fr) minmax(64px,74px);
  }
}

@media(max-width:580px){
  .mrr-tracking-page .mrr-form-paper{
    padding:12px;
  }
  .mrr-tracking-page .mrr-stepper{
    margin-bottom:14px;
    border-radius:14px;
  }
  .mrr-tracking-page .mrr-stepper button{
    flex-basis:118px;
    width:118px;
    min-width:118px;
    max-width:118px;
    min-height:54px;
    padding:9px 8px;
    font-size:10px;
  }
  .mrr-tracking-page .mrr-stepper button span{
    flex-basis:26px;
    width:26px;
    height:26px;
    font-size:10px;
  }

  /* Two actions stay in one visible row in portrait.
     This also overrides the legacy mobile rule that hid footer child 2. */
  .mrr-tracking-page .mrr-form-footer{
    position:static;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
    width:100%;
    max-width:100%;
    padding:12px;
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
    box-sizing:border-box;
  }
  .mrr-tracking-page .mrr-form-footer>div:first-child,
  .mrr-tracking-page .mrr-form-footer>div:nth-child(2){
    display:flex!important;
    width:100%;
    min-width:0;
    max-width:100%;
    justify-self:stretch;
  }
  .mrr-tracking-page .mrr-form-footer>div:empty{
    display:none!important;
  }
  .mrr-tracking-page .mrr-form-footer>div:first-child:empty + div{
    grid-column:1 / -1;
  }
  .mrr-tracking-page .mrr-form-footer .mrr-btn,
  .mrr-tracking-page .mrr-form-footer .mrr-btn.primary{
    flex:1 1 auto;
    width:100%;
    min-width:0!important;
    max-width:100%;
    min-height:44px;
    padding:10px 12px;
    white-space:normal;
  }

  .mrr-tracking-page .mrr-slab-group-head,
  .mrr-tracking-page .mrr-block-group-head,
  .mrr-tracking-page .mrr-counter-group-head{
    min-width:0;
  }
  .mrr-tracking-page .mrr-slab-group-actions,
  .mrr-tracking-page .mrr-block-group-actions,
  .mrr-tracking-page .mrr-counter-group-actions{
    width:100%;
    min-width:0;
  }
  .mrr-tracking-page .mrr-slab-group-actions .mrr-btn,
  .mrr-tracking-page .mrr-block-group-actions .mrr-btn,
  .mrr-tracking-page .mrr-counter-group-actions .mrr-btn{
    min-width:0;
    max-width:100%;
  }

  /* iOS does not zoom the page when a tracking field receives focus. */
  .mrr-tracking-page .mrr-field input,
  .mrr-tracking-page .mrr-field select,
  .mrr-tracking-page .mrr-field textarea{
    font-size:16px;
  }
}

@media(max-width:420px){
  .mrr-tracking-page .mrr-form-paper{
    padding:10px;
    border-radius:14px;
  }
  .mrr-tracking-page .mrr-tracking-title{
    gap:10px;
  }
  .mrr-tracking-page .mrr-tracking-title>span{
    flex-basis:38px;
    width:38px;
    height:38px;
  }
  .mrr-tracking-page .mrr-tracking-title h2{
    font-size:18px;
  }
  .mrr-tracking-page .mrr-slab-calculation,
  .mrr-tracking-page .mrr-block-calculation,
  .mrr-tracking-page .mrr-counter-calculation,
  .mrr-tracking-page .mrr-order-reference-grid{
    grid-template-columns:1fr;
  }
  .mrr-tracking-page .mrr-order-reference-item b{
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .mrr-tracking-page .mrr-slab-piece-head,
  .mrr-tracking-page .mrr-block-piece-head,
  .mrr-tracking-page .mrr-counter-piece-head{
    align-items:flex-start;
  }
}


/* Receiving Steps 3–4 · CSS final-pass
   Visual polish only. No workflow, calculation, validation, accounting,
   field, label or persistence behavior is changed here. */
.mrr-form-page:has(.mrr-weight-audit),
.mrr-form-page:has(.mrr-unloading-card){
  --mrr-step34-blue:#1769ed;
  --mrr-step34-blue-soft:#eef5ff;
  --mrr-step34-border:#dfe7f1;
  --mrr-step34-text:#10233f;
  --mrr-step34-muted:#667892;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

/* Match the polished Page 3 shell without changing Step 3/4 markup. */
.mrr-form-page:has(.mrr-weight-audit) .mrr-stepper,
.mrr-form-page:has(.mrr-unloading-card) .mrr-stepper{
  margin-bottom:22px;
  border:1px solid #dce6f2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(16,33,59,.045);
  overflow:hidden;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-stepper button,
.mrr-form-page:has(.mrr-unloading-card) .mrr-stepper button{
  min-height:62px;
  padding:14px 16px;
  border-right-color:#e5ecf4;
  color:#5f6d85;
  font-size:13px;
  font-weight:850;
  letter-spacing:-.01em;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-stepper button span,
.mrr-form-page:has(.mrr-unloading-card) .mrr-stepper button span{
  width:30px;
  height:30px;
  margin-inline-end:9px;
  background:#edf2f8;
  color:#5b6d84;
  font-size:12px;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-stepper button.active,
.mrr-form-page:has(.mrr-unloading-card) .mrr-stepper button.active{
  background:#eaf3ff;
  color:var(--mrr-step34-blue);
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-stepper button.active span,
.mrr-form-page:has(.mrr-unloading-card) .mrr-stepper button.active span{
  background:var(--mrr-step34-blue);
  color:#fff;
  box-shadow:0 5px 14px rgba(23,105,237,.2);
}

.mrr-form-page:has(.mrr-weight-audit) .mrr-form-paper,
.mrr-form-page:has(.mrr-unloading-card) .mrr-form-paper{
  min-height:0;
  padding:26px 28px 28px;
  border:1px solid var(--mrr-step34-border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(16,33,59,.045);
}

.mrr-form-page:has(.mrr-weight-audit) .mrr-title-row,
.mrr-form-page:has(.mrr-unloading-card) .mrr-title-row{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:20px;
  padding-bottom:18px;
  border-bottom:1px solid #edf1f6;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-title-row>span,
.mrr-form-page:has(.mrr-unloading-card) .mrr-title-row>span{
  flex:0 0 48px;
  width:48px;
  height:48px;
  border-radius:14px;
  background:#e7f1ff;
  color:var(--mrr-step34-blue);
  font-size:16px;
  font-weight:900;
  box-shadow:inset 0 0 0 1px #d7e7ff;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-title-row h2,
.mrr-form-page:has(.mrr-unloading-card) .mrr-title-row h2{
  margin:0 0 4px;
  color:var(--mrr-step34-text);
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-title-row p,
.mrr-form-page:has(.mrr-unloading-card) .mrr-title-row p{
  margin:0;
  color:var(--mrr-step34-muted);
  font-size:13px;
  line-height:1.45;
}

/* Step 3 · Truck Weight Check */
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit section{
  min-width:0;
  padding:0;
  overflow:hidden;
  border:1px solid #dfe7f1;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(16,33,59,.025);
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit section>p{
  margin:0;
  padding:11px 13px 10px;
  border-bottom:1px solid #e7edf5;
  background:#f5f8fc;
  color:#1769ed;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin:0;
  padding:10px 13px;
  border-top:1px solid #edf1f5;
  background:#fff;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit section>p + .mrr-metric{
  border-top:0;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric + .mrr-metric{
  margin-top:0;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric span{
  min-width:0;
  color:#667992;
  font-size:10px;
  font-weight:750;
  line-height:1.3;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric b{
  color:#18304e;
  font-size:12px;
  font-weight:900;
  line-height:1.25;
  text-align:end;
  white-space:nowrap;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.blue{
  background:#f2f7ff;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.blue b{
  color:#1769ed;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.green{
  background:#f5fbf7;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.green b{
  color:#24734a;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.amber{
  background:#fff9ec;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.amber b{
  color:#9b6500;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.red{
  background:#fff4f5;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric.red b{
  color:#b43d48;
}

.mrr-form-page:has(.mrr-weight-audit) .mrr-grid.three,
.mrr-form-page:has(.mrr-unloading-card) .mrr-grid.three{
  gap:12px;
  margin-bottom:14px;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-field,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field{
  min-width:0;
  gap:6px;
  color:#1d304c;
  font-size:10px;
  font-weight:850;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-field>span,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field>span{
  min-height:14px;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-field input,
.mrr-form-page:has(.mrr-weight-audit) .mrr-field textarea,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field input,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field textarea{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  border:1px solid #ced9e7;
  border-radius:9px;
  background:#fff;
  color:#182b46;
  font:inherit;
  font-weight:750;
  outline:none;
  box-shadow:0 1px 2px rgba(16,33,59,.02);
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-field input,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field input{
  height:42px;
  min-height:42px;
  padding:0 11px;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-field textarea,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field textarea{
  min-height:82px;
  padding:10px 11px;
  line-height:1.4;
  resize:vertical;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-field input:focus,
.mrr-form-page:has(.mrr-weight-audit) .mrr-field textarea:focus,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field input:focus,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field textarea:focus{
  border-color:#82aef4;
  box-shadow:0 0 0 3px rgba(23,105,237,.09);
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-field small,
.mrr-form-page:has(.mrr-unloading-card) .mrr-field small{
  min-height:12px;
  color:#7c8da2;
  font-size:8px;
  font-weight:650;
  line-height:1.35;
}

.mrr-form-page:has(.mrr-weight-audit) .mrr-info{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid #cbdffd;
  border-radius:11px;
  background:#f0f6ff;
  color:#365f91;
  font-size:10px;
  line-height:1.45;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-info b{
  color:#1b4f91;
}

/* Step 4 · Unloading */
.mrr-form-page:has(.mrr-unloading-card) .mrr-unloading-card{
  padding:18px;
  border:1px solid #dfe7f1;
  border-radius:14px;
  background:#fbfdff;
  box-shadow:0 4px 14px rgba(16,33,59,.02);
}
.mrr-form-page:has(.mrr-unloading-card) .mrr-unloading-card .mrr-grid.three{
  margin-bottom:16px;
}
.mrr-form-page:has(.mrr-unloading-card) .mrr-unloading-total{
  min-height:58px;
  margin-top:16px;
  padding:13px 15px;
  border:1px solid #c8dcfb;
  border-radius:11px;
  background:#edf5ff;
}
.mrr-form-page:has(.mrr-unloading-card) .mrr-unloading-total span{
  color:#536c8b;
  font-size:10px;
  font-weight:850;
}
.mrr-form-page:has(.mrr-unloading-card) .mrr-unloading-total b{
  color:#1769ed;
  font-size:20px;
  font-weight:900;
}

/* Shared Step 3/4 footer. Keep it static like Page 3. */
.mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer,
.mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer{
  position:static;
  z-index:auto;
  grid-template-columns:1fr auto;
  margin-top:14px;
  padding:14px 16px;
  border:1px solid #dfe7f1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 26px rgba(16,33,59,.04);
  backdrop-filter:none;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer>div:nth-child(2),
.mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer>div:nth-child(2){
  display:flex;
  gap:10px;
  justify-self:end;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer .mrr-btn,
.mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer .mrr-btn{
  min-height:42px;
  padding:10px 18px;
  border-radius:10px;
  font-size:11px;
  font-weight:900;
}
.mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer .mrr-btn.primary,
.mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer .mrr-btn.primary{
  min-width:118px;
  background:linear-gradient(135deg,#1769ed,#0d56d8);
  border-color:#1769ed;
  box-shadow:0 8px 18px rgba(23,105,237,.18);
}

/* Tablet / landscape phone */
@media(max-width:1100px){
  .mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:860px){
  .mrr-form-page:has(.mrr-weight-audit),
  .mrr-form-page:has(.mrr-unloading-card){
    overflow-x:hidden;
    overflow-x:clip;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-form-paper,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-form-paper{
    padding:20px;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-stepper,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-stepper{
    display:flex;
    grid-template-columns:none;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-stepper::-webkit-scrollbar,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-stepper::-webkit-scrollbar{
    display:none;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-stepper button,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-stepper button{
    flex:0 0 132px;
    width:132px;
    min-width:132px;
    max-width:132px;
    min-height:58px;
    white-space:normal;
  }
}

/* Portrait phone */
@media(max-width:580px){
  .mrr-form-page:has(.mrr-weight-audit) .mrr-form-paper,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-form-paper{
    padding:12px;
    border-radius:16px;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-title-row,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-title-row{
    align-items:flex-start;
    gap:10px;
    margin-bottom:15px;
    padding-bottom:14px;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-title-row>span,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-title-row>span{
    flex-basis:40px;
    width:40px;
    height:40px;
    border-radius:11px;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-title-row h2,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-title-row h2{
    font-size:19px;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-title-row p,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-title-row p{
    font-size:11px;
  }

  .mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit,
  .mrr-form-page:has(.mrr-weight-audit) .mrr-grid.three,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-grid.three{
    grid-template-columns:1fr;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-weight-audit .mrr-metric{
    grid-template-columns:minmax(0,1fr) auto;
  }

  .mrr-form-page:has(.mrr-unloading-card) .mrr-unloading-card{
    padding:13px;
  }
  .mrr-form-page:has(.mrr-unloading-card) .mrr-unloading-total{
    min-height:54px;
    margin-top:13px;
    padding:12px;
  }

  .mrr-form-page:has(.mrr-weight-audit) .mrr-stepper button,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-stepper button{
    flex-basis:118px;
    width:118px;
    min-width:118px;
    max-width:118px;
    min-height:54px;
    padding:9px 8px;
    font-size:10px;
  }

  /* Override legacy mobile Receiving rule that hides the second footer cell. */
  .mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
    width:100%;
    max-width:100%;
    padding:12px;
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
    box-sizing:border-box;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer>div:first-child,
  .mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer>div:nth-child(2),
  .mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer>div:first-child,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer>div:nth-child(2){
    display:flex!important;
    width:100%;
    min-width:0;
    max-width:100%;
    justify-self:stretch;
  }
  .mrr-form-page:has(.mrr-weight-audit) .mrr-form-footer .mrr-btn,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-form-footer .mrr-btn{
    flex:1 1 auto;
    width:100%;
    min-width:0!important;
    max-width:100%;
    min-height:44px;
    padding:10px 12px;
  }

  /* Avoid iOS focus zoom while entering weights / charges. */
  .mrr-form-page:has(.mrr-weight-audit) .mrr-field input,
  .mrr-form-page:has(.mrr-weight-audit) .mrr-field textarea,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-field input,
  .mrr-form-page:has(.mrr-unloading-card) .mrr-field textarea{
    font-size:16px;
  }
}


/* Add Next Physical Slab button polish
   Scoped to Material Receiving Page 3 only. */
.mrr-tracking-page .mrr-add-slab{
  align-self:flex-start;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:0;
  min-height:40px;
  margin-top:2px;
  padding:9px 14px;
  border:1px solid #bfd5f6;
  border-radius:10px;
  background:#f7fbff;
  color:#1769ed;
  font-size:11px;
  font-weight:850;
  line-height:1.2;
  letter-spacing:0;
  white-space:normal;
  box-shadow:none;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.mrr-tracking-page .mrr-add-slab:hover{
  border-color:#8fb8f2;
  background:#eef6ff;
  box-shadow:0 4px 12px rgba(23,105,237,.08);
}
.mrr-tracking-page .mrr-add-slab:active{
  transform:translateY(1px);
}
.mrr-tracking-page .mrr-add-slab:focus-visible{
  outline:0;
  border-color:#6f9fe8;
  box-shadow:0 0 0 3px rgba(23,105,237,.12);
}
@media(max-width:580px){
  .mrr-tracking-page .mrr-add-slab{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    font-size:12px;
    justify-content:center;
  }
}


/* Receiving Detail Report · final-pass */
.mrr-detail-report{
  --mrr-detail-blue:#1769ed;
  --mrr-detail-blue-soft:#edf5ff;
  --mrr-detail-green:#147a55;
  --mrr-detail-green-soft:#eef9f3;
  --mrr-detail-amber:#9a6700;
  --mrr-detail-amber-soft:#fff8e9;
  --mrr-detail-red:#b42318;
  --mrr-detail-red-soft:#fff1f0;
  --mrr-detail-ink:#10233f;
  --mrr-detail-muted:#687990;
  --mrr-detail-line:#dfe7f1;
  max-width:1480px;
  margin:0 auto;
  color:var(--mrr-detail-ink);
}
.mrr-detail-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  color:#62758e;
  font-size:11px;
  font-weight:750;
}
.mrr-detail-breadcrumb span{color:#a6b3c2}
.mrr-detail-back{
  min-height:36px;
  margin-bottom:10px;
  padding:0 12px;
  border:1px solid #c9d8ea;
  border-radius:9px;
  background:#fff;
  color:#284568;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.mrr-detail-report-header{
  margin-bottom:18px;
}
.mrr-detail-report-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:24px;
}
.mrr-detail-report-title h1{
  margin:6px 0 0;
  color:#10233f;
  font-size:34px;
  font-weight:950;
  letter-spacing:-.035em;
}
.mrr-detail-title-line{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.mrr-detail-report-title>p:last-child{
  margin:7px 0 0;
  color:#5f728b;
  font-size:13px;
  font-weight:650;
}
.mrr-detail-verification{
  display:grid;
  grid-template-columns:repeat(2,minmax(170px,1fr));
  gap:10px;
}
.mrr-detail-verification article{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:12px 14px;
  border:1px solid #dfe7f1;
  border-radius:13px;
  background:#fff;
  box-shadow:0 6px 18px rgba(16,35,63,.035);
}
.mrr-detail-verification article>span{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#eaf3ff;
  color:#1769ed;
  font-size:16px;
  font-weight:900;
}
.mrr-detail-verification article.verified{
  border-color:#bfe4cf;
  background:#f5fbf7;
}
.mrr-detail-verification article.verified>span{
  background:#e1f4e9;
  color:#147a55;
}
.mrr-detail-verification article div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:2px;
}
.mrr-detail-verification article small{
  color:#75869b;
  font-size:9px;
  font-weight:700;
}
.mrr-detail-verification article b{
  color:#19314f;
  font-size:12px;
  font-weight:900;
}
.mrr-detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}
.mrr-detail-actions .mrr-btn{
  min-height:42px;
  padding:0 14px;
  border-radius:10px;
  font-size:11px;
  font-weight:900;
  box-shadow:none;
}
.mrr-detail-actions .mrr-btn.primary{
  box-shadow:0 8px 18px rgba(23,105,237,.16);
}
.mrr-detail-photo-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.mrr-detail-photo-action input{display:none}

.mrr-detail-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}
.mrr-detail-summary-card{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  min-height:92px;
  padding:15px;
  border:1px solid var(--mrr-detail-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 22px rgba(16,35,63,.035);
}
.mrr-detail-summary-icon{
  flex:0 0 44px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eaf3ff;
  color:#1769ed;
  font-size:18px;
  font-weight:900;
}
.mrr-detail-summary-card.green .mrr-detail-summary-icon{
  background:#e5f5ec;
  color:#147a55;
}
.mrr-detail-summary-card.muted .mrr-detail-summary-icon{
  background:#f1f4f8;
  color:#7a879a;
}
.mrr-detail-summary-card>div{
  min-width:0;
}
.mrr-detail-summary-card>div>span{
  display:block;
  color:#728197;
  font-size:10px;
  font-weight:750;
}
.mrr-detail-summary-card b{
  display:block;
  margin-top:3px;
  overflow:hidden;
  color:#10233f;
  font-size:20px;
  font-weight:950;
  letter-spacing:-.02em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mrr-detail-summary-card small{
  display:block;
  margin-top:2px;
  color:#8a98aa;
  font-size:9px;
  font-weight:700;
}

.mrr-detail-primary-grid{
  display:grid;
  grid-template-columns:1.05fr 1.05fr .9fr;
  gap:12px;
  margin-bottom:14px;
}
.mrr-detail-info-card,
.mrr-detail-card{
  min-width:0;
  border:1px solid var(--mrr-detail-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(16,35,63,.03);
}
.mrr-detail-info-card{
  overflow:hidden;
}
.mrr-detail-info-card>header{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:0 13px;
  border-bottom:1px solid #e9eef4;
  background:#f6f9fd;
}
.mrr-detail-info-card.purchase>header{background:#f2f7ff}
.mrr-detail-info-card.reconciliation>header{background:#f2faf5}
.mrr-detail-info-card.unloading>header{background:#fff8ed}
.mrr-detail-info-card>header>span{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#e7f1ff;
  color:#1769ed;
  font-size:13px;
  font-weight:900;
}
.mrr-detail-info-card.reconciliation>header>span{
  background:#e4f5eb;
  color:#147a55;
}
.mrr-detail-info-card.unloading>header>span{
  background:#fff0cf;
  color:#9a6700;
}
.mrr-detail-info-card h2{
  margin:0;
  color:#17304f;
  font-size:14px;
  font-weight:900;
}
.mrr-detail-info-card dl{
  margin:0;
  padding:0 12px 12px;
}
.mrr-detail-info-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:9px 2px;
  border-bottom:1px solid #edf1f5;
}
.mrr-detail-info-row:last-child{border-bottom:0}
.mrr-detail-info-row dt{
  min-width:0;
  color:#667991;
  font-size:10px;
  font-weight:700;
}
.mrr-detail-info-row dd{
  margin:0;
  color:#19314f;
  font-size:10px;
  font-weight:850;
  text-align:end;
  white-space:nowrap;
}
.mrr-detail-info-row.strong dd{color:#1769ed}
.mrr-detail-info-row.success{
  background:#f5fbf7;
  margin-inline:-12px;
  padding-inline:14px;
}
.mrr-detail-info-row.success dd{color:#147a55}
.mrr-detail-info-row.warning{
  background:#fff9ed;
  margin-inline:-12px;
  padding-inline:14px;
}
.mrr-detail-info-row.warning dd{color:#9a6700}
.mrr-detail-info-row.total{
  margin-top:7px;
  padding:11px 10px;
  border:0;
  border-radius:9px;
  background:#fff3dc;
}
.mrr-detail-info-row.total dt,
.mrr-detail-info-row.total dd{
  color:#8d5b00;
  font-weight:900;
}
.mrr-detail-card-note{
  margin:0 12px 12px;
  padding:10px;
  border-radius:9px;
  background:#f8fafc;
}
.mrr-detail-card-note b{
  color:#425a77;
  font-size:9px;
}
.mrr-detail-card-note p{
  margin:4px 0 0;
  color:#718198;
  font-size:9px;
  line-height:1.4;
}

.mrr-detail-card{
  margin-bottom:14px;
  padding:15px;
}
.mrr-detail-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.mrr-detail-section-head>div{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.mrr-detail-section-head>div>span{
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#eaf3ff;
  color:#1769ed;
  font-size:14px;
  font-weight:900;
}
.mrr-detail-section-head h2{
  margin:1px 0 0;
  color:#17304f;
  font-size:15px;
  font-weight:900;
}
.mrr-detail-section-head p{
  margin:3px 0 0;
  color:#75859a;
  font-size:10px;
  line-height:1.4;
}
.mrr-detail-table-wrap{
  width:100%;
  max-width:100%;
  overflow:auto;
  border:1px solid #e2e9f1;
  border-radius:10px;
}
.mrr-detail-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  background:#fff;
}
.mrr-detail-table th{
  padding:9px 10px;
  border-bottom:1px solid #dfe7f1;
  background:#f7f9fc;
  color:#718096;
  font-size:9px;
  font-weight:900;
  letter-spacing:.03em;
  text-align:start;
  white-space:nowrap;
}
.mrr-detail-table td{
  padding:10px;
  border-bottom:1px solid #edf1f5;
  color:#30455f;
  font-size:10px;
  vertical-align:middle;
}
.mrr-detail-table tbody tr:last-child td{border-bottom:0}
.mrr-detail-table td small{
  display:block;
  margin-top:2px;
  color:#8b98a9;
}
.mrr-detail-table td b{color:#17304f}
.mrr-detail-comparison-table{min-width:1180px}
.mrr-detail-stock-table{min-width:1120px}
.mrr-detail-negative{color:#b42318!important;font-weight:850}

.mrr-detail-secondary-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:12px;
}
.mrr-detail-secondary-grid>.mrr-detail-card{height:100%}
.mrr-detail-photo-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.mrr-detail-photo-card{
  min-width:0;
  overflow:hidden;
  border:1px solid #dfe7f1;
  border-radius:10px;
  background:#fbfdff;
  color:inherit;
  text-decoration:none;
}
.mrr-detail-photo-thumb{
  aspect-ratio:4/3;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#eef3f8;
  color:#7790aa;
}
.mrr-detail-photo-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.mrr-detail-photo-card>div:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px 9px 9px;
}
.mrr-detail-photo-card b{
  overflow:hidden;
  color:#18304e;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mrr-detail-photo-card span{
  color:#1769ed;
  font-size:8px;
  font-weight:800;
}
.mrr-detail-photo-card small{
  overflow:hidden;
  color:#8795a7;
  font-size:8px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mrr-detail-documents{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mrr-detail-documents article{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 11px;
  border:1px solid #e2e9f1;
  border-radius:9px;
  background:#fbfdff;
}
.mrr-detail-documents article>div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:2px;
}
.mrr-detail-documents b{
  overflow:hidden;
  color:#18304e;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mrr-detail-documents span,
.mrr-detail-documents small{
  color:#8492a5;
  font-size:8px;
}
.mrr-detail-documents a{
  color:#1769ed;
  font-size:9px;
  font-weight:850;
  text-decoration:none;
}
.mrr-detail-empty{
  padding:26px 18px;
  border:1px dashed #d6e0eb;
  border-radius:10px;
  background:#fbfdff;
  color:#7d8da2;
  font-size:10px;
  text-align:center;
}
.mrr-detail-empty.compact{padding:14px}

.mrr-detail-note-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.mrr-detail-note-grid>div{
  padding:11px 12px;
  border:1px solid #e3eaf2;
  border-radius:10px;
  background:#f8fafc;
}
.mrr-detail-note-grid b{
  color:#334d6b;
  font-size:9px;
}
.mrr-detail-note-grid p{
  margin:5px 0 0;
  color:#718197;
  font-size:9px;
  line-height:1.45;
}
.mrr-detail-audit{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  padding:12px;
  border:1px solid #dfe7f1;
  border-radius:12px;
  background:#f8fafc;
}
.mrr-detail-audit>div{
  min-width:0;
  padding:4px 8px;
}
.mrr-detail-audit span{
  display:block;
  color:#8290a2;
  font-size:8px;
  font-weight:750;
}
.mrr-detail-audit b{
  display:block;
  margin-top:3px;
  overflow:hidden;
  color:#314964;
  font-size:9px;
  font-weight:850;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:1180px){
  .mrr-detail-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mrr-detail-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mrr-detail-info-card.unloading{grid-column:1 / -1}
  .mrr-detail-audit{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  .mrr-detail-report{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:hidden;
    overflow-x:clip;
  }
  .mrr-detail-report-hero{grid-template-columns:1fr}
  .mrr-detail-verification{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mrr-detail-primary-grid,
  .mrr-detail-secondary-grid{grid-template-columns:1fr}
  .mrr-detail-info-card.unloading{grid-column:auto}
  .mrr-detail-table-wrap{
    max-width:100%;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  .mrr-detail-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mrr-detail-note-grid{grid-template-columns:1fr}
}
@media(max-width:580px){
  .mrr-detail-breadcrumb{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  .mrr-detail-report-title h1{font-size:27px}
  .mrr-detail-verification{grid-template-columns:1fr}
  .mrr-detail-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .mrr-detail-actions .mrr-btn,
  .mrr-detail-actions .mrr-detail-photo-action{
    width:100%;
    min-width:0;
  }
  .mrr-detail-actions .mrr-btn.primary{grid-column:1 / -1}
  .mrr-detail-summary-grid{grid-template-columns:1fr}
  .mrr-detail-summary-card{min-height:78px}
  .mrr-detail-primary-grid{grid-template-columns:1fr}
  .mrr-detail-info-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .mrr-detail-info-row dd{
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .mrr-detail-card{padding:12px}
  .mrr-detail-photo-grid{grid-template-columns:1fr 1fr}
  .mrr-detail-audit{grid-template-columns:1fr 1fr}
}
@media(max-width:390px){
  .mrr-detail-actions{grid-template-columns:1fr}
  .mrr-detail-actions .mrr-btn.primary{grid-column:auto}
  .mrr-detail-photo-grid{grid-template-columns:1fr}
  .mrr-detail-audit{grid-template-columns:1fr}
}
@media print{
  .mrr-detail-report .mrr-detail-actions,
  .mrr-detail-report .mrr-detail-back,
  .mrr-detail-report .mrr-detail-breadcrumb{
    display:none!important;
  }
  .mrr-detail-report{
    max-width:none;
  }
  .mrr-detail-card,
  .mrr-detail-info-card,
  .mrr-detail-summary-card{
    box-shadow:none;
    break-inside:avoid;
  }
  .mrr-detail-table-wrap{
    overflow:visible;
  }
}


/* Receiving detail landed-cost continuity */
.mrr-detail-landed-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.mrr-detail-landed-grid .mrr-detail-summary-card{
  min-height:76px;
  padding:12px;
  box-shadow:none;
  background:#fbfdff;
}
.mrr-detail-landed-grid .mrr-detail-summary-icon{
  flex-basis:36px;
  width:36px;
  height:36px;
  border-radius:10px;
  font-size:14px;
}
.mrr-detail-landed-grid .mrr-detail-summary-card b{
  font-size:15px;
}
.mrr-detail-landed-total{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:4px 14px;
  margin-bottom:12px;
  padding:11px 13px;
  border:1px solid #c9ddfb;
  border-radius:10px;
  background:#eef5ff;
}
.mrr-detail-landed-total span{
  color:#536d8f;
  font-size:10px;
  font-weight:850;
}
.mrr-detail-landed-total b{
  color:#1769ed;
  font-size:16px;
  font-weight:950;
}
.mrr-detail-landed-total small{
  grid-column:1 / -1;
  color:#7a8ba1;
  font-size:8px;
  font-weight:700;
}
@media(max-width:860px){
  .mrr-detail-landed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
  .mrr-detail-landed-grid{grid-template-columns:1fr}
}


/* GRN Print · approved minimal two-page layout */
.grn-print-preview{
  background:#5b6362;
}
.paperbar.grn-printbar{
  z-index:45;
  align-items:center;
}
.grn-print-option{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:0 11px;
  border:1px solid #cbd7e4;
  border-radius:8px;
  background:#fff;
  color:#334e6d;
  font-size:10px;
  font-weight:800;
  box-shadow:0 4px 14px rgba(16,35,63,.08);
}
.grn-print-option input{
  width:14px;
  height:14px;
  margin:0;
}
.receiving-paper.grn-page{
  width:210mm;
  min-height:297mm;
  display:flex;
  flex-direction:column;
  padding:12mm 12mm 10mm;
  margin:10px auto 18px;
  background:#fff;
  color:#10213d;
  box-shadow:0 10px 45px rgba(18,31,48,.17);
  font-size:10px;
}
.grn-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:28px;
  align-items:start;
  padding-bottom:9mm;
  border-bottom:1px solid #cad7e5;
}
.grn-brand .document-brand{
  align-items:center;
  gap:12px;
}
.grn-brand .document-brand-logo{
  width:54px;
  height:54px;
  min-width:54px;
  border-color:#cfdbea;
  border-radius:8px;
}
.grn-brand .document-brand-copy h1{
  margin:0!important;
  color:#10213d!important;
  font-size:22px!important;
  line-height:1.1!important;
  letter-spacing:-.02em!important;
  font-weight:900;
}
.grn-brand .document-brand-copy p:empty{
  display:none;
}
.grn-brand .document-brand-copy small{
  max-width:430px;
  margin-top:5px;
  color:#70839a!important;
  font-size:7.5px!important;
  line-height:1.4;
}
.grn-doc-meta{
  min-width:0;
  text-align:end;
}
.grn-doc-meta h1{
  margin:0;
  color:#10213d;
  font-size:17px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.02em;
}
.grn-doc-meta>b{
  display:block;
  margin-top:6px;
  color:#526981;
  font-size:11px;
}
.grn-doc-meta>p{
  margin:5px 0 0;
  color:#70839a;
  font-size:8.5px;
  line-height:1.4;
}
.grn-doc-meta-line{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
  margin-top:7px;
  color:#536983;
  font-size:9px;
}
.grn-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px;
  border-radius:999px;
  background:#e9f7ef;
  color:#177a50;
  font-size:8.5px;
  font-weight:900;
  white-space:nowrap;
}
.grn-status::before{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#18a665;
  content:"";
}
.grn-info-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:7mm;
  overflow:hidden;
  border:1px solid #dfe8f2;
  border-radius:8px;
  background:#f5f8fc;
}
.grn-info-cell{
  min-width:0;
  padding:11px 13px;
}
.grn-info-cell+.grn-info-cell{
  border-inline-start:1px solid #d7e1ec;
}
.grn-info-cell span{
  display:block;
  color:#6a7d94;
  font-size:7.5px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.grn-info-cell b{
  display:block;
  margin-top:4px;
  overflow:hidden;
  color:#10213d;
  font-size:13px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.grn-info-cell small{
  display:block;
  margin-top:3px;
  overflow:hidden;
  color:#7b8da2;
  font-size:7.5px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.grn-material-section{
  margin-top:7mm;
}
.grn-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid #dbe5ef;
  border-radius:7px;
  background:#fff;
}
.grn-table th{
  padding:8px 9px;
  border-bottom:1px solid #dbe5ef;
  background:#eef3f8;
  color:#4f6680;
  font-size:7px;
  font-weight:900;
  letter-spacing:.035em;
  text-align:start;
  text-transform:uppercase;
  white-space:nowrap;
}
.grn-table td{
  padding:9px;
  border-bottom:1px solid #e8eef4;
  color:#263e5b;
  font-size:8.5px;
  vertical-align:middle;
}
.grn-table tbody tr:last-child td{
  border-bottom:0;
}
.grn-table td b{
  color:#10213d;
}
.grn-material-table th:nth-child(n+3),
.grn-material-table td:nth-child(n+3){
  text-align:end;
}
.grn-material-table th:first-child,
.grn-material-table td:first-child{
  width:30px;
  text-align:center;
}
.grn-summary-section{
  margin-top:8mm;
}
.grn-summary-section h2,
.grn-trace-section h2{
  margin:0 0 7px;
  color:#10213d;
  font-size:12px;
  font-weight:900;
}
.grn-summary-list{
  border-top:1px solid #dbe5ef;
  border-bottom:1px solid #dbe5ef;
}
.grn-summary-list>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  padding:6px 0;
  border-bottom:1px solid #edf2f6;
}
.grn-summary-list>div:last-child{
  border-bottom:0;
}
.grn-summary-list span{
  color:#526980;
  font-size:8.5px;
}
.grn-summary-list b{
  color:#10213d;
  font-size:8.5px;
  font-weight:900;
  text-align:end;
}
.grn-final-result{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:6mm;
  padding:10px 12px;
  border-radius:7px;
  background:#f2f6fa;
}
.grn-final-result span{
  color:#10213d;
  font-size:10px;
  font-weight:900;
}
.grn-final-result b{
  color:#10213d;
  font-size:12px;
  font-weight:900;
  text-align:end;
}
.grn-signatures{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20mm;
  margin-top:15mm;
  padding:0 6mm;
}
.grn-signatures>div{
  text-align:center;
}
.grn-signatures span{
  display:block;
  border-top:1px solid #6d8094;
}
.grn-signatures b{
  display:block;
  margin-top:5px;
  color:#405873;
  font-size:8px;
  font-weight:800;
}
.grn-signatures small{
  display:block;
  margin-top:2px;
  color:#95a2b1;
  font-size:7px;
}
.grn-footer{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-top:auto;
  padding-top:7mm;
  border-top:1px solid #d6e0ea;
  color:#6c8097;
  font-size:7px;
}
.grn-footer div{
  min-width:0;
}
.grn-footer b{
  display:block;
  color:#304967;
  font-size:7.5px;
}
.grn-footer small{
  display:block;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.grn-footer>span{
  white-space:nowrap;
}
.grn-page-break{
  break-before:page;
  page-break-before:always;
}
.grn-info-strip-compact{
  margin-top:7mm;
}
.grn-info-strip-compact .grn-info-cell b{
  font-size:11px;
}
.grn-trace-section{
  margin-top:8mm;
}
.grn-trace-section>p{
  margin:0 0 7px;
  color:#6f8299;
  font-size:8px;
  line-height:1.45;
}
.grn-trace-table th:nth-child(1),
.grn-trace-table td:nth-child(1){
  width:30px;
  text-align:center;
}
.grn-trace-table th:nth-child(4),
.grn-trace-table td:nth-child(4){
  text-align:end;
}
.grn-appendix-note{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:auto;
  margin-bottom:8mm;
  padding:10px 12px;
  border:1px solid #dfe8f2;
  border-radius:7px;
  background:#f5f8fc;
}
.grn-appendix-note b{
  color:#304967;
  font-size:8px;
}
.grn-appendix-note span{
  color:#75879c;
  font-size:7.5px;
  line-height:1.45;
}
@media(max-width:900px){
  .receiving-paper.grn-page{
    width:min(210mm,calc(100vw - 28px));
    min-height:auto;
    padding:24px;
  }
  .grn-header{
    grid-template-columns:minmax(0,1fr) 220px;
    gap:18px;
  }
}
@media(max-width:680px){
  .paperbar.grn-printbar{
    position:sticky;
    top:8px;
    right:auto;
    justify-content:flex-end;
    flex-wrap:wrap;
    margin:0 0 10px;
  }
  .grn-print-option{
    width:100%;
    justify-content:center;
  }
  .grn-header{
    grid-template-columns:1fr;
  }
  .grn-doc-meta{
    text-align:start;
  }
  .grn-doc-meta-line{
    justify-content:flex-start;
  }
  .grn-info-strip{
    grid-template-columns:1fr;
  }
  .grn-info-cell+.grn-info-cell{
    border-inline-start:0;
    border-top:1px solid #d7e1ec;
  }
  .grn-material-section,
  .grn-trace-section{
    overflow-x:auto;
  }
  .grn-material-table{
    min-width:650px;
  }
  .grn-trace-table{
    min-width:620px;
  }
  .grn-signatures{
    gap:14px;
    padding:0;
  }
}
@media print{
  @page{
    size:A4;
    margin:0;
  }
  .grn-print-preview{
    background:#fff!important;
  }
  .paper.receiving-paper.grn-page{
    width:210mm!important;
    min-height:297mm!important;
    margin:0!important;
    padding:12mm 12mm 10mm!important;
    box-shadow:none!important;
    break-after:page;
    page-break-after:always;
  }
  .paper.receiving-paper.grn-page:last-child{
    break-after:auto;
    page-break-after:auto;
  }
  .grn-page-break{
    break-before:page;
    page-break-before:always;
  }
  .grn-table thead{
    display:table-header-group;
  }
  .grn-table tr{
    break-inside:avoid;
    page-break-inside:avoid;
  }
}


/* Shared-style module header actions for controlled Receiving refresh. */
.mrr-register-module .mrr-page-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.mrr-register-module .mrr-refresh-button{
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:720px){
  .mrr-register-module .mrr-page-header-actions{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .mrr-register-module .mrr-page-header-actions .mrr-btn,
  .mrr-register-module .mrr-page-header-actions .mrr-start-receiving{
    width:100%;
    min-width:0;
    white-space:normal;
  }
  .mrr-register-module .mrr-page-header-actions .mrr-refresh-button:only-child{
    grid-column:1 / -1;
  }
}
