.product-capacity-card{display:flex;align-items:center;gap:12px;margin:12px 0;padding:15px;border:1px solid #bdd4ee;border-radius:14px;background:#f3f7fe}.product-capacity-card>svg{width:30px}.product-capacity-card span{display:flex;flex-direction:column}.product-capacity-card small{color:#697e9e;margin-top:4px}.preset-row{display:flex;gap:8px;margin-top:-8px;margin-bottom:12px}.preset-row button{border:1px solid #ccdaed;background:#fff;border-radius:10px;padding:8px 18px;color:#173d7f;font-weight:700}.preset-row button:hover{background:#edf4ff}
.ibc-create-page{position:relative;min-height:calc(100vh - 82px);display:grid;place-items:center;margin:-34px;padding:42px 20px}.ibc-create-backdrop{position:absolute;inset:0;background:rgba(12,31,68,.58);backdrop-filter:blur(5px)}.ibc-create-dialog{position:relative;z-index:1;width:min(512px,calc(100vw - 32px));border-radius:27px;background:#fff;box-shadow:0 28px 70px rgba(5,20,50,.28);overflow:hidden}.ibc-dialog-header{min-height:67px;padding:0 21px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4eaf3}.ibc-dialog-header h1{margin:0;font-size:19px;line-height:1.2;color:#0f2349}.ibc-dialog-close{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#8aa0bf}.ibc-dialog-close:hover{background:#f1f5fa;color:#173d7f}.ibc-dialog-close svg{width:19px;height:19px}.ibc-dialog-body{padding:20px 21px 21px}.ibc-dialog-field{display:block;margin:0 0 19px}.ibc-dialog-field>span,.ibc-field-label{display:block;margin-bottom:8px;color:#172b50;font-size:12px;font-weight:700}.ibc-dialog-field input,.ibc-dialog-field select,.ibc-dialog-field textarea{width:100%;border:1px solid #c8d6e9;border-radius:13px;background:#fff;padding:12px 13px;color:#10244a;outline:none}.ibc-dialog-field select{min-height:61px;padding-right:42px;font-weight:700}.ibc-dialog-field input:focus,.ibc-dialog-field select:focus,.ibc-dialog-field textarea:focus{border-color:#2d68c4;box-shadow:0 0 0 2px rgba(45,104,196,.09)}.ibc-dialog-field textarea{min-height:42px;resize:vertical}.ibc-product-summary{margin:-55px 46px 0 13px;position:relative;z-index:2;pointer-events:none}.ibc-product-summary strong,.ibc-product-summary small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ibc-product-summary strong{font-size:13px}.ibc-product-summary small{font-size:11px;color:#6f83a4;margin-top:2px}.ibc-dialog-field:has(.ibc-product-summary:not([hidden])) select,.ops-field:has(.ibc-product-summary:not([hidden])) select{color:transparent}.ibc-dialog-field:has(.ibc-product-summary:not([hidden])){padding-bottom:1px}.ops-field .ibc-product-summary{margin:-55px 46px 0 13px}.ibc-quantity-section{margin:3px 0 20px}.ibc-stepper{display:flex;align-items:center;justify-content:center;gap:23px}.ibc-stepper>button{width:49px;height:49px;border:1px solid #ccdaec;border-radius:16px;background:#fff;color:#173d7f;display:grid;place-items:center;font-size:25px;cursor:pointer}.ibc-stepper>button:hover{background:#f3f7fc}.ibc-stepper>button svg{width:22px}.ibc-stepper-value{width:62px;text-align:center}.ibc-stepper-value input{width:100%;padding:0;border:0;outline:0;background:transparent;text-align:center;color:#10275b;font-size:35px;font-weight:700;appearance:textfield}.ibc-stepper-value input::-webkit-inner-spin-button,.ibc-stepper-value input::-webkit-outer-spin-button{appearance:none;margin:0}.ibc-stepper-value small{display:block;min-height:17px;color:#91a3bf;font-size:11px;font-weight:650;white-space:nowrap;transform:translateX(-10%)}.ibc-presets{display:flex;justify-content:center;gap:10px;margin-top:9px}.ibc-presets button{min-width:42px;border:0;border-radius:14px;background:#f0f4fa;color:#173d7f;padding:5px 11px;font-size:12px;font-weight:800;cursor:pointer}.ibc-presets button:hover{background:#dfe9f8}.ibc-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ibc-create-submit{width:100%;min-height:45px;border:0;border-radius:13px;background:#102b61;color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:700;cursor:pointer}.ibc-create-submit:hover{background:#173d7f}.ibc-create-submit svg{width:18px}.ibc-create-dialog .ibc-dialog-field:last-of-type{margin-bottom:19px}@media(max-width:760px){.ibc-create-page{margin:-20px;min-height:calc(100vh - 82px);padding:20px 12px}.ibc-two-fields{grid-template-columns:1fr}.ibc-create-dialog{border-radius:22px}}
.accounting-filters{margin:18px 0}.compact-btn{padding:7px 12px;font-size:12px}.ledger-table{margin-top:18px}.payment-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.payment-steps>div{display:flex;align-items:center;gap:7px;padding:12px;border-radius:12px;background:#f3f5f8;color:#7c8da8}.payment-steps>div.done{background:#e9faf3;color:#05835e}.payment-steps svg{width:20px}.kpi-grid.three{grid-template-columns:repeat(3,1fr)}.recipient-row{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dbe4f0;border-radius:12px;margin-top:8px}.recipient-row>span:nth-child(2){flex:1}.recipient-row small{display:block;color:#7183a2}.recipient-row .ops-status svg{width:14px}.compact-upload{min-height:115px;margin-top:18px}
/* Compact modal footer with a full-width primary action. */
.ibc-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.ibc-dialog-actions .btn-secondary{min-height:45px;display:inline-flex;align-items:center;padding:0 17px;border:1px solid #cbd8e9;border-radius:13px;color:#17345f;background:#fff;font-weight:700;text-decoration:none}
.ibc-dialog-actions .ibc-create-submit{width:100%;padding:0 20px}

/* IBC inventory library and detail workflow. */
.ibc-inventory-page{width:min(980px,100%);margin:0 auto;padding:28px 20px 60px;color:#10244a}
.ibc-inventory-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.ibc-inventory-eyebrow{display:flex;align-items:center;gap:7px;color:#244b8f;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.ibc-inventory-eyebrow svg{width:17px;height:17px}
.ibc-inventory-header h1{margin:7px 0 2px;font-size:27px;line-height:1.15}
.ibc-inventory-header p{margin:0;color:#7183a0;font-size:13px}
.ibc-inventory-actions{display:flex;align-items:center;gap:10px}
.ibc-refresh-button,.ibc-new-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d5dfec;border-radius:12px;background:#fff;color:#173d7f;text-decoration:none;font-weight:750}
.ibc-refresh-button{width:44px;height:44px}
.ibc-refresh-button svg{width:18px}
.ibc-new-button{min-height:44px;padding:0 18px;border-color:#15366f;background:#15366f;color:#fff;gap:7px}
.ibc-new-button svg{width:17px}
.ibc-search-bar{margin:0 0 12px}
.ibc-search-bar label{display:flex;align-items:center;gap:9px;width:100%;height:44px;padding:0 14px;border:1px solid #ccd8e9;border-radius:13px;background:#fff;color:#91a2bc}
.ibc-search-bar label:focus-within{border-color:#3970be;box-shadow:0 0 0 3px rgba(57,112,190,.09)}
.ibc-search-bar svg{width:17px;flex:0 0 auto}
.ibc-search-bar input{width:100%;border:0;outline:0;background:transparent;color:#17305d}
.ibc-filter-tabs{display:flex;align-items:center;gap:8px;min-height:31px;margin-bottom:18px;overflow-x:auto}
.ibc-filter-tabs a{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:6px 10px;border-radius:16px;color:#607596;font-size:12px;font-weight:700;text-decoration:none}
.ibc-filter-tabs a.active{background:#17366e;color:#fff}
.ibc-filter-tabs a i,.ibc-card-status i,.ibc-public-status i{width:7px;height:7px;border-radius:50%;background:#93a4bc}
.ibc-filter-tabs a b{min-width:17px;padding:1px 5px;border-radius:9px;background:rgba(23,54,110,.08);font-size:10px;text-align:center}
.ibc-filter-tabs a.active b{background:rgba(255,255,255,.16)}
.ibc-filter-created i,.status-created i{background:#eaa325!important}
.ibc-filter-available i,.status-available i{background:#06a977!important}
.ibc-filter-in_container i,.status-in_container i{background:#476fe7!important}
.ibc-filter-damaged i,.status-damaged i{background:#e05263!important}
.ibc-filter-delivered i,.status-delivered i{background:#4f7896!important}
.ibc-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ibc-unit-card{display:flex;align-items:center;gap:13px;min-height:104px;padding:16px;border:1px solid #e0e6ef;border-radius:19px;background:#fff;color:#10244a;text-decoration:none;box-shadow:0 10px 24px rgba(20,42,82,.07);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.ibc-unit-card:hover{transform:translateY(-2px);border-color:#b7cae5;box-shadow:0 14px 30px rgba(20,42,82,.11)}
.ibc-unit-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 auto;border-radius:14px;background:#eef4ff;color:#184484}
.ibc-unit-icon svg{width:24px}
.ibc-unit-copy{display:block;min-width:0;flex:1}
.ibc-unit-copy>strong,.ibc-unit-copy>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ibc-unit-copy>strong{font-size:15px}
.ibc-unit-copy>small{margin-top:4px;color:#617695;font-size:11px}
.ibc-card-meta{display:flex;align-items:center;gap:9px;margin-top:9px;color:#8393aa;font-size:10px}
.ibc-card-meta>span{display:inline-flex;align-items:center;gap:3px}
.ibc-card-meta svg{width:13px}
.ibc-card-status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:12px;background:#f0f3f7;color:#536987;font-style:normal;font-weight:750}
.ibc-card-status.status-available{background:#e8faf3;color:#087a57}
.ibc-card-status.status-in_container{background:#edf1ff;color:#365ac0}
.ibc-card-status.status-created{background:#fff6df;color:#966000}
.ibc-card-status.status-damaged{background:#fff0f2;color:#b93649}
.ibc-card-status.status-delivered{background:#edf4f7;color:#3d657e}
.ibc-empty-state{display:flex;min-height:300px;flex-direction:column;align-items:center;justify-content:center;padding:35px;border:1px dashed #bdcbe0;border-radius:20px;background:#fff;text-align:center;color:#6d7f9c}
.ibc-empty-state>svg{width:42px;color:#315eaa}
.ibc-empty-state h2{margin:15px 0 5px;color:#16315f}
.ibc-empty-state p{margin:0 0 20px}

.ibc-detail-page{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:22px}
.ibc-detail-backdrop{position:absolute;inset:0;background:rgba(20,38,72,.62);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.ibc-detail-dialog{position:relative;z-index:1;width:min(670px,100%);max-height:calc(100vh - 44px);overflow:hidden;border:1px solid #dde5ef;border-radius:25px;background:#fff;box-shadow:0 28px 80px rgba(7,24,55,.35)}
.ibc-detail-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 23px 17px;border-bottom:1px solid #e2e8f1}
.ibc-detail-header h1{margin:0;font-size:21px}
.ibc-detail-header p{margin:4px 0 0;color:#6e819e;font-size:12px}
.ibc-detail-header-actions{display:flex;align-items:center;gap:7px}
.ibc-delete-form{margin:0}
.ibc-delete-button,.ibc-detail-close{display:grid;width:37px;height:37px;place-items:center;border:0;border-radius:11px;background:transparent;color:#8ca0bd;cursor:pointer}
.ibc-delete-button{color:#ec5268}
.ibc-delete-button:hover{background:#fff0f2}
.ibc-detail-close:hover{background:#f0f4fa;color:#173d7f}
.ibc-delete-button svg,.ibc-detail-close svg{width:18px}
.ibc-detail-body{max-height:calc(100vh - 128px);overflow:auto;padding:20px 23px 23px}
.ibc-detail-section>h2{margin:0 0 10px;font-size:14px}
.ibc-status-picker{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ibc-status-picker form{margin:0}
.ibc-status-picker button{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid transparent;border-radius:14px;background:#f3f5f8;color:#637691;font-size:11px;font-weight:750;cursor:pointer}
.ibc-status-picker button i{width:7px;height:7px;border-radius:50%;background:#93a4bc}
.ibc-status-picker button.active{border-color:#4c75da;background:#edf1ff;color:#3253b0;box-shadow:0 0 0 2px rgba(76,117,218,.1)}
.ibc-status-picker button:disabled{cursor:default;opacity:1}
.ibc-detail-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:16px 0 20px}
.ibc-detail-facts div{padding:13px 14px;border-radius:12px;background:#f6f8fb}
.ibc-detail-facts dt{color:#8494ac;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.ibc-detail-facts dd{margin:5px 0 0;color:#112850;font-size:14px;font-weight:800}
.ibc-inspection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ibc-photo-slot{position:relative;min-width:0}
.ibc-photo-upload-form{height:126px;margin:0}
.ibc-photo-upload-form label{position:relative;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:7px;overflow:hidden;border:1px solid #d9e2ee;border-radius:14px;background:#f9fbfd;color:#8fa0b8;cursor:pointer}
.ibc-photo-upload-form label>svg{width:22px}
.ibc-photo-upload-form strong{font-size:10px}
.ibc-photo-upload-form input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ibc-photo-slot.has-photo .ibc-photo-upload-form label{justify-content:flex-end;background:#152d58;color:#fff}
.ibc-photo-slot.has-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ibc-photo-slot.has-photo strong{position:relative;z-index:2;width:100%;padding:22px 7px 8px;background:linear-gradient(transparent,rgba(7,22,49,.82));text-align:center}
.ibc-photo-replace{position:absolute;top:8px;left:8px;z-index:2;display:grid;width:27px;height:27px;place-items:center;border-radius:9px;background:rgba(8,29,64,.72);color:#fff}
.ibc-photo-replace svg{width:14px}
.ibc-photo-delete-form{position:absolute;top:7px;right:7px;z-index:3;margin:0}
.ibc-photo-delete-form button{display:grid;width:27px;height:27px;place-items:center;border:0;border-radius:9px;background:rgba(118,20,38,.82);color:#fff;cursor:pointer}
.ibc-photo-delete-form svg{width:14px}
.ibc-label-panel{margin-top:20px}
.ibc-label-panel>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border:1px solid #dce4ee;border-radius:13px;background:#fafbfd}
.ibc-label-panel span strong,.ibc-label-panel span small{display:block}
.ibc-label-panel span small{margin-top:4px;color:#7789a5;font-size:10px}
.ibc-label-panel a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:0 14px;border-radius:11px;background:#17366e;color:#fff;font-size:11px;font-weight:750;text-decoration:none}
.ibc-label-panel a svg{width:16px}

.ibc-public-card{position:relative;max-width:620px;margin:30px auto;text-align:center}
.ibc-public-icon{display:grid;width:58px;height:58px;margin:0 auto 15px;place-items:center;border-radius:17px;background:#edf4ff;color:#174484}
.ibc-public-icon svg{width:29px}
.ibc-public-card h1{margin:8px 0;font-size:32px}
.ibc-public-card>p{color:#667b9b}
.ibc-public-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0;text-align:left}
.ibc-public-card dl div{padding:14px;border-radius:12px;background:#f5f8fc}
.ibc-public-card dt{color:#7a8ca7;font-size:10px;font-weight:800;text-transform:uppercase}
.ibc-public-card dd{margin:5px 0 0;font-weight:800}
.ibc-public-status{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:15px;background:#edf2f7;color:#425a79;font-size:12px;font-weight:800}

@media(max-width:900px){.ibc-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
  .ibc-inventory-page{padding:18px 0 40px}.ibc-inventory-header{align-items:flex-start}.ibc-inventory-header h1{font-size:22px}.ibc-refresh-button{display:none}.ibc-new-button{padding:0 13px}
  .ibc-card-grid{grid-template-columns:1fr}.ibc-detail-page{padding:8px}.ibc-detail-dialog{max-height:calc(100vh - 16px);border-radius:19px}.ibc-detail-body{max-height:calc(100vh - 91px);padding:17px}.ibc-detail-header{padding:17px}
  .ibc-detail-facts{grid-template-columns:1fr}.ibc-inspection-grid{grid-template-columns:1fr 1fr}.ibc-label-panel>div{align-items:flex-start;flex-direction:column}.ibc-label-panel a{width:100%}
  .ibc-public-card dl{grid-template-columns:1fr}
}
