
/* NOVARE WMS - INFOR Reports inspired visual system */
:root{
    --sidebar:#24394d;
    --sidebar-2:#16384A;
    --sidebar-text:#E3EEF3;
    --sidebar-muted:#91a3b7;
    --page:#f5f6f8;
    --card:#ffffff;
    --border:#dfe4ea;
    --text:#172331;
    --muted:#73808d;
    --blue:#1F5A73;
    --green:#15a873;
    --orange:#e97b00;
    --purple:#7c46e8;
    --cyan:#17a8c8;
    --red:#d54d4d;
    --shadow:0 2px 7px rgba(22,34,48,.06);
}

html,body{
    margin:0;
    padding:0;
    width:100%;
    min-width:0 !important;
    min-height:100%;
    overflow-x:hidden;
    font-family:Inter,"Segoe UI",Arial,Helvetica,sans-serif;
    background:var(--page);
    color:var(--text);
    font-size:13px;
}

*{box-sizing:border-box}
a{color:#1F5A73}
h1,h2,h3,h4,h5,h6{color:var(--text)}

.wms-shell{
    width:100vw;
    min-height:100dvh;
    display:flex;
    background:var(--page);
    overflow-x:hidden;
}
.wms-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:264px;
    min-width:264px;
    background:var(--sidebar);
    overflow:hidden;
    z-index:1000;
    border-right:1px solid rgba(255,255,255,.04);
}
.wms-main{
    margin-left:264px;
    width:calc(100vw - 264px);
    max-width:calc(100vw - 264px);
    min-width:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
}
.wms-header{
    height:50px;
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:0 20px;
    background:#fff;
    border-bottom:1px solid var(--border);
    box-shadow:0 1px 2px rgba(22,56,74,.025);
    position:sticky;
    top:0;
    z-index:900;
}
.header-left,.header-right,.user-area{display:flex;align-items:center;min-width:0}
.header-left{gap:10px;flex:1 1 auto}
.header-context-actions{display:flex;align-items:center;gap:2mm;min-width:0}
.close-tabs-context{flex:0 0 auto;white-space:nowrap}
.header-right{gap:12px;flex:0 1 auto;margin-left:auto}
.header-brand-logo{height:36px;width:auto;object-fit:contain}
.header-environment{
    position:fixed;
    left:50vw;
    top:9px;
    transform:translateX(-50%);
    z-index:901;
    min-height:31px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px 10px;
    border:1px solid #f0d98e;
    background:#fff8d9;
    color:#9b6b00;
    border-radius:6px;
    font-size:11px;
    line-height:1;
    font-weight:800;
    letter-spacing:.05em;
}
.warehouse-context{display:flex;flex-direction:column;width:300px;min-width:210px}
.warehouse-context-label{
    margin-bottom:2px;
    color:#7b8996;
    font-size:8px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.warehouse-context-select{
    width:100%;
    height:29px;
    min-width:0;
    padding:3px 30px 3px 9px;
    border:1px solid #d5dce3;
    border-radius:5px;
    background:#fff;
    color:#16384A;
    font-size:11px;
    font-weight:650;
}
.user-avatar{
    width:31px;height:31px;border-radius:50%;
    display:grid;place-items:center;background:#1A4A60;color:#fff;
    font-size:10px;font-weight:800;
}
.user-info{display:flex;flex-direction:column;line-height:1.12}
.user-info strong{font-size:11px;color:#16384A}
.user-info span{font-size:9px;color:#82909c}
.logout-button{
    border:0;background:transparent;color:#7890a6;
    font-size:17px;cursor:pointer;padding:3px 5px
}
.logout-button:hover{color:#1A4A60}
.wms-header .btn{
    height:29px;padding:3px 9px;border-radius:5px;font-size:10px;
}

.wms-content{
    flex:1;
    width:100%;
    min-width:0;
    max-width:100%;
    padding:18px 22px 28px;
    overflow-x:hidden;
}
.page-title{margin:0 0 12px}
.page-title h1{margin:0;font-size:22px;font-weight:720;letter-spacing:-.02em}
.page-subtitle{margin-top:3px;color:#758493;font-size:10px}

/* General white panels: same visual language as INFOR Reports cards */
.card,.content-card,.module-card,.form-card,.list-card,.operation-panel,.inventory-detail-panel{
    background:#fff;
    border:1px solid var(--border) !important;
    border-radius:9px !important;
    box-shadow:var(--shadow);
}
.content-card-header,.module-card-header{
    padding:11px 14px;
    border-bottom:1px solid #e8ecf0;
}
.content-card-body{padding:13px 14px}

/* Compact form/filter experience */
.form-control,.form-select{
    min-height:31px;
    border:1px solid #d6dde4;
    border-radius:5px;
    font-size:11px;
}
.form-control:focus,.form-select:focus{
    border-color:#5F8799;
    box-shadow:0 0 0 2px rgba(31,90,115,.09);
}
.btn{border-radius:5px;font-size:11px;font-weight:650}
.btn-primary{background:#1F5A73;border-color:#1F5A73}
.btn-primary:hover{background:#1A4A60;border-color:#1A4A60}

/* Tables stay inside their card instead of forcing page horizontal scrolling */
.table-responsive,.content-card-body,.module-card,.list-card{min-width:0}
.table-responsive{overflow-x:auto;max-width:100%}
.table{width:100%;margin-bottom:0;color:#263746}
.table thead th{
    padding:8px 9px;
    background:#f8f9fb;
    color:#61717f;
    border-bottom:1px solid #dfe5ea;
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.035em;
    white-space:nowrap;
}
.table tbody td{
    padding:8px 9px;
    border-color:#edf0f3;
    font-size:11px;
    vertical-align:middle;
}
.table-hover tbody tr:hover{background:#f8fbff}

/* Sidebar fallback styles are global on purpose so Razor CSS isolation cannot leave native buttons visible. */
.nav-shell{
    height:100vh;
    display:flex;
    flex-direction:column;
    background:linear-gradient(180deg,var(--sidebar) 0%,var(--sidebar-2) 100%);
}
.novare-sidebar-brand{
    flex:0 0 92px;
    display:flex;align-items:center;justify-content:center;
    padding:8px 12px;
    border-bottom:1px solid rgba(255,255,255,.07);
}
.novare-sidebar-logo{height:72px;max-width:145px;width:auto;object-fit:contain}
.sidebar-nav-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;padding:9px 10px 12px 7px}
.sidebar-nav-scroll::-webkit-scrollbar{width:4px}
.sidebar-nav-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px}
.wms-nav{display:flex;flex-direction:column;gap:3px;padding:0 !important}
.nav-home{
    margin-bottom:4px;
    border-left:3px solid transparent;
}
.nav-group{width:100%;margin:0;border-radius:6px}
.nav-group-summary{
    appearance:none !important;
    -webkit-appearance:none !important;
    width:100% !important;
    min-height:34px;
    display:flex !important;
    align-items:center !important;
    gap:9px;
    padding:7px 9px !important;
    margin:0;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#f5f7fa !important;
    font-family:inherit !important;
    font-size:11px !important;
    font-weight:720 !important;
    text-align:left;
    cursor:pointer;
}
.nav-group-summary:hover{background:rgba(255,255,255,.055) !important}
.group-chevron{margin-left:auto;color:#b9c5d1;font-size:15px;line-height:1;transition:transform .15s}
.nav-group.is-open .group-chevron{transform:rotate(90deg)}
.group-dot{width:7px;height:7px;min-width:7px;border-radius:50%;background:var(--blue)}
.receiving-dot{background:#1F5A73}
.storage-dot{background:#7c46e8}
.shipping-dot{background:#18a873}
.route-dot{background:#ed8a00}
.count-dot{background:#17a8c8}
.setup-dot{background:#6d839a}
.nav-group-items{padding:0 0 4px 11px;display:flex;flex-direction:column;gap:1px}
.wms-nav .nav-entry{
    display:flex !important;
    align-items:center !important;
    width:100%;
    min-height:31px;
    gap:8px;
    padding:6px 8px !important;
    margin:1px 0;
    border-radius:5px;
    color:#E3EEF3 !important;
    background:transparent;
    text-decoration:none !important;
    font-size:10.5px;
    line-height:1.2;
}
.wms-nav .nav-entry:hover{background:rgba(255,255,255,.06);color:#fff !important}
.wms-nav .nav-entry.active{
    background:#293b4f !important;
    color:#fff !important;
    box-shadow:inset 3px 0 0 #1F5A73;
}
.nav-icon{
    width:16px;min-width:16px;text-align:center;
    color:#9FBCCB;font-size:12px
}
.nav-text{min-width:0;white-space:nowrap}
.sidebar-footer{
    position:static !important;
    flex:0 0 auto;
    padding:8px 11px;
    border-top:1px solid rgba(255,255,255,.07);
    background:#16384A;
}
.system-indicator{display:flex;align-items:center;gap:8px}
.status-dot{
    width:8px;height:8px;min-width:8px;border-radius:50%;
    background:#20d274;box-shadow:0 0 7px rgba(32,210,116,.5)
}
.system-indicator div{display:flex;flex-direction:column;line-height:1.15}
.system-indicator strong{color:#e7edf3;font-size:9px}
.system-indicator span{color:#7d94aa;font-size:8px}

/* Dashboard visual hierarchy */
.dashboard-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:12px}
.dashboard-refresh{display:flex;align-items:center;gap:8px;color:#7d8994;font-size:9px}
.report-kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:16px;
}
.report-kpi-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    padding:15px 15px 14px;
    background:#fff;
    border:1px solid var(--border);
    border-top:4px solid var(--blue);
    border-radius:9px;
    box-shadow:var(--shadow);
    color:inherit !important;
    text-decoration:none !important;
    overflow:hidden;
    transition:transform .12s ease,box-shadow .12s ease;
}
.report-kpi-card:nth-child(2){border-top-color:var(--green)}
.report-kpi-card:nth-child(3){border-top-color:var(--orange)}
.report-kpi-card:nth-child(4){border-top-color:var(--purple)}
.report-kpi-card:hover{transform:translateY(-1px);box-shadow:0 5px 15px rgba(25,39,54,.09)}
.report-kpi-icon{
    flex:0 0 38px;height:38px;border-radius:8px;
    display:grid;place-items:center;background:#eef4ff;color:var(--blue);font-size:17px
}
.report-kpi-card:nth-child(2) .report-kpi-icon{background:#eaf8f3;color:var(--green)}
.report-kpi-card:nth-child(3) .report-kpi-icon{background:#fff3e6;color:var(--orange)}
.report-kpi-card:nth-child(4) .report-kpi-icon{background:#f3edff;color:var(--purple)}
.report-kpi-body{min-width:0;flex:1}
.report-kpi-title{
    display:block;margin-bottom:5px;color:#25394b;
    font-size:12px;font-weight:780
}
.report-kpi-values{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.report-kpi-values>div{min-width:0}
.report-kpi-values strong{display:block;color:#16384A;font-size:17px;line-height:1}
.report-kpi-values small{
    display:block;margin-top:4px;color:#7f8b96;font-size:8.5px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.dashboard-section-title{margin:0 0 7px}
.dashboard-section-title strong{display:block;font-size:12px;color:#24394c}
.dashboard-section-title span{display:block;margin-top:1px;color:#83909a;font-size:9px}
.period-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.period-card{
    background:#fff;border:1px solid var(--border);border-top:3px solid var(--blue);
    border-radius:9px;padding:12px 14px;box-shadow:var(--shadow)
}
.period-card:nth-child(2){border-top-color:var(--green)}
.period-card:nth-child(3){border-top-color:var(--orange)}
.period-card-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:7px;margin-bottom:2px;border-bottom:1px solid #edf0f3}
.period-card-head strong{display:block;color:#263b4d;font-size:11px}
.period-card-head span:not(.period-badge){display:block;color:#8a96a0;font-size:8px;margin-top:2px}
.period-badge{
    min-width:25px;height:22px;padding:0 6px;border-radius:11px;
    display:grid;place-items:center;background:#edf4ff;color:#1F5A73;
    font-size:8px;font-weight:800
}
.period-metric{display:flex;align-items:center;justify-content:space-between;padding:5px 0;border-bottom:1px solid #f0f2f4}
.period-metric:last-child{border-bottom:0}
.period-metric span{color:#657786;font-size:9px}
.period-metric strong{color:#16384A;font-size:11px}
.dashboard-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.report-panel{
    overflow:hidden;background:#fff;border:1px solid var(--border);
    border-radius:9px;box-shadow:var(--shadow)
}
.report-panel.attention-panel{border-top:3px solid #e8a227}
.report-panel:not(.attention-panel){border-top:3px solid var(--cyan)}
.report-panel-head{
    display:flex;align-items:center;justify-content:space-between;
    padding:9px 12px;background:#fbfcfd;border-bottom:1px solid #e9edf1
}
.report-panel-head strong{display:block;color:#263b4d;font-size:10px}
.report-panel-head span:not(.panel-total){display:block;color:#8a97a1;font-size:8px;margin-top:1px}
.panel-total{
    min-width:25px;height:21px;padding:0 6px;border-radius:11px;
    display:grid;place-items:center;background:#fff1d7;color:#8a5a00;
    font-size:9px;font-weight:800
}
.panel-total.neutral{background:#e9f7fb;color:#16718a}
.exception-list{padding:2px 11px 5px}
.exception-row{
    display:flex;align-items:center;justify-content:space-between;
    padding:6px 2px;border-bottom:1px solid #eef1f3;
    color:#344b5e !important;text-decoration:none !important;font-size:9px
}
.exception-row:last-child{border-bottom:0}
.exception-row strong{
    min-width:25px;padding:2px 6px;border-radius:10px;
    background:#fff2dc;color:#8b5900;text-align:center;font-size:9px
}
.task-grid{display:grid;grid-template-columns:repeat(5,1fr)}
.task-tile{padding:11px 5px;text-align:center;border-right:1px solid #eef1f3}
.task-tile:last-child{border-right:0}
.task-tile span{display:block;color:#71818e;font-size:8px}
.task-tile strong{display:block;margin-top:3px;color:#1d6c85;font-size:16px}

/* generic search/filter cards: compact, one horizontal band when space allows */
.search-criteria,.filter-card,.search-card{
    padding:11px 12px !important;
    border-radius:9px !important;
}
.inventory-filter-grid{gap:8px 10px !important}

/* width breakpoints */
@media(max-width:1600px){
    .wms-sidebar{width:256px;min-width:256px}
    .wms-main{margin-left:256px;width:calc(100vw - 256px);max-width:calc(100vw - 256px)}
    .wms-content{padding:15px 17px 25px}
    .warehouse-context{width:255px}
}
@media(max-width:1380px){
    .wms-sidebar{width:250px;min-width:250px}
    .wms-main{margin-left:250px;width:calc(100vw - 250px);max-width:calc(100vw - 250px)}
    .wms-content{padding:13px 14px 22px}
    .report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .user-info{display:none}
}
@media(max-width:1080px){
    .period-report-grid,.dashboard-bottom-grid{grid-template-columns:1fr}
    .warehouse-context{width:205px;min-width:160px}
}
@media(max-width:820px){
    .wms-sidebar{width:240px;min-width:240px}
    .wms-main{margin-left:240px;width:calc(100vw - 240px);max-width:calc(100vw - 240px)}
    .report-kpi-grid{grid-template-columns:1fr}
    .header-brand-logo{display:none}
    .task-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-height:900px){
    .novare-sidebar-brand{flex-basis:70px}
    .novare-sidebar-logo{height:56px}
    .nav-group-summary{min-height:30px;padding-block:5px !important}
    .wms-nav .nav-entry{min-height:28px;padding-block:5px !important}
}

/* Operational UI layer */
.process-status-bar{display:flex;align-items:center;gap:0;margin:10px 0 14px;padding:10px 12px;background:#fff;border:1px solid var(--border,#dfe4ea);border-radius:8px;overflow-x:auto}
.process-step{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;font-weight:700;color:#8b98a5}.process-step-dot{width:10px;height:10px;border-radius:50%;border:2px solid #c8d1d9;background:#fff}.process-step.current{color:#1A4A60}.process-step.current .process-step-dot{border-color:#1F5A73;background:#1F5A73;box-shadow:0 0 0 3px rgba(31,90,115,.12)}.process-step.done{color:#237a57}.process-step.done .process-step-dot{border-color:#15a873;background:#15a873}.process-step-line{height:2px;min-width:28px;flex:1;background:#e4e8ec;margin:0 7px}.process-step-line.done{background:#73c7a9}
.operational-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.operational-card{margin:0!important}.readiness-list{display:flex;flex-direction:column;gap:2px}.readiness-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid #eef1f4;font-size:10px}.readiness-row:last-child{border-bottom:0}.readiness-ok,.readiness-bad,.readiness-warn{padding:3px 7px;border-radius:10px;font-size:9px}.readiness-ok{background:#e8f7f0;color:#16734e}.readiness-bad{background:#fdecec;color:#a63838}.readiness-warn{background:#fff5df;color:#8a6100}.operation-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.operation-time-grid label{font-size:9px;color:#61717f;font-weight:700}.operation-time-grid .form-control{margin-top:3px}.shipment-times-card{margin:10px 12px!important}.print-history-block{margin-top:12px;padding-top:10px;border-top:1px solid #e8edf1}
.loading-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:start}.loading-lane{background:#eef1f4;border-radius:8px;min-height:280px;border:1px solid #e0e5ea;overflow:hidden}.loading-lane-head{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;background:#fff;border-bottom:3px solid #1F5A73}.loading-lane:nth-child(2) .loading-lane-head{border-bottom-color:#7c46e8}.loading-lane:nth-child(3) .loading-lane-head{border-bottom-color:#17a8c8}.loading-lane:nth-child(4) .loading-lane-head{border-bottom-color:#e97b00}.loading-lane:nth-child(5) .loading-lane-head{border-bottom-color:#15a873}.loading-lane-head strong{font-size:10px}.loading-lane-head span{display:grid;place-items:center;min-width:22px;height:20px;border-radius:10px;background:#E3EEF3;font-size:9px;font-weight:800}.loading-lane-body{padding:7px}.loading-card{padding:9px;background:#fff;border:1px solid #dfe4e8;border-radius:6px;margin-bottom:7px;box-shadow:0 1px 3px rgba(22,56,74,.04)}.loading-card-main{display:flex;justify-content:space-between;gap:6px}.loading-card-main strong{font-size:10px;color:#16384A}.loading-card-main span{font-size:8px;color:#798894}.loading-card-meta{display:flex;justify-content:space-between;margin-top:5px;font-size:8px;color:#768795}.loading-progress{margin-top:6px;padding-top:5px;border-top:1px solid #eef1f4;font-size:8px;font-weight:700;color:#1F5A73}.empty-state.compact{padding:14px;text-align:center}
@media(max-width:1450px){.loading-board{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1050px){.loading-board{grid-template-columns:repeat(2,minmax(0,1fr))}.operational-two-col{grid-template-columns:1fr}}@media(max-width:760px){.loading-board,.operation-time-grid{grid-template-columns:1fr}}

/* Global Master Data dynamic RenderTree fields: global rules are required because
   fields are built with RenderTreeBuilder and do not receive Razor CSS-isolation attributes. */
.gmd-modal .fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.gmd-modal .field{min-width:0}
.gmd-modal .field.full{grid-column:1/-1}
.gmd-modal .field label{display:block;margin:0 0 3px;color:#526779;font-size:10px;font-weight:750}
.gmd-modal .field input,.gmd-modal .field select{box-sizing:border-box;width:100%;height:31px;border:1px solid #cbd6df;border-radius:5px;padding:4px 10px;background:#fff;color:#243b4f;font:inherit;font-size:12.5px;line-height:normal}
.gmd-modal .field input:focus,.gmd-modal .field select:focus{outline:none;border-color:#5F8799;box-shadow:0 0 0 2px rgba(31,90,115,.08)}
.gmd-modal .check{display:flex;align-items:center;gap:7px;min-height:31px;padding:3px 2px;color:#465c70;font-size:10.5px;font-weight:600}
.gmd-modal .check input{width:15px;height:15px;margin:0;accent-color:#1F5A73}
@media(max-width:720px){.gmd-modal .fields-grid{grid-template-columns:1fr}.gmd-modal .field.full{grid-column:auto}}

/* Global data refresh action */
.global-refresh-button{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
@media(max-width:900px){.global-refresh-button{font-size:0}.global-refresh-button::first-letter{font-size:14px}}


/* Global Master Data table styling - align with Receiving / Receipt Results.
   Kept in global CSS because RenderTreeBuilder-generated cells/buttons do not
   consistently receive Razor CSS-isolation scope attributes. */
.gmd-card.list-card .table-wrap{
    overflow:auto;
    max-width:100%;
}
.gmd-card.list-card table{
    width:100%;
    border-collapse:collapse;
    table-layout:auto;
    font-size:11px;
}
.gmd-card.list-card thead th{
    position:sticky;
    top:0;
    z-index:1;
    padding:9px 10px;
    background:#f7f9fb;
    color:#647687;
    border-bottom:1px solid #dce4eb;
    border-right:1px solid #edf1f4;
    text-align:left;
    font-size:9px;
    font-weight:800;
    letter-spacing:.035em;
    text-transform:uppercase;
    white-space:nowrap;
}
.gmd-card.list-card thead th:last-child{
    border-right:0;
}
.gmd-card.list-card tbody td{
    padding:9px 10px;
    color:#334b60;
    border-bottom:1px solid #e6ebef;
    border-right:1px solid #f0f2f4;
    vertical-align:middle;
}
.gmd-card.list-card tbody td:last-child{
    border-right:0;
}
.gmd-card.list-card tbody tr:nth-child(even){
    background:#fbfcfd;
}
.gmd-card.list-card tbody tr:hover{
    background:#f1f6fb;
}
.gmd-card.list-card .gmd-code-link{
    appearance:none;
    -webkit-appearance:none;
    border:0 !important;
    outline:0;
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0;
    color:#1A4A60 !important;
    font:inherit;
    font-weight:800;
    line-height:1.2;
    text-align:left;
    text-decoration:none;
    cursor:pointer;
}
.gmd-card.list-card .gmd-code-link:hover{
    color:#1A4A60 !important;
    text-decoration:underline;
}
.gmd-card.list-card .gmd-code-link:focus-visible{
    border-radius:3px;
    outline:2px solid rgba(31,90,115,.35);
    outline-offset:2px;
}

/* NOVARE_RECEIPT_STYLE_OPERATION_DRAWER */
.operation-grid{display:block!important}
.operation-drawer-closed{display:none!important}
.operation-panel.operation-drawer-open{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    z-index:1250!important;
    width:min(700px,94vw)!important;
    max-width:94vw!important;
    height:100vh!important;
    overflow-y:auto!important;
    border-radius:0!important;
    border-top:0!important;
    border-right:0!important;
    border-bottom:0!important;
    background:#fff!important;
    box-shadow:-14px 0 36px rgba(22,56,74,.18)!important;
}
.operation-panel.operation-drawer-open::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    background:rgba(22,56,74,.38);
}
.operation-drawer-close{
    position:absolute;
    top:12px;
    right:12px;
    z-index:3;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid #d7e0e7;
    border-radius:5px;
    background:#fff;
    color:#617482;
    font-size:20px;
    line-height:1;
    cursor:pointer;
}
.operation-drawer-close:hover{background:#f4f7f9;color:#263f52}
.operation-panel.operation-drawer-open>.module-card-header{padding-right:54px!important}
.operation-panel.operation-drawer-open .operation-actions{
    position:sticky;
    bottom:0;
    z-index:2;
    background:#fafbfc;
}
@media(max-width:700px){
    .operation-panel.operation-drawer-open{width:100vw!important;max-width:100vw!important}
}
/* END NOVARE_RECEIPT_STYLE_OPERATION_DRAWER */

/* NOVARE_UI_CONSISTENCY_V2 */

.novare-drawer-close,
.detail-close,
.drawer-close,
.form-close,
.operation-drawer-close{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    border:1px solid #d3dde5!important;
    border-radius:5px!important;
    background:#fff!important;
    color:#526878!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1!important;
    box-shadow:none!important;
    cursor:pointer!important;
}
.novare-drawer-close:hover,
.detail-close:hover,
.drawer-close:hover,
.form-close:hover,
.operation-drawer-close:hover{
    background:#f2f6f9!important;
    border-color:#aec1cf!important;
    color:#16384A!important;
}

.inventory-detail-overlay,
.gmd-modal-overlay{
    background:rgba(23,37,50,.32)!important;
}
.inventory-detail-panel,
.receipt-style-master-drawer,
.operation-panel.operation-drawer-open,
.receipt-style-operation-drawer.operation-drawer-open{
    background:#fff!important;
    color:#2e4659!important;
    opacity:1!important;
}

.operation-panel.operation-drawer-open::before,
.receipt-style-operation-drawer.operation-drawer-open::before{
    display:none!important;
    content:none!important;
}
.operation-panel.operation-drawer-open,
.receipt-style-operation-drawer.operation-drawer-open{
    isolation:isolate!important;
    box-shadow:
        -12px 0 34px rgba(22,56,74,.16),
        0 0 0 100vmax rgba(23,37,50,.32)!important;
}

.operation-panel .compact-pairs{
    display:grid!important;
    grid-template-columns:120px minmax(0,1fr) 120px minmax(0,1fr)!important;
    gap:8px 10px!important;
    align-items:center!important;
    padding:14px!important;
}
.operation-panel .compact-pairs>label{
    margin:0!important;
    font-size:9px!important;
    font-weight:800!important;
    color:#566d7f!important;
}
.operation-panel .compact-pairs>.form-control,
.operation-panel .compact-pairs>.form-select{
    min-height:31px!important;
    font-size:10px!important;
}

.item-card-filter-row{
    display:grid!important;
    grid-template-columns:140px 140px minmax(260px,1fr) 165px 150px 120px 92px 92px!important;
    gap:8px!important;
    align-items:end!important;
}
.item-card-filter-row>div{min-width:0!important}
.item-card-filter-row .form-control,
.item-card-filter-row .form-select{width:100%!important}

.movement-form-row{
    display:grid!important;
    grid-template-columns:80px minmax(120px,1fr) 150px minmax(120px,1fr) 70px 100px!important;
    gap:8px 10px!important;
    align-items:center!important;
}
.movement-form-row>label{margin:0!important}

.count-plan-grid{
    display:grid!important;
    grid-template-columns:115px minmax(120px,1fr) 115px minmax(120px,1fr)!important;
    gap:8px 10px!important;
    align-items:center!important;
    padding:12px 14px!important;
}
.count-plan-grid>label{margin:0!important;font-size:9px!important;font-weight:800!important}
.count-create-card .operation-actions{
    border-top:1px solid #e7ecef!important;
    background:#fafbfd!important;
}

.receipt-style-master-drawer{
    width:min(720px,94vw)!important;
    height:100vh!important;
    max-height:100vh!important;
    border-radius:0!important;
    box-shadow:-12px 0 34px rgba(22,56,74,.16)!important;
}
.receipt-style-master-drawer .form-head{
    background:#fff!important;
    border-bottom:1px solid #e2e8ed!important;
}
.receipt-style-master-drawer .form-body{
    background:#fff!important;
}
.receipt-style-master-drawer .form-foot{
    position:sticky!important;
    bottom:0!important;
    background:#fafbfd!important;
    border-top:1px solid #e2e8ed!important;
}

.detail-section,
.detail-status-row,
.detail-header,
.detail-facts,
.operation-panel .module-card-header,
.operation-panel .table-responsive{
    background:#fff;
}

.operation-panel .operation-actions{
    padding:10px 14px!important;
    background:#fafbfd!important;
    border-top:1px solid #e5eaee!important;
}

@media (max-width:1100px){
    .item-card-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .operation-panel .compact-pairs,
    .count-plan-grid{grid-template-columns:110px minmax(0,1fr)!important}
    .movement-form-row{grid-template-columns:100px minmax(0,1fr)!important}
}
@media (max-width:680px){
    .item-card-filter-row{grid-template-columns:1fr!important}
}

/* END NOVARE_UI_CONSISTENCY_V2 */

/* NOVARE_RECEIPT_DETAIL_PATTERN_V3 */

/* Common close button */
.novare-drawer-close,
.detail-close,
.drawer-close,
.form-close,
.operation-drawer-close{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid #ccd8e1!important;
    border-radius:5px!important;
    background:#fff!important;
    color:#425b6e!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1!important;
    box-shadow:none!important;
    cursor:pointer!important;
}
.novare-drawer-close:hover,
.detail-close:hover,
.drawer-close:hover,
.form-close:hover,
.operation-drawer-close:hover{
    background:#f3f7fa!important;
    border-color:#9fb6c6!important;
    color:#16384A!important;
}

/* Basic Data: exact interaction model of Receipt Detail */
.gmd-modal-overlay{
    position:fixed!important;
    inset:0!important;
    z-index:1200!important;
    display:flex!important;
    justify-content:flex-end!important;
    align-items:stretch!important;
    background:rgba(26,40,53,.30)!important;
}
.gmd-modal.receipt-detail-pattern{
    position:relative!important;
    width:min(720px,94vw)!important;
    max-width:94vw!important;
    height:100vh!important;
    max-height:100vh!important;
    margin:0!important;
    border:0!important;
    border-left:1px solid #dce4ea!important;
    border-radius:0!important;
    background:#fff!important;
    color:#2f4759!important;
    box-shadow:-12px 0 32px rgba(22,56,74,.15)!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
}
.gmd-modal.receipt-detail-pattern .form-head{
    flex:0 0 auto!important;
    min-height:58px!important;
    padding:13px 16px!important;
    background:#fff!important;
    border-bottom:1px solid #dfe6eb!important;
}
.gmd-modal.receipt-detail-pattern .form-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    background:#fff!important;
    padding:12px 16px 18px!important;
}
.gmd-modal.receipt-detail-pattern .form-foot{
    flex:0 0 auto!important;
    margin:0!important;
    padding:10px 16px!important;
    background:#fafbfd!important;
    border-top:1px solid #dfe6eb!important;
}

/* Inventory detail */
.inventory-detail-overlay,
.count-detail-overlay{
    position:fixed!important;
    inset:0!important;
    z-index:1200!important;
    display:flex!important;
    justify-content:flex-end!important;
    align-items:stretch!important;
    background:rgba(26,40,53,.30)!important;
}
.inventory-detail-panel,
.count-detail-drawer{
    position:relative!important;
    width:min(720px,94vw)!important;
    max-width:94vw!important;
    height:100vh!important;
    margin:0!important;
    border:0!important;
    border-left:1px solid #dce4ea!important;
    border-radius:0!important;
    background:#fff!important;
    color:#2f4759!important;
    box-shadow:-12px 0 32px rgba(22,56,74,.15)!important;
    overflow-y:auto!important;
}
.count-detail-close{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    z-index:5!important;
}
.count-detail-drawer>.module-card-header{padding-right:52px!important}

/* Ensure operational drawers themselves are white, never grey */
.operation-panel.operation-drawer-open,
.receipt-style-operation-drawer.operation-drawer-open{
    background:#fff!important;
    opacity:1!important;
    filter:none!important;
    color:#2f4759!important;
}
.operation-panel.operation-drawer-open>*,
.receipt-style-operation-drawer.operation-drawer-open>*{
    opacity:1!important;
}
.operation-panel.operation-drawer-open::before,
.receipt-style-operation-drawer.operation-drawer-open::before{
    display:none!important;
    content:none!important;
}

/* Compact cycle count create form */
.count-plan-grid{
    display:grid!important;
    grid-template-columns:110px minmax(130px,1fr) 110px minmax(130px,1fr)!important;
    gap:8px 10px!important;
    align-items:center!important;
    padding:12px 14px!important;
}
.count-plan-grid>label{
    margin:0!important;
    font-size:9px!important;
    font-weight:800!important;
    color:#566d7f!important;
}
.count-create-card .operation-actions{
    padding:9px 14px!important;
    border-top:1px solid #e5eaee!important;
    background:#fafbfd!important;
}

@media(max-width:760px){
    .gmd-modal.receipt-detail-pattern,
    .inventory-detail-panel,
    .count-detail-drawer{
        width:100vw!important;
        max-width:100vw!important;
    }
    .count-plan-grid{grid-template-columns:1fr!important}
}

/* END NOVARE_RECEIPT_DETAIL_PATTERN_V3 */

/* NOVARE_GLOBAL_CLOSE_SUBNAV_V1 */

/* ------------------------------------------------------------
   Universal NOVARE drawer/detail close button
   ------------------------------------------------------------ */
button.novare-close-button,
button.gmd-modal-close,
button.drawer-close,
button.detail-close,
button.form-close,
button.operation-drawer-close,
button.admin-drawer-close,
button.order-type-drawer-close,
button[class*="drawer-close"],
button[class*="detail-close"],
button[class*="modal-close"]{
    appearance:none!important;
    -webkit-appearance:none!important;
    position:relative;
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    flex:0 0 28px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #ccd8e1!important;
    border-radius:6px!important;
    background:#fff!important;
    color:#526878!important;
    font-family:Arial,sans-serif!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1!important;
    text-align:center!important;
    text-decoration:none!important;
    box-shadow:none!important;
    cursor:pointer!important;
}
button.novare-close-button:hover,
button.gmd-modal-close:hover,
button.drawer-close:hover,
button.detail-close:hover,
button.form-close:hover,
button.operation-drawer-close:hover,
button.admin-drawer-close:hover,
button.order-type-drawer-close:hover,
button[class*="drawer-close"]:hover,
button[class*="detail-close"]:hover,
button[class*="modal-close"]:hover{
    border-color:#9eb4c4!important;
    background:#f3f7fa!important;
    color:#16384A!important;
}
button.novare-close-button:focus-visible,
button[class*="drawer-close"]:focus-visible,
button[class*="detail-close"]:focus-visible,
button[class*="modal-close"]:focus-visible{
    outline:2px solid rgba(31,90,115,.25)!important;
    outline-offset:2px!important;
}

/* Keep the X aligned in the upper-right of common drawer headers. */
.gmd-modal .gmd-modal-close,
.gmd-modal .novare-close-button,
.admin-drawer-head>.novare-close-button,
.order-type-drawer-head>.novare-close-button,
.inventory-detail-header>.novare-close-button,
.receipt-detail-header>.novare-close-button{
    align-self:flex-start!important;
}

/* ------------------------------------------------------------
   Related configuration / sub-navigation buttons
   Owner Settings, Traceability Rules and similar child sections.
   ------------------------------------------------------------ */
.gmd-related-card{
    margin-top:14px!important;
    padding-top:12px!important;
    border-top:1px solid #e6ebef!important;
}
.gmd-related-card>h4{
    margin:0 0 8px!important;
    color:#425a6d!important;
    font-size:10px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.035em!important;
}
.gmd-related-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:7px!important;
}
.gmd-related-actions>button{
    appearance:none!important;
    -webkit-appearance:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-height:30px!important;
    padding:5px 10px!important;
    border:1px solid #cfd9e1!important;
    border-radius:6px!important;
    background:#fff!important;
    color:#40596d!important;
    font-size:9.5px!important;
    font-weight:750!important;
    line-height:1.2!important;
    box-shadow:none!important;
    cursor:pointer!important;
}
.gmd-related-actions>button:hover{
    border-color:#a9becd!important;
    background:#f4f8fb!important;
    color:#1A4A60!important;
}
.gmd-related-actions>button>strong{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:20px!important;
    height:18px!important;
    padding:0 5px!important;
    border-radius:9px!important;
    background:#E3EEF3!important;
    color:#1A4A60!important;
    font-size:8px!important;
    font-weight:850!important;
}
.gmd-related-actions>button:focus-visible{
    outline:2px solid rgba(31,90,115,.20)!important;
    outline-offset:2px!important;
}

/* Back button for nested Global Master Data configurations */
.gmd-related-back{
    appearance:none!important;
    -webkit-appearance:none!important;
    min-height:30px!important;
    padding:5px 10px!important;
    border:1px solid #d2dce4!important;
    border-radius:6px!important;
    background:#fff!important;
    color:#425b6f!important;
    font-size:9.5px!important;
    font-weight:750!important;
    box-shadow:none!important;
    cursor:pointer!important;
}
.gmd-related-back:hover{
    background:#f4f8fb!important;
    border-color:#adbfcc!important;
    color:#1A4A60!important;
}

/* END NOVARE_GLOBAL_CLOSE_SUBNAV_V1 */

/* NOVARE_POSITION_ENCODING_WIDTH_V4 */

/* ------------------------------------------------------------
   Drawer X position.
   Later generic close-button styles must never move a drawer close
   control back into normal document flow.
   ------------------------------------------------------------ */
.operation-panel.operation-drawer-open > .operation-drawer-close,
.operation-panel.operation-drawer-open > .novare-close-button,
.receipt-style-operation-drawer.operation-drawer-open > .operation-drawer-close,
.receipt-style-operation-drawer.operation-drawer-open > .novare-close-button,
.count-detail-drawer > .count-detail-close,
.count-detail-drawer > .novare-close-button,
.inventory-detail-panel > .detail-close,
.inventory-detail-panel > .novare-close-button{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    left:auto!important;
    bottom:auto!important;
    margin:0!important;
    z-index:30!important;
}

/* The parent must be the positioning context. */
.operation-panel.operation-drawer-open,
.receipt-style-operation-drawer.operation-drawer-open,
.count-detail-drawer,
.inventory-detail-panel{
    position:fixed!important;
}

/* Leave enough header room for the X. */
.operation-panel.operation-drawer-open > .module-card-header,
.receipt-style-operation-drawer.operation-drawer-open > .module-card-header,
.count-detail-drawer > .count-detail-head,
.inventory-detail-panel > .inventory-detail-header{
    padding-right:54px!important;
}

/* ------------------------------------------------------------
   Inventory Transactions KPI values: keep label and number visibly
   separated instead of rendering like Transactions0 / In0,00.
   ------------------------------------------------------------ */
.inventory-summary > div{
    display:flex!important;
    align-items:baseline!important;
    justify-content:space-between!important;
    gap:12px!important;
}
.inventory-summary > div > span{
    display:inline-block!important;
    margin:0!important;
}
.inventory-summary > div > strong{
    display:inline-block!important;
    margin:0!important;
    padding-left:8px!important;
    white-space:nowrap!important;
}

/* END NOVARE_POSITION_ENCODING_WIDTH_V4 */

/* NOVARE_MOJIBAKE_FALLBACK_V6 */
.sidebar .nav-icon,
.sidebar .menu-icon,
.sidebar .accordion-icon,
.nav-menu .nav-icon,
.nav-menu .menu-icon,
.nav-menu .accordion-icon,
.sidebar-nav .nav-icon,
.sidebar-nav .menu-icon {
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    text-rendering: auto !important;
}

.sidebar button,
.nav-menu button,
.sidebar-nav button {
    white-space: nowrap;
}

.sidebar .accordion-toggle,
.nav-menu .accordion-toggle,
.sidebar-nav .accordion-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

button .icon,
.btn .icon,
.gmd-action .icon {
    display: inline-block !important;
    margin-right: 5px !important;
}
/* END NOVARE_MOJIBAKE_FALLBACK_V6 */

/* NOVARE_NAV_ICON_SAFE_V1 */

/* No literal Unicode icons in Razor.
   Use a stable CSS marker instead, so source-file encoding cannot corrupt it. */
.nav-entry .nav-icon{
    width:12px!important;
    min-width:12px!important;
    height:12px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin-right:6px!important;
    font-size:0!important;
    line-height:1!important;
}
.nav-entry .nav-icon::before{
    content:"";
    width:4px;
    height:4px;
    border-radius:50%;
    background:currentColor;
    opacity:.65;
}
.nav-entry.active .nav-icon::before{
    width:5px;
    height:5px;
    opacity:1;
}

/* Keep sidebar labels aligned and prevent the old icon slot from wrapping. */
.nav-entry{
    display:flex!important;
    align-items:center!important;
}
.nav-entry .nav-text{
    min-width:0!important;
    white-space:nowrap!important;
}

/* END NOVARE_NAV_ICON_SAFE_V1 */


/* WMS workspace polish 2026-09-20 */
.wms-auto-table-toolbar{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-height:34px!important}
.wms-table-result-count{margin-right:auto!important;font-size:11px!important;font-weight:700!important;color:#5f7487!important}
.header-right>a.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;min-height:30px!important}
.operation-panel.operation-drawer-open>.operation-drawer-close{top:10px!important;right:10px!important;z-index:5!important}
.trace-search .compact-search-row{grid-template-columns:minmax(260px,560px) auto!important}

/* Universal table header: title + record count on the left, table actions on the right. */
.wms-table-header-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    flex-wrap:nowrap!important;
}
.wms-table-header-row .content-card-title,
.wms-table-header-row .module-card-title{
    display:flex!important;
    align-items:baseline!important;
    gap:8px!important;
    min-width:0;
}
.wms-table-header-row .wms-table-result-count{
    font-size:10px!important;
    font-weight:500!important;
    color:#718394!important;
    white-space:nowrap;
}
.wms-table-header-row > .wms-auto-table-toolbar{
    margin-left:auto!important;
    padding:0!important;
    min-height:30px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
    border:0!important;
    background:transparent!important;
}
.wms-table-header-row > .wms-auto-table-toolbar .wms-table-result-count{display:none!important;}

/* Inventory Transactions / Kartica artikla: keep the full filter toolbar on one desktop row. */
.item-card-filter-row.transaction-filter-row{
    display:grid!important;
    /* Polja se skupljaju sa širinom ekrana; dugmad zauzimaju samo koliko im treba i ostaju u vidnom polju. */
    grid-template-columns:minmax(128px,150px) minmax(128px,150px) minmax(160px,1fr) minmax(120px,170px) minmax(100px,150px) minmax(80px,120px) auto auto auto!important;
    gap:8px!important;
    align-items:end!important;
    justify-content:start!important;
    width:100%!important;
}
.item-card-filter-row.transaction-filter-row>div{min-width:0!important}
.item-card-filter-row.transaction-filter-row .form-control,
.item-card-filter-row.transaction-filter-row .form-select{width:100%!important;min-width:0!important}
.item-card-filter-row.transaction-filter-row .btn{width:auto!important;min-width:0!important;white-space:nowrap!important}
@media (max-width:1200px){
    .item-card-filter-row.transaction-filter-row{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .item-card-filter-row.transaction-filter-row .btn{width:auto!important;min-width:88px!important}
}
@media (max-width:600px){
    .item-card-filter-row.transaction-filter-row{grid-template-columns:1fr!important}
}

/* ============================================================
   NOVARE KPI / SUMMARY CARD STANDARD V1
   One application-wide visual standard based on Inventory Overview.
   Applies to operational counters: inventory, receiving, tasks,
   orders, routes, shipments, item-card transactions and similar.
   ============================================================ */
.inventory-summary,
.receiving-summary,
.module-summary,
.admin-kpis{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
    margin:10px 0 14px!important;
    align-items:stretch!important;
    justify-content:stretch!important;
}

.inventory-summary > div,
.receiving-summary > div,
.module-summary > div,
.admin-kpis > .kpi{
    box-sizing:border-box!important;
    min-width:0!important;
    min-height:62px!important;
    padding:11px 14px!important;
    background:#fff!important;
    border:1px solid #e0e5ea!important;
    border-radius:6px!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
}

.inventory-summary > div > span,
.receiving-summary > div > span,
.module-summary > div > span,
.admin-kpis > .kpi > span{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#788795!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:500!important;
    text-transform:uppercase!important;
    letter-spacing:.03em!important;
    white-space:normal!important;
}

.inventory-summary > div > strong,
.receiving-summary > div > strong,
.module-summary > div > strong,
.admin-kpis > .kpi > strong{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#223548!important;
    font-size:17px!important;
    line-height:1!important;
    font-weight:700!important;
    white-space:nowrap!important;
    text-align:right!important;
}

/* Administration cards can carry a third explanatory line; keep it
   secondary without changing the standard label/value typography. */
.admin-kpis > .kpi > small{
    display:none!important;
}

@media (max-width:1100px){
    .inventory-summary,
    .receiving-summary,
    .module-summary,
    .admin-kpis{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

@media (max-width:620px){
    .inventory-summary,
    .receiving-summary,
    .module-summary,
    .admin-kpis{
        grid-template-columns:1fr!important;
    }
}
/* END NOVARE KPI / SUMMARY CARD STANDARD V1 */

/* WMS20 - keep RF acronym uppercase exactly as defined. */
.rf-header-button,.rf-header-button span{text-transform:uppercase!important;letter-spacing:0!important}

/* WMS22 - data grids keep one visual row per record; wide schemas scroll horizontally. */
.table-responsive,.table-wrap,.inventory-transaction-table-scroll{max-width:100%;overflow-x:auto!important;overflow-y:auto}
.wms-universal-table{width:max-content!important;min-width:100%!important;table-layout:auto!important}
.wms-universal-table th,.wms-universal-table td{white-space:nowrap!important;vertical-align:middle!important}
.wms-universal-table td .d-block{white-space:nowrap!important}
.inventory-transaction-table-scroll{max-height:58vh;border-top:1px solid #eef2f5}
.transaction-table{width:max-content!important;min-width:100%!important;margin-bottom:0}
.transaction-table th,.transaction-table td{white-space:nowrap!important}
.transaction-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-top:1px solid #e4e9ed;background:#fafcfd}
.transaction-pager-info{font-size:10px;color:#667a8c;font-weight:650}
.transaction-pager-actions{display:flex;align-items:center;gap:6px}
.transaction-pager-actions label{display:flex;align-items:center;gap:6px;margin:0;font-size:9.5px;color:#607386;font-weight:700}
.transaction-pager-actions .form-select{width:78px;min-height:28px;padding:3px 24px 3px 7px;font-size:10px}
@media(max-width:700px){.transaction-pager{align-items:flex-start;flex-direction:column}}

/* WMS45 - Receiving New line toolbar: fixed order and identical action widths. */
 .receipt-new-lines-toolbar{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-height:28px!important;margin:0!important;}
.receipt-new-lines-toolbar .receipt-line-action-btn{box-sizing:border-box!important;min-height:28px!important;height:28px!important;padding:4px 10px!important;border-radius:5px!important;font-size:10px!important;font-weight:600!important;line-height:1.2!important;margin:0!important;white-space:nowrap!important;}

/* Oznaka okruženja (DEV) je centrirana u zaglavlju; na užim ekranima bi prekrila izbor konteksta, pa ide u tok zaglavlja. */
@media (max-width:1180px){.header-environment{position:static!important;transform:none!important;margin-left:8px}}
.period-badge{white-space:nowrap}

/* Pregled zaliha – izbor prikaza (po LPN-u / po artiklu / po artiklu i području) */
.inventory-view-switch{display:inline-flex;gap:0;margin:0 0 10px;border:1px solid #cfdae3;border-radius:7px;overflow:hidden;background:#fff}
.inventory-view-switch button{border:0;border-right:1px solid #dfe7ee;background:#fff;color:#3c566d;padding:7px 16px;font-size:11px;font-weight:700;cursor:pointer}
.inventory-view-switch button:last-child{border-right:0}
.inventory-view-switch button:hover{background:#f2f7fb}
.inventory-view-switch button.active{background:#1F5A73;color:#fff}
.summary-group-switch{display:inline-flex;align-items:center;gap:4px;margin-left:12px;font-size:10px;color:#6b7c8c}
.summary-group-switch span{margin-right:4px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.summary-group-switch button{border:1px solid #cfdae3;background:#fff;color:#3c566d;border-radius:5px;padding:3px 10px;font-size:10.5px;font-weight:700;cursor:pointer}
.summary-group-switch button.active{background:#E3EEF3;border-color:#1F5A73;color:#1F5A73}
.inventory-summary-table .qty-available{color:#1f7a45;font-weight:700}
.inventory-summary-table .qty-blocked{color:#b42318;font-weight:700}
.inventory-summary-table .qty-hold{color:#a15c07;font-weight:700}
.inventory-summary-table .qty-outbound{color:#1F5A73;font-weight:700}
.inventory-view-switch{flex-wrap:wrap}
.analysis-badges{display:inline-flex;gap:6px;margin-left:12px;flex-wrap:wrap}
.analysis-badge,.analysis-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:10px;font-weight:750;border:1px solid transparent;white-space:nowrap}
.analysis-badge.danger,.analysis-pill.danger{background:#fdecec;color:#b42318;border-color:#f6cfcf}
.analysis-badge.warning,.analysis-pill.warning{background:#fff4e0;color:#a15c07;border-color:#f5dcae}
.analysis-badge.info,.analysis-pill.info{background:#E3EEF3;color:#1F5A73;border-color:#E3EEF3}
.analysis-pill.ok{background:#e7f6ed;color:#1f7a45;border-color:#c6e8d3}
.occupancy-bar{display:inline-block;width:110px;height:8px;margin-right:8px;vertical-align:middle;border-radius:4px;background:#e8eef3;overflow:hidden}
.occupancy-fill{height:100%;background:#2f9e5f}
.occupancy-fill.mid{background:#e0a100}
.occupancy-fill.high{background:#d64545}
.occupancy-text{font-size:11px;font-weight:700;color:#35495c;vertical-align:middle}
.analysis-note{padding:7px 12px;border-top:1px solid #e4e9ed;background:#fafcfd;color:#6b7c8c;font-size:10.5px}

/* Meni: Reports / Analysis */
.reports-dot{background:#7a5af8}
.analysis-dot{background:#e0752d}

/* Custom reports */
.custom-reports-empty{padding:34px 20px;text-align:center;color:#607487}
.custom-reports-empty h3{margin:10px 0 6px;color:#16384A;font-size:17px}
.custom-reports-empty p{max-width:560px;margin:0 auto;font-size:12px}
.custom-reports-empty-icon .app-icon{width:40px;height:40px;color:#7a5af8}
.custom-report-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.custom-report-card{display:flex;gap:12px;align-items:flex-start;text-align:left;padding:14px;border:1px solid #dce4eb;border-radius:9px;background:#fff;cursor:pointer}
.custom-report-card:hover{border-color:#7a5af8;box-shadow:0 3px 12px rgba(122,90,248,.12)}
.custom-report-icon .app-icon{width:26px;height:26px;color:#7a5af8}
.custom-report-body{display:flex;flex-direction:column;gap:3px}
.custom-report-body strong{color:#16384A;font-size:13px}
.custom-report-body small{color:#6b7c8c;font-size:11px}
.custom-report-body em{color:#7a5af8;font-size:10px;font-style:normal;font-weight:700}

/* Analize */
.analysis-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-bottom:10px}
.analysis-toolbar>div{min-width:150px}
.analysis-quick>div{display:flex;gap:4px}
.analysis-rate{color:#1F5A73}
.abc-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}
.abc-summary-card{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #dce4eb;border-radius:9px;background:#fff}
.abc-summary-card strong{display:block;color:#16384A;font-size:18px}
.abc-summary-card strong small{font-size:11px;font-weight:600;color:#6b7c8c}
.abc-summary-card>div>small{color:#6b7c8c;font-size:11px}
.abc-class{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;font-size:18px;font-weight:800;color:#fff;background:#8a9aa9}
.abc-a .abc-class,.abc-pill.abc-a{background:#1f7a45}
.abc-b .abc-class,.abc-pill.abc-b{background:#e0a100}
.abc-c .abc-class,.abc-pill.abc-c{background:#8a9aa9}
.abc-flag .abc-class{background:#d64545}
.abc-pill{display:inline-block;min-width:22px;padding:1px 7px;border-radius:5px;color:#fff;font-weight:800;font-size:11px;text-align:center}
@media(max-width:900px){.abc-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Productivity norms */
.module-summary.productivity-summary{grid-template-columns:repeat(5,minmax(0,1fr))!important}
@media(max-width:900px){.module-summary.productivity-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.module-summary.productivity-summary>div>strong.perf-good,.perf-good{color:#1f7a45!important}
.module-summary.productivity-summary>div>strong.perf-warn,.perf-warn{color:#a15c07!important}
.module-summary.productivity-summary>div>strong.perf-bad,.perf-bad{color:#b42318!important}
.productivity-norms-backdrop{position:fixed;inset:0;z-index:1500;background:rgba(22,56,74,.28);display:flex;align-items:center;justify-content:center}
.productivity-norms-dialog{width:min(520px,calc(100vw - 30px));max-height:88vh;overflow:auto;background:#fff;border-radius:10px;border:1px solid #d6e0e8;padding:18px;box-shadow:0 20px 55px rgba(22,56,74,.25)}
.productivity-norms-dialog h3{margin:0 0 6px;font-size:17px;color:#223548}
.productivity-norms-hint{color:#6b7c8c;font-size:11px;margin-bottom:12px}
.productivity-norms-table{margin:0}
.productivity-norms-table th{font-size:10px;text-transform:uppercase;color:#61717f;background:#f7f9fb}
.productivity-norms-table td{vertical-align:middle;font-size:12px}
.productivity-norms-table td small{display:block;color:#8a9aa9;font-size:10px}
.productivity-norm-input{width:130px;margin-left:auto;text-align:right}
.productivity-norms-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}

/* Order cycle / accuracy */
.module-summary.cycle-summary{grid-template-columns:repeat(6,minmax(0,1fr))!important}
@media(max-width:1200px){.module-summary.cycle-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.module-summary.cycle-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.cycle-late{color:#b42318!important}
.accuracy-sub{display:block;color:#6b7c8c;font-size:10.5px;font-weight:600;margin-top:2px}
.accuracy-plus{color:#1f7a45}
.accuracy-minus{color:#b42318}
.abc-confirm-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid #f5dcae;border-bottom:1px solid #f5dcae;background:#fff8ec;color:#7a4a06;font-size:12px}
.abc-confirm-bar>span{flex:1 1 280px}
.abc-differs{margin-left:6px}

/* Customs module */
.customs-dot{background:#0f8a8a}
.customs-disabled-panel{max-width:720px;margin:10px auto;padding:30px 24px;text-align:center;color:#51667a}
.customs-disabled-panel h3{margin:10px 0 6px;color:#16384A;font-size:17px}
.customs-disabled-panel p{max-width:560px;margin:0 auto 12px;font-size:12px}
.customs-disabled-icon .app-icon,.customs-disabled-icon svg{width:40px;height:40px;color:#0f8a8a}
.customs-dir-in{background:#e7f6ed;color:#1f7a45;border-color:#c6e8d3}
.customs-dir-out{background:#E3EEF3;color:#1F5A73;border-color:#E3EEF3}
.customs-qty-in{color:#1f7a45}
.customs-qty-out{color:#b42318}
.customs-cell-alert{background:#fff4e0!important;color:#a15c07!important;font-weight:700}
.customs-row-reversed>td{color:#8a9aa9}
.customs-search{min-width:240px!important}
.customs-check{display:inline-flex;align-items:center;gap:6px;height:32px;font-size:12px;font-weight:600;color:#3c566d;white-space:nowrap}
.customs-toolbar-right{display:flex;gap:6px;margin-left:auto;min-width:0!important}
.customs-click-table tbody tr{cursor:pointer}
.module-summary.customs-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:900px){.module-summary.customs-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.customs-print-only{display:none}

/* Customs: forme */
.customs-settings-card{max-width:900px}
.customs-settings-body{padding:14px 16px}
.customs-enable-row{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin-bottom:14px;border:1px solid #cfe6e6;border-radius:8px;background:#f2fafa;cursor:pointer}
.customs-enable-row input{margin-top:3px}
.customs-enable-row strong{display:block;color:#16384A;font-size:13px}
.customs-enable-row small{display:block;color:#5f7487;font-size:11px;margin-top:2px}
.customs-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}
.customs-settings-body .customs-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.customs-span-2{grid-column:span 2}
.customs-span-3{grid-column:1/-1}
.customs-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
@media(max-width:800px){.customs-form-grid,.customs-settings-body .customs-form-grid{grid-template-columns:1fr}.customs-span-2,.customs-span-3{grid-column:auto}}
.customs-input-num{min-width:86px;max-width:120px;margin-left:auto}
.customs-input-short{width:64px;text-transform:uppercase}
.customs-input-tariff{min-width:100px}
.customs-edit-row>td{background:#f5fafd!important;vertical-align:middle}
.customs-inline-search{display:flex;gap:4px}
.customs-inline-search .form-control{min-width:0}
.customs-link-selected{display:flex;align-items:center;gap:6px;min-height:31px;font-size:12px}
.customs-link-selected small,.customs-item-selected small{color:#6b7c8c}
.customs-picker-list{display:flex;flex-direction:column;max-height:220px;overflow:auto;margin-top:4px;border:1px solid #d6e0e8;border-radius:6px;background:#fff;box-shadow:0 6px 18px rgba(22,56,74,.12)}
.customs-picker-list>div{padding:6px 9px;font-size:11px}
.customs-picker-list>button{display:flex;gap:8px;align-items:baseline;padding:6px 9px;border:0;border-bottom:1px solid #eef2f5;background:#fff;text-align:left;font-size:12px;cursor:pointer}
.customs-picker-list>button:hover{background:#eef6fb}
.customs-picker-list>button small{margin-left:auto;color:#6b7c8c}
.customs-item-picker{position:relative;min-width:320px!important}
.customs-picker-floating{position:absolute;left:0;right:0;top:100%;z-index:30}

/* Customs: bočni editor dokumenta */
.customs-drawer-backdrop{position:fixed;inset:0;z-index:1400;background:rgba(22,56,74,.28)}
.customs-drawer{position:fixed;top:0;right:0;bottom:0;z-index:1401;width:min(1180px,100vw);display:flex;flex-direction:column;background:#fff;border-left:1px solid #d6e0e8;box-shadow:-12px 0 40px rgba(22,56,74,.2)}
.customs-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid #e4e9ed}
.customs-drawer-head h3{margin:0 0 5px;font-size:17px;color:#16384A}
.customs-drawer-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11px;color:#6b7c8c}
.customs-drawer-body{flex:1 1 auto;overflow:auto;padding:12px 16px}
.customs-drawer-foot{padding:8px 16px;border-top:1px solid #e4e9ed;background:#fafcfd}
.customs-drawer-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.customs-lines-head{display:flex;align-items:center;gap:10px;margin:16px 0 6px;font-size:13px;color:#16384A}
.customs-lines-wrap{border:1px solid #e4e9ed;border-radius:8px}
.customs-lines-table{margin:0}
.customs-lines-table th{font-size:10px;text-transform:uppercase;color:#61717f;background:#f7f9fb;white-space:nowrap}
.customs-lines-table td{vertical-align:top;font-size:12px}
.customs-item-cell{min-width:240px}
.customs-item-selected{display:flex;flex-direction:column;gap:1px}
.customs-item-selected .btn-link{align-self:flex-start;padding:0;font-size:11px}
.customs-entry-select{min-width:200px}
.customs-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border:1px solid #f5dcae;border-radius:7px;background:#fff8ec;color:#7a4a06;font-size:12px}
.customs-confirm>span{flex:1 1 280px}
.customs-confirm-comment{flex:1 1 220px;max-width:360px}

/* Customs: magacinska kartica */
.customs-card-header{padding:12px 16px}
.customs-card-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px}
.customs-card-info>div{display:flex;flex-direction:column;gap:1px}
.customs-card-info span{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#6b7c8c;font-weight:700}
.customs-card-info strong{color:#16384A;font-size:13px}
.customs-card-info small{color:#6b7c8c;font-size:11px}
@media(max-width:900px){.customs-card-info{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Customs: štampa (evidencija, kartica) */
@media print{
    .wms-sidebar,.wms-header,.workspace-tabs,.module-toolbar,.analysis-toolbar,.card-actions,.alert,.analysis-note,
    .wms-auto-table-toolbar,.wms-auto-filter-row,.wms-table-head-controls,.wms-column-chooser,
    .workspace-screen.inactive,.customs-drawer,.customs-drawer-backdrop,button,.btn{display:none!important}
    .wms-shell{display:block!important;width:auto!important;min-height:0!important;background:#fff!important}
    .wms-main{margin-left:0!important;width:auto!important;max-width:none!important}
    .wms-content{padding:0!important}
    .content-card{box-shadow:none!important;border:0!important}
    .table-responsive{overflow:visible!important}
    .customs-print-only{display:block!important;margin-top:4px;font-size:11px;color:#333}
    .customs-print-table{font-size:9px!important}
    .customs-print-table th,.customs-print-table td{padding:2px 4px!important}
    .analysis-pill{border:0!important;background:none!important;padding:0!important}
    .wms-table-pager{display:none!important}
    table.customs-print-table tr[data-wms-page-hidden="1"]{display:table-row!important}
    body{background:#fff!important}
}

/* Customs reports */
.customs-cell-overdue{background:#fdecec!important;color:#b42318!important;font-weight:700}
.customs-filter-short{min-width:120px;max-width:170px}
.customs-book-link{font-size:11px;font-weight:600;white-space:nowrap}
.customs-pill-foreign{background:#fff4e0;color:#a15c07;border-color:#f5dcae}
.customs-pill-domestic{background:#e7f6ed;color:#1f7a45;border-color:#c6e8d3}
.customs-sev-overdue{background:#fdecec;color:#b42318;border-color:#f6cfcf}
.customs-sev-warning{background:#fff4e0;color:#a15c07;border-color:#f5dcae}
.customs-row-overdue>td:first-child{box-shadow:inset 3px 0 0 #d92d20}
.customs-row-warning>td:first-child{box-shadow:inset 3px 0 0 #f0a020}
.nav-group-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:17px;margin-left:auto;margin-right:6px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;font-size:10px;font-weight:750;line-height:1}
.customs-report-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;max-width:210mm;margin:0 auto 10px}
.customs-report-toolbar .spacer{flex:1 1 auto}
.customs-report{page:customs-a4;box-sizing:border-box;width:100%;max-width:210mm;min-height:297mm;margin:0 auto 14px;padding:12mm 12mm 14mm;background:#fff;color:#111;border:1px solid #d6e0e8;box-shadow:0 4px 18px rgba(22,56,74,.08);font-size:11px}
.customs-report-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:8px;margin-bottom:10px;border-bottom:2px solid #16384A}
.customs-report-org strong{display:block;font-size:14px;color:#16384A}
.customs-report-org span{display:block;font-size:10px;color:#51667a}
.customs-report-title{text-align:right}
.customs-report-title h2{margin:0 0 3px;font-size:17px;font-weight:800;color:#111;letter-spacing:.01em}
.customs-report-title div{font-size:10px;color:#51667a}
.customs-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 14px;margin-bottom:10px;padding:8px 10px;border:1px solid #cfd8e0;border-radius:4px}
.customs-report-grid>div{display:flex;flex-direction:column;min-width:0}
.customs-report-grid span{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#61717f;font-weight:700}
.customs-report-grid strong{font-size:11px;color:#111;overflow-wrap:anywhere}
.customs-report-section{margin:12px 0 4px;font-size:12px;font-weight:800;color:#16384A}
.customs-report-table{width:100%;border-collapse:collapse;font-size:10px}
.customs-report-table th,.customs-report-table td{border:1px solid #b9c5cf;padding:3px 5px;vertical-align:top}
.customs-report-table th{background:#eef2f5;font-size:9px;text-transform:uppercase;color:#33475a;white-space:nowrap}
.customs-report-table td.num,.customs-report-table th.num{text-align:right;white-space:nowrap}
.customs-report-table tfoot td{font-weight:800;background:#f7f9fb}
.customs-report-empty{padding:18px;text-align:center;color:#6b7c8c}
.customs-report-sign{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;margin-top:36px;font-size:10px;color:#33475a}
.customs-report-sign>div{border-top:1px solid #6b7c8c;padding-top:4px;text-align:center}
.customs-report-foot{margin-top:14px;font-size:9px;color:#6b7c8c}
.customs-lpn-page{display:flex;flex-direction:column}
.customs-lpn-number{margin:14mm 0 6mm;text-align:center;font-family:Consolas,"Courier New",monospace;font-size:54px;font-weight:800;letter-spacing:.06em;color:#000;overflow-wrap:anywhere}
.customs-lpn-barcode{display:flex;justify-content:center;margin:0 0 4mm}
.customs-lpn-barcode svg{width:100%;max-width:170mm;height:32mm}
.customs-lpn-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;padding:12px 14px}
.customs-lpn-grid strong{font-size:16px}
.customs-lpn-item{margin-top:8px;font-size:12px;text-align:center;color:#33475a}
@media(max-width:800px){.customs-report{padding:14px;min-height:0}.customs-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-lpn-number{font-size:34px}}
@page customs-a4{size:A4 portrait;margin:10mm}
@media print{
    .customs-report-toolbar,.nav-group-badge{display:none!important}
    .customs-report{width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;font-size:10px}
    .customs-report-table{page-break-inside:auto}
    .customs-report-table tr{page-break-inside:avoid}
    .customs-report-table thead{display:table-header-group}
    .customs-lpn-page{page-break-after:always;break-after:page;min-height:260mm}
    .customs-lpn-page:last-child{page-break-after:auto;break-after:auto}
    .customs-report-table th,.customs-report-grid,.customs-report-table tfoot td{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Izveštaj "Inventurna lista" (/custom-reports/count-list): ekran + štampa (A4 položeno, svi filtrirani redovi). */
.count-list-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px}
.count-list-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px}
.count-list-filters .field{min-width:280px;margin:0}
.count-list-filters .field label{display:block;font-size:11px;font-weight:700;color:#3d4f61;margin-bottom:3px}
.count-list-check{display:flex;align-items:center;gap:6px;margin:0 0 7px;font-size:12px;color:#3d4f61;cursor:pointer}
.count-list-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:6px 16px 8px;font-size:12px;color:#51667a}
.count-list-pill{padding:1px 8px;border:1px solid #f5dcae;border-radius:999px;background:#fff4e0;color:#a15c07;font-size:11px;font-weight:700}
.count-list-diff{color:#b42318;font-weight:700}
.count-list-print{display:none}
@page count-list{size:A4 landscape;margin:8mm}
@media print{
    .count-list-screen{display:none!important}
    .count-list-print{display:block!important;page:count-list;color:#111;font-size:9px}
    .count-list-print-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:6px;margin-bottom:8px;border-bottom:2px solid #16384A}
    .count-list-print-head strong{font-size:12px}
    .count-list-print-head span{display:block;font-size:9px;color:#51667a}
    .count-list-print-title{text-align:right}
    .count-list-print-title h2{margin:0 0 2px;font-size:15px;font-weight:800}
    .count-list-print-table{width:100%;border-collapse:collapse;font-size:8.5px;page-break-inside:auto}
    .count-list-print-table thead{display:table-header-group}
    .count-list-print-table tr{page-break-inside:avoid}
    .count-list-print-table th,.count-list-print-table td{border:1px solid #9aa8b4;padding:2px 4px;vertical-align:top}
    .count-list-print-table th{background:#eef2f5;font-size:8px;text-transform:uppercase;white-space:nowrap;-webkit-print-color-adjust:exact;print-color-adjust:exact}
    .count-list-print-table .num{text-align:right;white-space:nowrap}
    .count-list-print-table td.count-list-write{min-width:22mm}
    .count-list-print-sign{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;margin-top:28px;font-size:9px}
    .count-list-print-sign>div{border-top:1px solid #6b7c8c;padding-top:3px;text-align:center}
}

/* DateField: polje datuma iste visine/širine kao ostala polja forme (margine nosi omotač, ne unutrašnji input) */
.wms-date-field>.form-control{margin:0!important}
.operation-time-grid .wms-date-field{margin-top:3px}

/* Polja za brojeve (količine, redosledi…) bez strelica gore/dole – vrednost se samo kuca. */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield;appearance:textfield}

/* LPN premeštanja – nova forma: uska polja u jednom redu (LPN, odredišna lokacija, prioritet, dugmad). */
.movement-new-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;padding:10px 14px 12px}
.movement-new-row>label{display:flex;flex-direction:column;gap:3px;margin:0;font-size:11px;font-weight:700;color:#3d4f61}
.movement-new-row>label>.form-control{width:220px;height:32px;font-size:12px}
.movement-new-row>label:nth-of-type(3)>.form-control{width:80px}
.movement-new-actions{display:flex;gap:8px;margin-left:auto}

/* Dashboard – kartica Zalihe: raspoloživo po jedinici mere i red ukupno / blokirano / rezervisano. */
.inventory-kpi .inv-kpi-available{display:flex;flex-direction:column;gap:1px;line-height:1.1}
.inventory-kpi .inv-kpi-available > span{display:block;white-space:nowrap}
.inventory-kpi .inv-kpi-available > span small{display:inline;font-size:13px;font-weight:600;color:#6b7c8d;margin:0}
.inventory-kpi .inv-kpi-available > span + span{font-size:14px}
.inventory-kpi .inv-kpi-sub{margin-top:6px;font-size:11px;color:#6b7c8d;line-height:1.4}

/* Inventory Control → korekcija količine: trenutno → korekcija → posle korekcije. */
.adjust-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 14px}
.adjust-preview > div{min-width:0;padding:10px 12px;border:1px solid #e0e5ea;border-radius:8px;background:#fff;display:flex;flex-direction:column;gap:4px}
.adjust-preview span{color:#4f667a;font-size:10.5px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} /* natpis kao u WMS_DISPLAY_RULES (bez UPPERCASE) */
.adjust-preview strong{color:#223548;font-size:20px;line-height:1.15;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.adjust-preview strong small{font-size:12px;font-weight:600;color:#788795}
.adjust-preview em{font-style:normal;font-size:11px;color:#788795;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.adjust-preview .plus strong{color:#176b45}
.adjust-preview .minus strong{color:#b42318}
.adjust-preview .after{background:#eef5fb;border-color:#9FBCCB}
.adjust-preview .after strong{color:#1A4A60}
.adjust-preview .after.invalid{background:#fdecec;border-color:#f1b5b5}
.adjust-preview .after.invalid strong{color:#b42318}
@media(max-width:560px){.adjust-preview{grid-template-columns:1fr}}


/* ============================================================
   Jedinstven izgled kartica i tabela (kao Pik / pivot podešavanje):
   obli uglovi + plava traka na vrhu. Ugnježdena kartica (kartica u kartici) nema traku.
   Kartica sa tabelom seče sadržaj po obliku (zaglavlje tabele ne viri preko oblih uglova).
   ============================================================ */
@media screen {
  :is(.content-card,.module-card,.md-card,.list-card,.form-card,.settings-card,.operation-panel,.inventory-detail-panel,.receipt-detail-panel,.tools-card,.pwp-card,.psp-card,.wbp-card,.pps-card,.gmd-card,.gmdi-card,.md-basic-card,.warehouse-card,.routing-card,.printer-card,.admin-users-card,.owner-warehouse-card,.integration-editor-card,.numbering-card,.order-types-card,.ops-card,.receiving-po-card,.shipment-times-card,.scope-card,.occ-mapcard){
      background:#fff;
      border:1px solid var(--border)!important;
      border-top:4px solid var(--blue)!important;
      border-radius:10px!important;
  }
  :is(.content-card,.module-card,.md-card,.list-card,.form-card,.settings-card,.operation-panel,.inventory-detail-panel,.receipt-detail-panel,.tools-card,.pwp-card,.psp-card,.wbp-card,.pps-card,.gmd-card,.gmdi-card,.md-basic-card,.warehouse-card,.routing-card,.printer-card,.admin-users-card,.owner-warehouse-card,.integration-editor-card,.numbering-card,.order-types-card,.ops-card,.receiving-po-card,.shipment-times-card,.scope-card,.occ-mapcard) :is(.content-card,.module-card,.md-card,.list-card,.form-card,.settings-card,.operation-panel,.inventory-detail-panel,.receipt-detail-panel,.tools-card,.pwp-card,.psp-card,.wbp-card,.pps-card,.gmd-card,.gmdi-card,.md-basic-card,.warehouse-card,.routing-card,.printer-card,.admin-users-card,.owner-warehouse-card,.integration-editor-card,.numbering-card,.order-types-card,.ops-card,.receiving-po-card,.shipment-times-card,.scope-card,.occ-mapcard){
      border-top:1px solid var(--border)!important;
  }
  :is(.content-card,.module-card,.md-card,.list-card,.form-card,.settings-card,.operation-panel,.inventory-detail-panel,.receipt-detail-panel,.tools-card,.pwp-card,.psp-card,.wbp-card,.pps-card,.gmd-card,.gmdi-card,.md-basic-card,.warehouse-card,.routing-card,.printer-card,.admin-users-card,.owner-warehouse-card,.integration-editor-card,.numbering-card,.order-types-card,.ops-card,.receiving-po-card,.shipment-times-card,.scope-card,.occ-mapcard):has(table){overflow:hidden}
}

/* Pregled zapisa u popout kartici (polja zaključana dok se ne klikne "Edit") – MasterData i GlobalMasterData. */
fieldset.md-view-fields{border:0;margin:0;padding:0;min-width:0}
fieldset.md-view-fields[disabled] input,fieldset.md-view-fields[disabled] select,fieldset.md-view-fields[disabled] textarea{background:#f5f7f9;color:#2d4357;opacity:1;cursor:default}

/* ============================================================
   WMS_COMPACT_FORMS_V1 – kompaktna polja u svim popout/drawer karticama i formama za unos/izmenu.
   - Polja: visina 31px, unutrašnji razmak 4px 10px, font 12.5px, line-height normal (tekst više ne "pluta"
     u sredini visokog polja). Select iste visine; textarea zadržava visinu, menja se samo padding.
   - Natpis bliže polju (3px), pomoćni tekst (<small>) bliže i zbijeniji.
   - NE važi za RF ekrane (.rf-shell je van .wms-shell), za tabele (filteri u zaglavlju, inline polja u redovima),
     za univerzalni toolbar tabela i iskačuće filtere/izbor kolona, niti za -sm varijante polja.
   - Selektori su namerno vrlo specifični (:is + :not) da bi nadjačali stilove po stranicama (.razor.css)
     i universal-ui.css koji se učitavaju posle app.css.
   ============================================================ */
:root{
    --wms-form-control-height:27px;
    --wms-form-control-font:12px;
    --wms-form-control-pad-y:2px;
    --wms-form-control-pad-x:8px;
}
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    select:not([multiple]):not([size]),
    .form-control,.form-select
):not(textarea):not(.form-control-sm):not(.form-select-sm):not(.wms-date-field__picker):not(:is(table,.wms-auto-table-toolbar,.wms-list-filter-pop,.wms-column-chooser,.wms-auto-filter-row) *){
    box-sizing:border-box!important;
    height:var(--wms-form-control-height)!important;
    min-height:var(--wms-form-control-height)!important;
    padding-top:var(--wms-form-control-pad-y)!important;
    padding-bottom:var(--wms-form-control-pad-y)!important;
    padding-left:var(--wms-form-control-pad-x)!important;
    font-size:var(--wms-form-control-font)!important;
    line-height:normal!important;
}
/* Desni padding se postavlja posebno: obično polje 10px, select ostavlja mesto za strelicu. */
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) :is(input:not([type="checkbox"]):not([type="radio"]),.form-control):not(select):not(textarea):not(.form-control-sm):not(:is(table,.wms-auto-table-toolbar,.wms-list-filter-pop,.wms-column-chooser,.wms-auto-filter-row) *){
    padding-right:var(--wms-form-control-pad-x)!important;
}
/* Select: desno mesto za strelicu (Bootstrap .form-select crta strelicu kao pozadinu). */
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) :is(select.form-select,.form-select):not(.form-select-sm):not(:is(table,.wms-auto-table-toolbar,.wms-list-filter-pop,.wms-column-chooser,.wms-auto-filter-row) *){
    padding-right:28px!important;
    background-position:right 8px center!important;
}
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) select:not(.form-select):not([multiple]):not([size]):not(:is(table,.wms-auto-table-toolbar,.wms-list-filter-pop,.wms-column-chooser,.wms-auto-filter-row) *){
    padding-right:6px!important;
}
/* Textarea: visina ostaje kakva jeste, samo ujednačen padding i font. */
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) textarea:not(:is(table) *){
    padding:5px var(--wms-form-control-pad-x)!important;
    font-size:var(--wms-form-control-font)!important;
}
/* Natpis bliže polju. */
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) :is(.field,.md-field,.psp-field,.wbp-field,.pwp-field,.integration-field)>label:not(.active-check):not(.check):not(:is(table) *),
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) .form-label:not(:is(table) *){
    margin-bottom:2px!important;
}
/* Pomoćni tekst ispod polja bliže polju i zbijeniji. */
.wms-shell :is(
    .md-detail-drawer,.gmd-modal,.receipt-style-master-drawer,.order-type-drawer,.ops-drawer,.admin-drawer,.admin-modal,
    .psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer,.operation-panel,.inventory-detail-panel,.count-detail-drawer,
    .receipt-detail-panel,.receive-stock-panel,.inventory-putaway-panel,.close-receipt-overlay,
    .psp-card,.pwp-card,.wbp-card,.printer-form,.routing-card,.count-plan-grid,.count-create-card,.integration-form-grid,
    .integration-editor-card,.settings-card,.po-header-grid,.order-header-grid,.receiving-header-grid,.user-data-grid,.movement-form-row
) :is(:is(.field,.md-field,.psp-field,.wbp-field,.pwp-field,.integration-field)>small,.form-text):not(:is(table) *){
    margin-top:2px!important;
    line-height:1.25!important;
}

/* Popout kartice: zbijenija zaglavlja, telo, podnožje, sekcije i mreže polja. */
/* Globalni podaci (artikal, vlasnik, kupac, prevoznik, vozilo, vozač ...) – .gmd-modal. */
.wms-shell .gmd-modal .form-head{padding:10px 14px!important}
.wms-shell .gmd-modal .form-body{padding:10px 14px 12px!important}
.wms-shell .gmd-modal .form-foot{padding:8px 14px!important}
.wms-shell .gmd-modal .item-unified-section{padding:9px 0!important}
.wms-shell .gmd-modal .item-unified-section h4{margin-bottom:7px!important}
.wms-shell .gmd-modal .item-unified-subtitle{margin:9px 0 5px!important}
.wms-shell .gmd-modal .item-unified-grid,.wms-shell .gmd-modal .item-logi-grid{gap:8px 12px!important}
.wms-shell .gmd-modal .owner-link-card{padding:8px 10px!important}
.wms-shell .gmd-modal .barcode-row{padding:6px 8px!important;gap:6px 8px!important}

/* ============================================================
   WMS_COMPACT_FORMS_V2 – još zbijenije popout kartice (polja 27px, manji razmaci sekcija i mreža).
   ============================================================ */
.wms-shell .md-detail-drawer .md-form-section,
.wms-shell .md-detail-drawer .item-unified-section{padding:8px 12px!important;margin-bottom:8px!important}
.wms-shell .md-detail-drawer .md-form-section-head{margin-bottom:6px!important;padding-bottom:4px!important}
.wms-shell .md-detail-drawer .md-form-section-head h4{margin:0!important;font-size:13px!important}
.wms-shell .md-detail-drawer .md-form-section-head span{font-size:10.5px!important;line-height:1.25!important}
.wms-shell .md-detail-drawer :is(.md-form-grid,.item-unified-grid,.item-logi-grid){gap:5px 10px!important}
.wms-shell .md-detail-drawer .md-owner-card{padding:6px 10px!important;margin-bottom:6px!important}
.wms-shell .md-detail-drawer :is(.md-field,.field)>label{font-size:10.5px!important;line-height:1.2!important;margin:2px 0 2px!important}
.wms-shell .md-detail-drawer :is(.md-field,.field)>small{font-size:10px!important;line-height:1.2!important}
.wms-shell .md-detail-drawer .md-detail-body{padding:8px 12px!important}
.wms-shell .gmd-modal .item-unified-section{padding:6px 0!important}
.wms-shell .gmd-modal :is(.item-unified-grid,.item-logi-grid){gap:5px 10px!important}
.wms-shell :is(.order-type-drawer,.ops-drawer,.admin-drawer,.psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer) :is(.drawer-section,.drawer-form-grid,.psp-section,.pwp-section,.wbp-section){gap:5px 10px!important}
.wms-shell :is(.order-type-drawer,.ops-drawer,.admin-drawer,.psp-drawer,.pwp-drawer,.wbp-drawer,.customs-drawer) .drawer-section{padding:8px 12px!important;margin-bottom:8px!important}

/* ============================================================
   WMS_COMPACT_FORMS_V3 – kartice sa čekboksom, opisi u karticama i ritam sekcija u popout karticama.
   ============================================================ */
/* Kartice za izbor (vidljivost po skladištima, podrazumevana sledljivost, štampa nalepnica – vlasnik
   u MasterData i GlobalMasterData): visina ~28px, manji unutrašnji razmak, razmak između kartica 6px.
   Tekst ostaje u jednom redu i skraćuje se (…). label/div u selektoru = jača specifičnost od universal-ui.css. */
.wms-shell div.owner-warehouse-grid{gap:6px!important;margin-top:4px!important}
.wms-shell label.owner-warehouse-card{
    min-height:28px!important;
    height:auto!important;
    margin:0!important;
    padding:3px 8px!important;
    gap:6px!important;
    column-gap:6px!important;
    border-radius:5px!important;
    line-height:1.2!important;
}
.wms-shell label.owner-warehouse-card>span{white-space:nowrap!important;overflow:hidden!important;line-height:1.2!important}
/* Sekcije sa karticama (vlasnik): manji razmaci između naslova, opisa i mreže. */
.wms-shell :is(.md-detail-drawer,.gmd-modal) .gmd-related-card{margin-top:8px!important;padding-top:7px!important}
.wms-shell :is(.md-detail-drawer,.gmd-modal) .gmd-related-card>h4{margin:0 0 3px!important}
.wms-shell :is(.md-detail-drawer,.gmd-modal) .gmd-related-card>p{margin:0 0 4px!important;line-height:1.3!important}
.wms-shell :is(.md-detail-drawer,.gmd-modal) .owner-warehouse-scope>small{margin:0 0 4px!important;line-height:1.3!important}
.wms-shell .md-detail-drawer .md-owner-readonly-block{margin-top:8px!important;padding-top:6px!important}
.wms-shell .md-detail-drawer .md-owner-readonly-block>label{margin:0 0 2px!important}
.wms-shell .md-detail-drawer .md-owner-labels-note{margin-top:6px!important}
.wms-shell .md-detail-drawer .md-owner-labels-actions{margin-top:8px!important}

/* Kartica sa čekboksom (.active-box – Operativna podešavanja, Tipovi otpremnih naloga): naslov i opis
   u dva reda (ranije su <strong> i <small> bili zalepljeni u istom redu: "…lokacijaPrijemi ovog tipa…"). */
.wms-shell .active-box>span{display:flex!important;flex-direction:column!important;gap:1px!important;min-width:0!important}
.wms-shell .active-box>span>strong{display:block!important;font-weight:700}
.wms-shell .active-box>span>small{display:block!important;margin:0!important;color:#7a8794!important;font-size:9px!important;font-weight:400!important;line-height:1.3!important}

/* ============================================================
   WMS_INLINE_TABLE_EDIT_V1 – polja za uređivanje u redovima tabela (koraci strategije razmeštaja,
   pik/pivot podešavanje, stavke novog naloga / porudžbine / prijema, carinske stavke, alati skladišta ...).
   - Polje i select: visina 26px, font 12px, padding 2px 6px; red tabele sa takvim poljima: 3px gore/dole.
   - Važi samo za <tbody>: filteri u zaglavlju tabele (thead, .wms-auto-filter-row) ostaju nepromenjeni.
   - Čekboks / radio / textarea / skriveni date-picker se ne diraju. Širine polja određuju stranice.
   ============================================================ */
:root{
    --wms-inline-control-height:26px;
    --wms-inline-control-font:12px;
}
.wms-shell table>tbody>tr>td :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    select:not([multiple]):not([size]),
    .form-control,.form-select
):not(textarea):not(.wms-date-field__picker){
    box-sizing:border-box!important;
    height:var(--wms-inline-control-height)!important;
    min-height:var(--wms-inline-control-height)!important;
    padding:2px 6px!important;
    font-size:var(--wms-inline-control-font)!important;
    line-height:normal!important;
    border-radius:4px!important;
}
/* Select u redu tabele: mesto za strelicu. */
.wms-shell table>tbody>tr>td :is(select,.form-select):not([multiple]):not([size]){
    padding-right:22px!important;
    background-position:right 6px center!important;
}
.wms-shell table>tbody>tr>td select:not(.form-select):not([multiple]):not([size]){padding-right:4px!important}
/* Red sa poljima za uređivanje: manji vertikalni razmak ćelija (nadjačava universal-ui / stranice). */
.wms-shell table>tbody>tr:has(>td :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,.form-control,.form-select))>td{
    padding-top:3px!important;
    padding-bottom:3px!important;
}
/* Dugme kalendara u polju datuma u redu tabele prati visinu polja. */
.wms-shell table>tbody>tr>td .wms-date-field__btn{height:var(--wms-inline-control-height);padding:0 6px}

/* ============================================================
   WMS_DISPLAY_RULES – jedno pravilo prikaza podataka za sve ekrane i kartice
   (detaljno: docs/UI_DISPLAY_RULES.md).
   1. Količina zalihe: WmsNumberFormat.Quantity(qty, stockManagementType) + JM ("950 PCS").
      PIECE bez decimala; WEIGHT/LENGTH/VOLUME sa 2 decimale; nepoznat tip / zbir više artikala
      bez suvišnih nula (WmsNumberFormat.QuantityAuto). Težina/zapremina/dimenzije: DisplayUnitService.
   2. Datumi: dd/MM/yyyy; datum + vreme: dd/MM/yyyy HH:mm (sekunde samo u istoriji/logovima).
   3. Status: uvek "pilula" (.wms-status-pill + ton iz WmsStatus.PillClass), tekst preveden (L.T).
   4. Šifre (LPN, SSCC, artikal, lokacija, prijemnica, nalog): ne prevode se – data-wms-i18n-fixed.
   5. Detalj zapisa (drawer, samo pregled): sekcije .wms-detail-section, naslov .wms-detail-section-title,
      mreža .wms-detail-grid (2 kolone; .three / .four), polje .wms-detail-field:
      natpis IZNAD vrednosti (.wms-detail-label 10.5px, normalna mala/velika slova, prevod L.T),
      vrednost .wms-detail-value 12.5px. Bez kutije oko svakog polja, bez UPPERCASE natpisa.
   6. Polja forme u popout karticama: 27px (WMS_COMPACT_FORMS_V2); polja u redovima tabela: 26px
      (WMS_INLINE_TABLE_EDIT_V1); kartice sa čekboksom ~28px (WMS_COMPACT_FORMS_V3).
   7. Izuzetak: RF ekrani (.rf-shell) – velika polja, dugmad i font, ova pravila se tamo ne primenjuju.
   ============================================================ */

/* --- Status pilula (isti izgled kao u tabelama: Pregled zaliha, Nalozi, Otpreme) --- */
.wms-status-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:68px;
    padding:3px 8px;
    border-radius:12px;
    background:#e9edf1;
    color:#53616e;
    font-size:10px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.02em;
    white-space:nowrap;
    vertical-align:middle;
}
.wms-status-pill.wms-status-ok{background:#dff3e7;color:#176b3a}
.wms-status-pill.wms-status-info{background:#E3EEF3;color:#1F5A73}
.wms-status-pill.wms-status-warn{background:#fff0c9;color:#805800}
.wms-status-pill.wms-status-bad{background:#fde2e1;color:#a12622}
.wms-status-pill.wms-status-neutral{background:#e9edf1;color:#53616e}

/* --- Detalj zapisa (read-only drawer) --- */
.wms-detail-status-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 14px;border-bottom:1px solid #edf1f4;background:#fbfcfd}
.wms-detail-body{padding:8px 12px 12px}
.wms-shell .wms-detail-section{
    margin:0 0 8px;
    padding:8px 12px;
    border:1px solid #e1e8ee;
    border-radius:8px;
    background:#fff;
}
.wms-shell .wms-detail-section:last-child{margin-bottom:0}
.wms-shell .wms-detail-section-title{
    margin:0 0 6px;
    padding:0 0 4px;
    border-bottom:1px solid #edf1f4;
    color:#16384A;
    font-size:13px;
    font-weight:700;
    line-height:1.3;
    letter-spacing:0;
    text-transform:none;
}
.wms-shell .wms-detail-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px 14px;
    margin:0;
    padding:0;
    border:0;
    background:transparent;
}
.wms-shell .wms-detail-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.wms-shell .wms-detail-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
/* Polje: natpis iznad vrednosti, bez kutije. Podržan je i kratki zapis <div><span>natpis</span><strong>vrednost</strong></div>. */
.wms-shell .wms-detail-grid>div,
.wms-shell .wms-detail-field{
    min-width:0;
    min-height:0;
    margin:0;
    padding:2px 0 4px;
    border:0;
    border-bottom:1px dashed #edf1f4;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}
.wms-shell .wms-detail-grid>div.full,
.wms-shell .wms-detail-field.full{grid-column:1/-1}
.wms-shell .wms-detail-grid>div>span,
.wms-shell .wms-detail-label,
.wms-shell .wms-detail-grid .wms-detail-label{
    display:block;
    margin:0 0 2px;
    color:#4f667a;
    font-size:10.5px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:0;
    text-transform:none;
}
.wms-shell .wms-detail-grid>div>strong,
.wms-shell .wms-detail-value,
.wms-shell .wms-detail-grid .wms-detail-value{
    display:block;
    min-height:16px;
    color:#16384A;
    font-size:12.5px;
    font-weight:600;
    line-height:1.3;
    letter-spacing:0;
    text-transform:none;
    overflow-wrap:anywhere;
}
/* Činjenice u zaglavlju operativnog drawera (nalog, otprema, zadatak, ruta, integraciona poruka). */
.wms-shell .wms-detail-grid.wms-detail-facts{padding:10px 14px;border-bottom:1px solid #e9eef2;background:#fff}
.wms-shell .wms-detail-value.num{font-variant-numeric:tabular-nums}
.wms-shell .wms-detail-value .wms-status-pill{margin-top:1px}
@media(max-width:900px){.wms-shell .wms-detail-grid.three,.wms-shell .wms-detail-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.wms-shell .wms-detail-grid,.wms-shell .wms-detail-grid.three,.wms-shell .wms-detail-grid.four{grid-template-columns:1fr}}

/* --- Sažetak u dijalogu (npr. Kontrola zaliha: izabrane linije / izabrana količina) ---
   Isti stil kao KPI kartice (natpis levo, vrednost desno), ali najviše 2 pločice u redu i natpis
   uvek u jednom redu (ranije se "IZABRANE LINIJE" prelamalo u uskoj pločici). */
.wms-dialog-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
.wms-dialog-summary>div{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    min-width:0;min-height:40px;padding:8px 12px;
    border:1px solid #e0e5ea;border-radius:6px;background:#f8fafc;
}
.wms-dialog-summary>div>span{
    min-width:0;color:#4f667a;font-size:10.5px;font-weight:700;line-height:1.2;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:none;letter-spacing:0;
}
.wms-dialog-summary>div>strong{
    flex:0 0 auto;color:#223548;font-size:16px;font-weight:700;line-height:1.1;white-space:nowrap;
    font-variant-numeric:tabular-nums;
}
@media(max-width:460px){.wms-dialog-summary{grid-template-columns:1fr}}

/* --- Kartice sa čekboksom i integracioni prekidači: ~28px kao kartice vlasnika (WMS_COMPACT_FORMS_V3) --- */
.wms-shell label.check-card,
.wms-shell .drawer-check-grid label.check-card{
    min-height:28px!important;
    height:auto!important;
    margin:0!important;
    padding:3px 8px!important;
    gap:6px!important;
    border-radius:5px!important;
    align-items:center!important;
    line-height:1.2!important;
}
.wms-shell .drawer-check-grid label.check-card>span{display:flex!important;align-items:baseline!important;gap:5px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;line-height:1.2!important}
.wms-shell .drawer-check-grid label.check-card strong{font-size:10px!important;line-height:1.2!important}
.wms-shell .drawer-check-grid label.check-card small{margin:0!important;font-size:9px!important;line-height:1.2!important;overflow:hidden!important;text-overflow:ellipsis!important}
.wms-shell .drawer-check-grid{gap:6px!important}
.wms-shell label.integration-toggle{
    min-height:28px!important;
    padding:3px 8px!important;
    gap:6px!important;
    border-radius:5px!important;
    line-height:1.2!important;
}
.wms-shell label.integration-toggle>span{display:flex!important;align-items:baseline!important;gap:6px!important;min-width:0!important;overflow:hidden!important}
.wms-shell label.integration-toggle strong{flex:0 0 auto;font-size:10px!important;line-height:1.2!important;white-space:nowrap}
.wms-shell label.integration-toggle small{margin:0!important;font-size:9px!important;line-height:1.2!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* END WMS_DISPLAY_RULES */
/* Kicker iznad naslova detalja (npr. "DETALJ ZALIHE") ostaje velikim slovima, kao md-detail-kicker. */
.wms-shell .inventory-detail-panel .detail-caption{text-transform:uppercase}
