body.bakery-admin.rep-portal{margin:0;background:#f4f6f3;color:#24382e;font-family:Arial,sans-serif;min-height:100vh;padding:0 16px 105px;display:block}.rep-shell{width:100%;max-width:760px;margin:auto}.rep-header{display:flex;justify-content:space-between;align-items:center;padding:24px 0}.rep-header>a{display:flex;align-items:center;gap:10px;color:#254d3c;font-weight:700;font-size:20px}.rep-logo{background:#254d3c;color:white;border-radius:12px;width:42px;height:42px;display:grid;place-items:center;font:28px Georgia,serif}.rep-subtitle{display:block;font-size:9px;letter-spacing:2px;margin-top:3px}.rep-signout{border:1px solid #cad5cd;background:white;border-radius:10px;padding:12px;color:#385947;font-size:12px}.rep-portal a{color:#254d3c}.rep-portal h1{font-size:28px;font-weight:700;letter-spacing:-.7px;color:#24382e;overflow-wrap:anywhere}.rep-portal h2{font-size:19px;font-weight:700;margin:0}.rep-portal h3{font-size:16px;font-weight:700;margin:0 0 8px;overflow-wrap:anywhere}.rep-portal p{line-height:1.6;font-size:14px}.rep-kicker{font-size:10px!important;letter-spacing:1.3px;font-weight:700;text-transform:uppercase;color:#657e6c}.rep-welcome{padding:28px;border-radius:20px;background:#e3ebda;margin-bottom:18px}.rep-welcome p{color:#526a56}.rep-primary,.rep-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;border-radius:10px;padding:12px 16px;font-size:14px;font-weight:600;line-height:1.3;text-align:center;border:1px solid #254d3c;cursor:pointer}.rep-portal .rep-primary{background:#254d3c;color:white}.rep-portal .rep-primary:hover{background:#193b2b;color:white}.rep-secondary{background:white;color:#254d3c;border-color:#d1dbd2}.rep-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:28px}.rep-stats>div{background:white;border:1px solid #e0e7df;border-radius:14px;text-align:center;padding:18px 8px}.rep-stats strong{font-size:27px;display:block}.rep-stats span{font-size:11px;color:#647566}.rep-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 14px}.rep-section-title a{font-size:13px;font-weight:600;min-height:44px;display:flex;align-items:center}.rep-card{display:block;background:white;padding:20px;border:1px solid #e0e7df;border-radius:15px;margin-bottom:12px;overflow-wrap:anywhere}.rep-card p{margin:5px 0 12px;color:#647566}.rep-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.rep-tag{display:inline-block;font-size:10px;font-weight:600;border-radius:20px;padding:6px 10px;color:#805b21;background:#fcf1d8;white-space:nowrap;margin-bottom:10px}.rep-tag.is-done{background:#e8f4e9;color:#32643c}.rep-link{font-size:13px;font-weight:600;color:#365e43}.rep-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.rep-actions>*{flex:1}.rep-muted{color:#657569;font-size:12px!important}.rep-sales{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px}.rep-sales strong{font-size:27px}.rep-sales a{font-size:13px}.rep-page-heading{padding:20px 0}.rep-search{background:white;padding:18px;border:1px solid #e0e7df;border-radius:14px;margin-bottom:20px}.rep-search label{font-size:12px;display:block;margin-bottom:8px}.rep-search input,.rep-search select{width:100%;min-width:0;border:1px solid #cdd7cf;border-radius:8px;padding:12px;font-size:16px;min-height:46px}.rep-search>input{margin-bottom:16px}.rep-back{display:inline-flex;padding:12px 0;margin-bottom:12px;font-size:14px}.rep-bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:792px;background:#fff;border-top:1px solid #dce4dc;display:grid;grid-template-columns:repeat(4,1fr);padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:100;box-shadow:0 -5px 20px #254d3c08}.rep-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;font-size:11px;font-weight:600;border-radius:10px;color:#647566}.rep-bottom-nav a span{font-size:13px;color:#8a9a8e}.rep-bottom-nav a[aria-current=page]{background:#e6eedf;color:#254d3c}.rep-bottom-nav a[aria-current=page] span{color:#254d3c}.rep-portal :focus-visible{outline:3px solid #b77d3f;outline-offset:3px}.rep-portal .root-list-panel{border-radius:16px;margin-bottom:16px}.rep-portal .root-form-body{grid-template-columns:1fr}.rep-portal .form-control{font-size:16px;min-height:46px}.rep-portal .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}.rep-portal .btn-primary{background:#254d3c;border-color:#254d3c;color:white}.rep-portal .root-form-footer{flex-wrap:wrap;gap:12px}.rep-portal .root-list-intro{flex-wrap:wrap;gap:12px}.rep-portal .pagination{flex-wrap:wrap;gap:3px}.rep-portal .page-link{min-height:44px;min-width:38px}.rep-portal .invoice-entry-table{min-width:0}.rep-portal .invoice-entry-table .item-price,.rep-portal .invoice-entry-table .item-quantity{min-width:0}
@media(max-width:600px){.rep-welcome{padding:23px}.rep-card{padding:17px}.rep-portal h1{font-size:25px}.rep-portal .invoice-entry-table,.rep-portal .invoice-entry-table tbody{display:block;width:100%}.rep-portal .invoice-entry-table thead{display:none}.rep-portal .invoice-entry-table tr{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:10px;border-bottom:1px solid #dce4dc}.rep-portal .invoice-entry-table td{display:block;border:0;padding:0;min-width:0}.rep-portal .invoice-entry-table td:first-child{grid-column:1/-1}.rep-portal .invoice-entry-table td:before{display:block;font-size:11px;color:#647566;margin-bottom:5px}.rep-portal .invoice-entry-table td:nth-child(1):before{content:'Item description'}.rep-portal .invoice-entry-table td:nth-child(2){grid-column:1/-1} .rep-portal .invoice-entry-table td:nth-child(2):before{content:'Batch / expiry'} .rep-portal .invoice-entry-table td:nth-child(3):before{content:'Quantity'}.rep-portal .invoice-entry-table td:nth-child(4):before{content:'Unit price'}.rep-portal .invoice-entry-table td:nth-child(5):before{content:'Amount'}.rep-portal .invoice-entry-table td:last-child{text-align:right}.rep-portal .root-details-grid{grid-template-columns:1fr}.rep-portal #invoice-form>.d-flex{flex-wrap:wrap;gap:16px}.rep-portal .root-directory-table{min-width:0;font-size:12px}.rep-portal .root-directory-table th,.rep-portal .root-directory-table td{padding:10px 6px;white-space:normal}.rep-card-top h3{flex:1}.rep-invoice-card .rep-card-top{flex-wrap:wrap}.rep-portal .root-form-footer>*{flex:1}}
@media print{body.bakery-admin.rep-portal{background:white;padding:0}.rep-bottom-nav,.rep-header,.no-print{display:none!important}.rep-shell{max-width:none}.rep-portal .root-directory-table{min-width:0}.rep-portal .table-responsive{overflow:visible}}
.rep-portal .item-suggestions{border:1px solid #cdd7cf;border-radius:10px;background:#fff;margin-top:8px;max-height:240px;overflow-y:auto}.rep-portal .item-suggestions button{display:block;width:100%;min-height:48px;background:white;border:0;border-bottom:1px solid #e6ece5;padding:12px;text-align:left;color:#254d3c;font-size:14px;white-space:normal}.rep-portal .item-suggestions button:hover,.rep-portal .item-suggestions button:focus{background:#e6eedf}.rep-portal .item-suggestions p{padding:12px;margin:0;font-size:13px}
.rep-bottom-nav{grid-template-columns:repeat(5,1fr)} @media print{@page{size:A4;margin:12mm}.root-list-panel{box-shadow:none!important;border:0!important}thead{display:table-header-group}tr{break-inside:avoid}.root-form-footer{break-inside:avoid}}
.rep-temporary-route{margin:12px 0 16px;padding:14px 16px;background:#fff8e8;border-left:3px solid #d7a43c;border-radius:8px}.rep-temporary-route p{margin:0 0 6px;color:#634b22}.rep-temporary-route small{color:#75613f}.rep-temporary-route .rep-tag{margin-bottom:6px}
.rep-portal .rep-outstanding{padding:12px 14px;border-radius:10px;background:#fff1dc;border:1px solid #efdbba;color:#80541d;font-size:13px}.rep-outstanding p{margin:0 0 10px}

.rep-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.rep-bottom-nav a{min-width:0;font-size:10px;padding-left:2px;padding-right:2px}

/* Keep route actions readable, including the nested close-dispatch form. */
.rep-route-card .rep-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.rep-route-card .rep-actions>*{min-width:0;margin:0}
.rep-route-card .rep-actions form{display:flex}
.rep-route-card .rep-actions .rep-primary,.rep-route-card .rep-actions .rep-secondary{width:100%;box-sizing:border-box;overflow-wrap:normal;word-break:normal}
@media(max-width:600px){.rep-route-card .rep-actions{grid-template-columns:1fr}}