/* ED v0.3.69 — inline Paket/Komad editor in the table where the user clicked. */
body.ed-ui365 .ui365-price-content{display:flex;min-width:0}
body.ed-ui365 .ui365-price-view{display:block!important;flex:1 1 auto;width:100%;min-width:0;min-height:0}
body.ed-ui365 .ui365-price-view>.ui365-price-scroll{width:100%;height:100%;min-width:0}
body.ed-ui365 .ed369-price-table{width:100%;table-layout:fixed}
body.ed-ui365 .ed369-qty strong,body.ed-ui365 .ed369-qty small{display:block}

.ed369-pack-hint{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:4px}
.ed369-pack-open{border:1px solid #8fc7ad;background:#f4fbf7;color:#20553d;border-radius:7px;padding:3px 7px;font-size:11px;line-height:1.25;cursor:pointer}
.ed369-pack-open:hover,.ed369-pack-open:focus-visible{background:#e5f5ed;border-color:#58a981;outline:none}
.ed369-pack-status,.ed369-group-status{font-size:10px;line-height:1.25;color:#52665d;white-space:normal}
.ed369-group-status{color:#1f6c4a;font-weight:600}
.ed369-group-value,.ed369-package-value{display:block;font-size:10px;line-height:1.35;color:#286247;text-align:left!important;margin-top:2px;white-space:normal}

tr.ed369-inline-row>td.ed369-inline-cell{padding:0!important;background:#f5fbf8!important;border-top:0!important;border-bottom:2px solid #83bea2!important;text-align:left!important;white-space:normal!important}
.ed369-editor{box-sizing:border-box;width:100%;padding:12px 14px 13px;background:#f7fcf9;border-top:1px solid #b7dcca;border-bottom:1px solid #b7dcca;color:#1f322a}
.ed369-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.ed369-head h3{margin:0;font-size:15px;line-height:1.3;color:#17452f}
.ed369-x{flex:0 0 auto;border:0;background:transparent;color:#52675e;font-size:22px;line-height:1;padding:0 3px;cursor:pointer}
.ed369-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.ed369-step{min-width:0;border:1px solid #c2dfd1;border-radius:9px;background:#fff;padding:10px}
.ed369-step-title{margin-bottom:8px;font-size:12px;color:#315c48}
.ed369-step-title strong{font-weight:700}
.ed369-choice,.ed369-basis{display:flex;flex-wrap:wrap;gap:7px}
.ed369-choice button,.ed369-basis button{border:1px solid #a8ccbb;background:#fff;color:#2b4b3c;border-radius:7px;padding:7px 10px;font-size:12px;cursor:pointer}
.ed369-choice button.is-active,.ed369-basis button.is-active{background:#dff2e8;border-color:#3f9a70;color:#164b32;font-weight:700;box-shadow:inset 0 0 0 1px #3f9a70}
.ed369-step input[type="text"],.ed369-step input[type="number"]{box-sizing:border-box;width:100%;min-width:0;margin-top:5px;padding:8px 9px;border:1px solid #aacdbd;border-radius:7px;background:#fff;font-size:13px;color:#1d3027}
.ed369-formula{display:block;margin-top:5px;font-size:11px;color:#60746a}
.ed369-help{margin:0 0 7px;font-size:11px;color:#586d63}
.ed369-group-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.ed369-group-fields[hidden]{display:none!important}
.ed369-group-fields label{display:block;font-size:11px;color:#52665d}

.ed369-summary,.ed369-group-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}
.ed369-group-summary{grid-template-columns:repeat(4,minmax(0,1fr));background:#eef8f3;border:1px solid #b8ddcc;border-radius:9px;padding:8px}
.ed369-group-summary[hidden]{display:none!important}
.ed369-summary-line{min-width:0;border:1px solid #d1e5db;border-radius:7px;background:#fff;padding:7px 8px}
.ed369-summary-line span,.ed369-summary-line strong{display:block;white-space:normal}
.ed369-summary-line span{font-size:10px;color:#687b72;margin-bottom:2px}
.ed369-summary-line strong{font-size:12px;color:#173f2d}
.ed369-note,.ed369-suggestion,.ed369-warning,.ed369-error,.ed369-close-hint{margin:8px 0 0;font-size:11px;line-height:1.4}
.ed369-note{color:#63766d}
.ed369-suggestion{background:#edf8f2;border-left:3px solid #70b58f;padding:6px 8px;color:#315d47}
.ed369-warning{background:#fff7e5;border-left:3px solid #d9a43c;padding:6px 8px;color:#795b1d}
.ed369-error{background:#fff0f0;border-left:3px solid #c95757;padding:6px 8px;color:#873131}
.ed369-close-hint{color:#8a5a1b}
.ed369-check{display:flex;align-items:flex-start;gap:7px;margin-top:9px;font-size:11px;color:#425b4f}
.ed369-check input{margin-top:1px}
.ed369-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:10px}
.ed369-nochange{margin-right:auto;font-size:11px;color:#6b7c74}
.ed369-actions button{min-width:82px}
.ed369-actions button:disabled{opacity:.55;cursor:not-allowed}
.ed369-switch-dialog{max-width:470px}

/* Dynamic inline rows need to span cleanly inside both 5-col price table and 28-col admin table. */
#puna-tabela tr.ed369-inline-row td,.klm-client-table tr.ed369-inline-row td,.klm-calculation-table tr.ed369-inline-row td,.ui365-price-table tr.ed369-inline-row td{position:relative;z-index:1}

@media(max-width:1100px){
 .ed369-grid{grid-template-columns:1fr}
 .ed369-summary,.ed369-group-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ed369-group-fields{grid-template-columns:1fr}
}

/* Simple two-column purchase/sale table; conversion internals remain inactive and unseen. */
.ed-pack-simple-table{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;align-items:start}
.ed-pack-simple-table>.ed369-step{min-width:0!important;margin:0!important;height:100%;box-sizing:border-box}
.ed-pack-simple-table>.ed369-hidden-engine{display:none!important}
.ed-pack-simple-table [data-purchase-content-box]:not([hidden]){display:flex;flex-direction:column;gap:8px}
.ed-pack-simple-table [data-purchase-content-box][hidden]{display:none!important}
.ed-pack-simple-table .ed369-choice{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:730px){.ed-pack-simple-table{grid-template-columns:minmax(0,1fr)}}

/* Streamlined purchase / sale / package quantity layout */
.ed-pack-simple-table>.ed-pack-content-full{grid-column:1/-1;height:auto}
.ed-pack-simple-table>.ed-pack-price-cell{grid-column:1/-1;height:auto}
.ed-pack-simple-table [data-purchase-content-quantity]{max-width:100%;width:100%;box-sizing:border-box}
.ed-pack-simple-table [data-purchase-content-box] .ed369-help{display:block}
.ed369-actions>[data-pack-save]{display:inline-flex!important}

.ed-pack-simple-table [data-sales-group-fields]:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.ed-pack-simple-table [data-sales-group-fields][hidden]{display:none!important}
@media(max-width:750px){.ed-pack-simple-table [data-sales-group-fields]:not([hidden]){grid-template-columns:1fr}}
/* Requested balanced purchase contents / sales price row */
@media(min-width:731px){.ed-pack-simple-table>.ed-pack-content-full,.ed-pack-simple-table>.ed-pack-price-cell{grid-column:auto!important}}
