/* Studio360 master zakrpa — pametni unos stavki dokumenta. Ne dira bazu. */
.smart-doc-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 14px}.smart-doc-intro h2{margin:0 0 5px;font-size:26px;letter-spacing:-.02em}.smart-doc-intro p{margin:0;color:#6f665c;line-height:1.45;max-width:760px}.smart-entry{border:1px solid rgba(231,220,203,.96);background:linear-gradient(180deg,#fffdf8,#fff8ee);border-radius:24px;padding:14px;margin:0 0 14px;box-shadow:0 18px 42px rgba(40,28,10,.08)}.smart-entry-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.smart-entry-tabs button{border:1px solid rgba(215,198,170,.9);background:#fff;border-radius:999px;min-height:42px;padding:0 15px;font-weight:900;color:#3b332b;cursor:pointer}.smart-entry-tabs button.active{background:#17191d;color:#fff;border-color:#17191d;box-shadow:0 12px 28px rgba(17,18,20,.16)}.smart-panel{display:none}.smart-panel.active{display:block}.smart-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 10px}.smart-card-title strong{font-size:15px}.smart-card-title small{color:#756b5e;line-height:1.35;max-width:720px;text-align:right}.smart-line-form{display:grid;grid-template-columns:minmax(260px,1.6fr) 120px 130px 120px auto;gap:10px;align-items:end}.combo-line-form{grid-template-columns:minmax(240px,1.3fr) minmax(220px,1.1fr) 110px 125px 125px auto}.manual-line-form{grid-template-columns:minmax(280px,1.5fr) 110px 90px 130px auto}.smart-line-form label{display:grid;gap:6px;font-weight:850;color:#383026}.smart-line-form input{min-height:46px;border-radius:15px}.smart-search-field{position:relative}.smart-results{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:220;background:#fffdf8;border:1px solid rgba(220,205,181,.98);border-radius:18px;box-shadow:0 24px 60px rgba(25,20,12,.18);padding:6px;max-height:320px;overflow:auto}.smart-result{width:100%;border:0;background:transparent;text-align:left;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px;border-radius:14px;cursor:pointer;color:#28231d}.smart-result:hover,.smart-result.active{background:#fff0d1}.smart-result.warn{background:#fff8e8}.smart-result.warn:hover,.smart-result.warn.active{background:#fff0d1}.smart-result-type{font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.05em;border-radius:999px;background:#17191d;color:#fff;padding:5px 7px}.smart-result.service .smart-result-type{background:#855d13}.smart-result-title{display:grid;gap:2px}.smart-result-title strong{font-size:13.5px}.smart-result-title small{font-size:12px;color:#746a5f;line-height:1.25}.smart-result-meta{text-align:right;font-size:12px;color:#5f5448;white-space:nowrap}.smart-help{margin-top:10px;border:1px dashed rgba(205,184,151,.95);border-radius:15px;background:#fffaf0;color:#5d4c32;padding:10px 12px;line-height:1.35}.smart-help.warning{border-color:#f2b5ad;background:#fff4f2;color:#84251b}.smart-lines-wrap{border:1px solid rgba(231,220,203,.92);background:#fffdf8;border-radius:24px;padding:14px;margin:0 0 14px}.smart-lines-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.smart-lines-head strong{display:block}.smart-lines-head small{display:block;margin-top:2px;color:#73695e}.smart-lines{display:grid;gap:9px}.smart-line-card{display:grid;grid-template-columns:1fr 95px 115px 105px 110px auto;gap:9px;align-items:center;border:1px solid rgba(231,220,203,.86);background:#fff;border-radius:18px;padding:10px}.smart-line-main{min-width:0}.smart-line-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-line-main small{display:flex;gap:7px;flex-wrap:wrap;color:#746b60;margin-top:4px}.smart-badge{display:inline-flex;align-items:center;border-radius:999px;background:#f5eddf;color:#41362a;padding:3px 8px;font-size:11px;font-weight:900}.smart-badge.service{background:#fff0d1;color:#76510d}.smart-badge.manual{background:#eef0f3;color:#343941}.smart-badge.warn{background:#fff1f0;color:#a01810}.smart-line-card label{display:grid;gap:4px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#766b5e}.smart-line-card input{min-height:40px;border-radius:13px}.smart-line-total{text-align:right;font-weight:950;color:#17191d}.smart-line-actions{display:flex;gap:6px;justify-content:flex-end}.smart-empty-lines{border:1px dashed rgba(210,190,160,.9);border-radius:16px;padding:16px;text-align:center;color:#746b60;background:#fffaf0}.smart-technical-table,.smart-hidden-controls{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.smart-add-btn{min-height:46px}.smart-focus-ring{box-shadow:0 0 0 4px rgba(208,163,72,.22)!important;border-color:#d0a348!important}.smart-line-card.stock-warning{border-color:#f4b3ac;background:#fff7f6}.smart-line-card.stock-warning .smart-line-total{color:#a01810}.smart-panel .wide{grid-column:1/-1}
.document-form-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}.document-form-summary div{min-width:0;border:1px solid rgba(231,220,203,.95);background:#fffdf8;border-radius:18px;padding:13px;box-shadow:0 10px 28px rgba(32,24,12,.05)}.document-form-summary span{display:block;color:var(--muted,#746d63);font-size:.84rem;font-weight:850}.document-form-summary strong{display:block;margin-top:5px;font-size:1.05rem;line-height:1.15;overflow-wrap:anywhere}
.document-entry-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 8px}.document-entry-head h1{margin:0;font-size:24px;line-height:1.05;letter-spacing:0}.document-entry-head p{margin:4px 0 0;color:#70665b;font-size:.86rem;line-height:1.25}.document-preset-strip{display:inline-flex;align-items:stretch;border:1px solid rgba(215,198,170,.95);border-radius:999px;background:#fffdf8;overflow:hidden;box-shadow:0 10px 24px rgba(40,28,10,.06);white-space:nowrap}.document-preset-chip{border:0;border-left:1px solid rgba(215,198,170,.9);background:#fffdf8;min-height:38px;padding:0 18px;font-weight:950;color:#211b16;cursor:pointer}.document-preset-chip:first-child{border-left:0}.document-preset-chip:hover,.document-preset-chip:focus-visible{outline:0;background:#fff0d1}.document-preset-chip.active{box-shadow:inset 0 -3px 0 #17191d}.document-preset-chip.ok{background:#f5fff8}.document-preset-chip.info{background:#f4faff}.document-preset-chip.warn{background:#fffaf0}.document-preset-chip.muted{background:#fffdf8}
.document-pos-flow-note{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(231,220,203,.95);background:#fffdf8;border-radius:18px;padding:12px 14px;margin:0 0 14px;box-shadow:0 10px 24px rgba(32,24,12,.05)}
.document-pos-flow-note.ok{border-color:#b9e8ca;background:#f3fff6}
.document-pos-flow-note.warn{border-color:#f4d18a;background:#fff8e8}
.document-pos-flow-note span,.document-pos-flow-note small{display:block;color:#6f665c;font-size:.82rem;font-weight:850;line-height:1.25}
.document-pos-flow-note strong{display:block;margin:3px 0;font-size:1.05rem;line-height:1.12;color:#1f252b}
.document-pos-flow-pills{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.document-pos-flow-pills span{border:1px solid rgba(215,198,170,.9);background:#fff;border-radius:999px;padding:7px 9px;font-size:.76rem}
.document-quick-entry{display:grid;grid-template-columns:minmax(190px,.66fr) minmax(0,1.34fr);gap:12px;align-items:stretch;border:1px solid rgba(223,206,178,.95);background:#fffaf1;border-radius:18px;padding:13px;margin:0 0 14px}.document-quick-entry span,.document-quick-entry small{display:block;color:#6f665c;font-size:.84rem;font-weight:850;line-height:1.25}.document-quick-entry span{text-transform:uppercase;letter-spacing:0}.document-quick-entry strong{display:block;margin:4px 0 3px;color:#1f252b;font-size:1.08rem;line-height:1.15}.document-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.document-quick-card{min-width:0;text-align:left;cursor:pointer;border:1px solid rgba(213,195,165,.95);background:#fff;border-radius:14px;padding:11px 12px;box-shadow:0 8px 20px rgba(46,33,14,.05)}.document-quick-card:hover,.document-quick-card:focus-visible{border-color:#d0a348;box-shadow:0 12px 26px rgba(46,33,14,.12);outline:0}.document-quick-card strong,.document-quick-card small{display:block}.document-quick-card strong{margin:0 0 3px;font-size:.94rem}.document-quick-card.ok{border-color:#bfe6cf;background:#f5fff8}.document-quick-card.info{border-color:#bcd8ef;background:#f4faff}.document-quick-card.warn{border-color:#efd49b;background:#fffaf0}
.due-date-quick{display:grid;gap:7px}
.due-date-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.due-date-buttons .btn{min-width:0;padding:8px 6px;border-radius:11px;font-size:.78rem}
.due-date-buttons .btn.active{border-color:#17191d;background:#17191d;color:#fff;box-shadow:0 8px 18px rgba(17,25,29,.14)}
.customer-risk-pill{display:inline-flex;align-items:center;max-width:100%;width:max-content;border:1px solid rgba(240,198,191,.9);background:#fff7f6;color:#9f2418;border-radius:999px;padding:4px 9px;font-size:.76rem;font-weight:950;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-risk-pill[hidden]{display:none!important}
.customer-risk-pill:not(.warn){border-color:rgba(239,212,155,.9);background:#fffaf0;color:#6d4d10}
.smart-add-btn.is-disabled{opacity:.55;cursor:not-allowed;pointer-events:none;filter:grayscale(.2)}
.wizard-card input.s360-smart-invalid,.wizard-card select.s360-smart-invalid,.wizard-card textarea.s360-smart-invalid,.smart-line-form input.s360-smart-invalid{border-color:#b42318!important;box-shadow:0 0 0 4px rgba(180,35,24,.14)!important;background:#fff7f6!important}
.document-confirm-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:12px;align-items:start;margin-bottom:12px}
.document-save-checklist{display:grid;gap:8px;border:1px solid rgba(224,207,179,.95);background:#fffaf1;border-radius:18px;padding:12px}
.document-check-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid rgba(231,220,203,.85);background:#fff;border-radius:14px;padding:10px 12px}
.document-check-row span{font-weight:900;color:#6f665c}
.document-check-row strong{font-size:.9rem;text-align:right;color:#1f252b}
.document-check-row.ok{border-color:#bfe6cf;background:#f6fff9}
.document-check-row.warn{border-color:#f0c6bf;background:#fff7f6}
.document-check-row.warn strong{color:#9f2418}
@media(max-width:1100px){.document-form-summary{grid-template-columns:1fr 1fr}.smart-line-form,.combo-line-form,.manual-line-form{grid-template-columns:1fr 1fr}.smart-line-form .smart-search-field,.combo-line-form .smart-search-field,.manual-line-form .wide{grid-column:1/-1}.smart-add-btn{grid-column:1/-1}.smart-line-card{grid-template-columns:1fr 88px 100px 88px auto}.smart-line-total{grid-column:1/-1;text-align:left}.smart-card-title{display:block}.smart-card-title small{text-align:left;display:block;margin-top:4px}}
@media(max-width:760px){.document-form-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.document-form-summary div{padding:10px;border-radius:15px}.document-form-summary span{font-size:.78rem}.document-form-summary strong{font-size:.98rem}.document-entry-head{display:grid;gap:8px;align-items:start}.document-entry-head h1{font-size:21px}.document-entry-head p{display:none}.document-preset-strip{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:14px}.document-preset-chip{min-height:36px;padding:0 7px;font-size:.78rem}.document-pos-flow-note{display:grid;gap:10px}.document-pos-flow-pills{justify-content:flex-start}.document-quick-entry{grid-template-columns:1fr}.document-quick-grid{display:flex;grid-template-columns:none;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}.document-quick-grid::-webkit-scrollbar{display:none}.document-quick-card{flex:0 0 min(72vw,230px);scroll-snap-align:start}.document-confirm-grid{grid-template-columns:1fr}.document-check-row{align-items:flex-start}.smart-doc-intro{display:block}.smart-doc-intro .toolbar{margin-top:10px;display:grid;grid-template-columns:1fr;gap:8px}.smart-entry,.smart-lines-wrap{border-radius:20px;padding:12px}.smart-entry-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}.smart-entry-tabs button{flex:0 0 auto;min-height:40px;padding:0 12px;font-size:12.5px}.smart-line-form,.combo-line-form,.manual-line-form{grid-template-columns:1fr!important}.smart-line-form label,.smart-add-btn{grid-column:1!important}.smart-results{position:fixed;left:10px;right:10px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-height:52dvh;z-index:3600}.smart-line-card{grid-template-columns:1fr!important;gap:8px}.smart-line-main strong{white-space:normal}.smart-line-card label{font-size:10.5px}.smart-line-actions{justify-content:stretch}.smart-line-actions .btn{width:100%;min-height:42px}.smart-lines-head{display:block}.smart-lines-head .btn{width:100%;margin-top:8px}.smart-card-title small{font-size:12px}.smart-help{font-size:13px}.wizard-step.active .smart-lines-wrap + .actions{position:sticky!important;bottom:0!important;z-index:70;background:linear-gradient(180deg,rgba(255,253,248,.78),#fffdf8 30%)!important;border-top:1px solid rgba(231,220,203,.9)!important;margin:12px -12px -12px!important;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px))!important;display:grid!important;grid-template-columns:1fr!important}.wizard-step.active .smart-lines-wrap + .actions .btn{width:100%;min-height:48px}}
@media(max-width:420px){.document-form-summary{grid-template-columns:1fr}}
@media(min-width:761px){.document-form-summary{gap:8px;margin:0 0 8px}.document-form-summary div{border-radius:14px;padding:8px 12px}.document-form-summary span{font-size:.76rem}.document-form-summary strong{margin-top:3px;font-size:.95rem}.document-quick-entry{grid-template-columns:minmax(145px,.32fr) minmax(0,1fr);gap:9px;align-items:center;border-radius:14px;padding:8px 10px;margin:0 0 10px}.document-quick-entry span{font-size:.76rem}.document-quick-entry strong{font-size:.96rem;margin:2px 0}.document-quick-entry small{font-size:.76rem}.document-quick-entry>div:first-child small,.document-quick-card small{display:none}.document-quick-entry:hover>div:first-child small,.document-quick-entry:focus-within>div:first-child small,.document-quick-card:hover small,.document-quick-card:focus-visible small{display:block}.document-quick-grid{gap:6px}.document-quick-card{border-radius:12px;padding:8px 10px;min-height:50px}.document-quick-card strong{font-size:.88rem;margin:0}.document-quick-card small{margin-top:2px;line-height:1.16}}
@media(min-width:1000px){body[data-page="documents"] form[data-document-form="1"]{display:grid;grid-template-columns:112px minmax(0,1fr);gap:0}body[data-page="documents"] form[data-document-form="1"]>.validation-summary,body[data-page="documents"] form[data-document-form="1"]>.subtle-box{grid-column:1/-1}body[data-page="documents"] .wizard-card .wizard-steps{grid-column:1;grid-row:3/span 3;display:grid;grid-template-columns:1fr;align-content:start;border-right:1px solid rgba(231,220,203,.95);border-bottom:0;background:#fffaf1;padding:8px 0}body[data-page="documents"] .wizard-card .wizard-steps button{min-height:42px;text-align:left;padding:9px 11px;border-radius:0;font-size:.86rem}body[data-page="documents"] .wizard-card .wizard-steps button.active{box-shadow:inset 3px 0 0 #17191d;background:#fff;color:#17191d}body[data-page="documents"] .wizard-card .wizard-step{grid-column:2;padding:14px 16px}body[data-page="documents"] .wizard-card .wizard-step .grid-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px;align-items:end}body[data-page="documents"] .wizard-card .wizard-step label{gap:4px;font-size:.9rem}body[data-page="documents"] .wizard-card .wizard-step input,body[data-page="documents"] .wizard-card .wizard-step select,body[data-page="documents"] .wizard-card .wizard-step textarea,body[data-page="documents"] .wizard-card .wizard-step .s360-smart-input{min-height:42px;border-radius:12px;padding:9px 11px}body[data-page="documents"] .wizard-card .wizard-step .actions{margin-top:8px}body[data-page="documents"] .wizard-card .mini-actions{gap:6px}body[data-page="documents"] .wizard-card .mini-actions .btn.small{min-height:42px;padding:8px 9px}}
body[data-page="documents"] .wizard-card .wizard-steps{display:none!important}
body[data-page="documents"] .wizard-card .wizard-step,body[data-page="documents"] .wizard-card .wizard-step.active{display:block!important;padding:10px 14px!important}
body[data-page="documents"] .wizard-card .wizard-step+.wizard-step{border-top:1px solid rgba(231,220,203,.72)}
body[data-page="documents"] .wizard-card [data-next-step]{display:none!important}
body[data-page="documents"] .wizard-card{padding:0!important}
body[data-page="documents"] .wizard-card form[data-document-form="1"]{display:block!important}
body[data-page="documents"] .wizard-card .grid-form{gap:8px 10px!important}
body[data-page="documents"] .wizard-card label{gap:4px!important}
body[data-page="documents"] .wizard-card input,body[data-page="documents"] .wizard-card select,body[data-page="documents"] .wizard-card textarea,body[data-page="documents"] .wizard-card .s360-smart-input{min-height:42px!important;border-radius:12px!important;padding:9px 11px!important}
@media(min-width:761px){body[data-page="documents"] .wizard-card .grid-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px 9px!important}body[data-page="documents"] .wizard-card label{font-size:.82rem!important;line-height:1.15!important}body[data-page="documents"] .wizard-card input,body[data-page="documents"] .wizard-card select,body[data-page="documents"] .wizard-card textarea,body[data-page="documents"] .wizard-card .s360-smart-input{min-height:36px!important;border-radius:10px!important;padding:7px 9px!important;font-size:.92rem!important}body[data-page="documents"] .wizard-card .btn{min-height:36px!important;border-radius:10px!important;padding:8px 10px!important}body[data-page="documents"] .due-date-buttons{gap:4px!important}body[data-page="documents"] .due-date-buttons .btn{min-height:32px!important;padding:6px!important}}
body[data-page="documents"] .smart-doc-intro{margin:0 0 6px!important;align-items:center}
body[data-page="documents"] .smart-doc-intro h2{font-size:18px!important;margin:0!important}
body[data-page="documents"] .smart-doc-intro p{display:none!important}
body[data-page="documents"] .smart-doc-intro .toolbar{gap:6px}
body[data-page="documents"] .smart-entry{padding:10px!important;margin:0 0 8px!important;border-radius:16px!important;box-shadow:none!important}
body[data-page="documents"] .smart-entry-tabs{margin:0 0 8px!important;gap:6px!important}
body[data-page="documents"] .smart-entry-tabs button{min-height:36px!important;padding:0 11px!important}
body[data-page="documents"] .smart-card-title{margin:0 0 6px!important}
body[data-page="documents"] .smart-card-title small{display:none!important}
body[data-page="documents"] .smart-line-form{gap:8px!important}
body[data-page="documents"] .smart-help{margin-top:7px!important;padding:8px 10px!important;border-radius:12px!important}
body[data-page="documents"] .smart-lines-wrap{padding:10px!important;margin:0 0 8px!important;border-radius:16px!important}
body[data-page="documents"] .smart-lines-head{margin-bottom:8px!important}
body[data-page="documents"] .smart-lines{gap:5px!important}
body[data-page="documents"] .smart-line-card{grid-template-columns:minmax(0,1fr) 78px 94px 82px 96px auto!important;gap:6px!important;padding:6px 8px!important;border-radius:10px!important}
body[data-page="documents"] .smart-line-main small{gap:4px!important;margin-top:2px!important}
body[data-page="documents"] .smart-badge{padding:2px 6px!important;font-size:10.5px!important}
body[data-page="documents"] .smart-line-card label{gap:2px!important;font-size:10px!important;letter-spacing:0!important}
body[data-page="documents"] .smart-line-card input{min-height:34px!important;border-radius:9px!important;padding:6px 7px!important}
body[data-page="documents"] .smart-line-total{font-size:.95rem!important}
body[data-page="documents"] .smart-line-actions .btn{min-height:32px!important;border-radius:9px!important;padding:6px 8px!important}
body[data-page="documents"] .document-confirm-grid{gap:8px!important;margin-bottom:8px!important}
body[data-page="documents"] .document-save-checklist{padding:9px!important;border-radius:14px!important;gap:6px!important}
body[data-page="documents"] .document-save-checklist.is-clean{display:none!important}
body[data-page="documents"] .document-save-checklist:not(.is-clean) .document-check-row.ok{display:none!important}
body[data-page="documents"] .document-check-row{padding:8px 10px!important;border-radius:12px!important}
body[data-page="documents"] .doc-summary{display:flex!important;justify-content:flex-end!important;gap:8px!important;background:transparent!important;color:#17191d!important;margin:2px 0 8px!important;padding:0!important;border-radius:0!important}
body[data-page="documents"] .doc-summary div{min-width:130px!important;border:1px solid rgba(224,207,179,.95)!important;background:#fffdf8!important;border-radius:10px!important;padding:7px 10px!important;font-size:.8rem!important;color:#6f665c!important}
body[data-page="documents"] .doc-summary strong{display:block!important;margin-top:2px!important;font-size:.95rem!important;color:#111214!important}
body[data-page="documents"] form[data-document-form="1"]:not(.document-details-open) .document-closed-day-option{display:none!important}
body[data-page="documents"] form[data-document-form="1"]:not(.document-details-open) .document-confirm-grid{grid-template-columns:1fr!important}
body[data-page="documents"] form[data-document-form="1"].document-review-clean:not(.document-details-open) .document-confirm-grid{display:none!important}
body[data-page="documents"] .wizard-card .subtle-box{display:none!important}
body[data-page="documents"] .wizard-card .sticky-actions{margin-top:8px!important}
body[data-page="documents"] .document-field-hidden{display:none!important}
body[data-page="documents"] .document-advanced-hidden{display:none!important}
body[data-page="documents"] .document-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
body[data-page="documents"] .document-details-toggle{min-height:38px!important;border-radius:999px!important;padding:0 13px!important;white-space:nowrap}
body[data-page="documents"] .document-details-toggle.active{background:#17191d!important;color:#fff!important;border-color:#17191d!important}
body[data-page="documents"] .quick-line-form .smart-search-field input[type="search"]{padding-right:150px!important}
body[data-page="documents"] .smart-inline-actions{position:absolute;right:6px;bottom:6px;display:flex;gap:4px;z-index:3}
body[data-page="documents"] .smart-inline-actions .btn{min-height:30px!important;padding:5px 8px!important;border-radius:9px!important;font-size:.72rem!important;line-height:1!important;white-space:nowrap}
@media(min-width:1000px){body[data-page="documents"] .wizard-card .wizard-step .grid-form{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:760px){body[data-page="documents"] .document-head-actions{display:grid;grid-template-columns:1fr;align-items:stretch}body[data-page="documents"] .document-details-toggle{width:100%}body[data-page="documents"] .quick-line-form .smart-search-field input[type="search"]{padding-right:11px!important}body[data-page="documents"] .smart-inline-actions{position:static;margin-top:6px;display:grid;grid-template-columns:1fr 1fr}body[data-page="documents"] .smart-inline-actions .btn{min-height:36px!important}}
@media(max-width:760px){body[data-page="documents"] .smart-line-card{padding:8px!important;border-radius:14px!important}body[data-page="documents"] .smart-line-card input{min-height:42px!important;padding:9px 11px!important}body[data-page="documents"] .smart-line-total{text-align:left!important}}
body[data-page="documents"] .smart-doc-intro{display:none!important}
body[data-page="documents"] .smart-entry{border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;margin:0 0 6px!important;box-shadow:none!important}
body[data-page="documents"] .smart-entry-tabs,
body[data-page="documents"] .smart-card-title{display:none!important}
body[data-page="documents"] .smart-panel:not([data-smart-panel="quick"]){display:none!important}
body[data-page="documents"] .smart-panel[data-smart-panel="quick"]{display:block!important}
body[data-page="documents"] .smart-help{border:0!important;background:transparent!important;border-radius:0!important;padding:3px 1px!important;margin-top:3px!important;font-size:.82rem!important;line-height:1.22!important;color:#6b6258!important}
body[data-page="documents"] .smart-help:empty{display:none!important}
body[data-page="documents"] .smart-help.warning{border:1px solid #f2b5ad!important;background:#fff4f2!important;border-radius:10px!important;padding:7px 9px!important;color:#84251b!important}
body[data-page="documents"] #smartClearEmpty{display:none!important}
body[data-page="documents"] form[data-document-form="1"]:not(.has-smart-lines) .wizard-step[data-step="3"]{display:none!important}
body[data-page="documents"] .smart-empty-lines{padding:7px 10px!important;text-align:left!important;background:transparent!important;border-radius:10px!important}
body[data-page="documents"] .smart-inline-actions{opacity:0;pointer-events:none;transition:opacity .12s ease}
body[data-page="documents"] .smart-search-field:focus-within .smart-inline-actions{opacity:1;pointer-events:auto}
body[data-page="documents"] .quick-line-form .smart-search-field input[type="search"]{padding-right:11px!important}
body[data-page="documents"] .smart-inline-actions{display:none!important}
body[data-page="documents"] .modal-card{width:min(720px,96vw)!important;max-height:86vh!important;padding:14px!important;border-radius:18px!important;overflow:auto!important}
body[data-page="documents"] .modal-card .page-head{margin-bottom:8px!important}
body[data-page="documents"] .modal-card .page-head h2{font-size:1.05rem!important;margin:0!important}
body[data-page="documents"] .modal-card .page-head p{display:none!important}
body[data-page="documents"] .modal-card .grid-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body[data-page="documents"] .modal-card label{font-size:.82rem!important;gap:4px!important}
body[data-page="documents"] .modal-card input,body[data-page="documents"] .modal-card select,body[data-page="documents"] .modal-card textarea{min-height:36px!important;border-radius:10px!important;padding:7px 9px!important;font-size:.92rem!important}
body[data-page="documents"] .modal-card .actions{padding-top:2px!important}
@media(max-width:760px){body[data-page="documents"] .modal-card .grid-form{grid-template-columns:1fr!important}}
body[data-page="documents"] .wizard-card,
body[data-page="documents"] .wizard-card form[data-document-form="1"],
body[data-page="documents"] .wizard-card .wizard-step,
body[data-page="documents"] .smart-entry,
body[data-page="documents"] .smart-search-field,
body[data-page="documents"] .mini-actions,
body[data-page="documents"] .s360-smart-select{overflow:visible!important}
body[data-page="documents"] .wizard-card .wizard-step{position:relative;z-index:1}
body[data-page="documents"] .wizard-card .wizard-step:focus-within{z-index:50}
body[data-page="documents"] .wizard-card .wizard-step[data-step="2"]:focus-within{z-index:60}
body[data-page="documents"] .smart-results,
body[data-page="documents"] .s360-smart-list{z-index:9000!important}
@media(min-width:761px){body[data-page="documents"] .smart-results,body[data-page="documents"] .s360-smart-list{max-height:min(360px,44vh)!important}}
body[data-page="documents"] .quick-line-form .smart-search-field input[type="search"]{padding-right:230px!important}
body[data-page="documents"] .smart-inline-actions{position:absolute!important;right:6px!important;bottom:6px!important;display:flex!important;grid-template-columns:none!important;gap:4px!important;opacity:1!important;pointer-events:auto!important;z-index:4}
body[data-page="documents"] .smart-inline-actions .btn{min-height:30px!important;padding:5px 7px!important;border-radius:8px!important;font-size:.72rem!important;line-height:1!important;white-space:nowrap!important}
body[data-page="documents"] .document-save-checklist{display:none!important}
body[data-page="documents"] form[data-document-form="1"]:not(.document-details-open):not(.document-confirm-needed) .document-confirm-grid{display:none!important}
body[data-page="documents"] .document-confirm-grid{grid-template-columns:1fr!important}
body[data-page="documents"] .smart-line-card{grid-template-columns:minmax(0,1fr) 68px 86px 76px 82px 94px auto!important;gap:5px!important;padding:5px 7px!important;border-radius:9px!important}
body[data-page="documents"] .smart-line-vat,body[data-page="documents"] .smart-line-total{display:grid!important;gap:1px!important;text-align:right!important;font-weight:900!important;color:#17191d!important}
body[data-page="documents"] .smart-line-vat span,body[data-page="documents"] .smart-line-total span{font-size:10px!important;text-transform:uppercase!important;color:#7a7065!important;font-weight:900!important}
body[data-page="documents"] .smart-line-vat strong,body[data-page="documents"] .smart-line-total strong{font-size:.9rem!important;line-height:1.12!important}
body[data-page="documents"] .smart-line-card label:not(.has-discount) input[data-edit="disc"]{color:#8b8176!important}
@media(max-width:760px){body[data-page="documents"] .quick-line-form .smart-search-field input[type="search"]{padding-right:11px!important}body[data-page="documents"] .smart-inline-actions{position:static!important;margin-top:6px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}body[data-page="documents"] .smart-line-card{grid-template-columns:1fr!important}body[data-page="documents"] .smart-line-vat,body[data-page="documents"] .smart-line-total{text-align:left!important}}
body[data-page="documents"] .document-entry-head{align-items:end!important;margin:0 0 -1px!important;padding:0 18px!important}
body[data-page="documents"] .document-entry-head>div:first-child{padding-bottom:10px!important}
body[data-page="documents"] .document-head-actions{align-items:end!important;gap:12px!important}
body[data-page="documents"] .document-preset-strip{border-color:#17191d!important;border-radius:14px 14px 0 0!important;box-shadow:none!important;overflow:hidden!important;background:#fffdf8!important}
body[data-page="documents"] .document-preset-chip{min-height:44px!important;min-width:148px!important;border-left:1px solid #17191d!important;border-bottom:0!important;border-radius:0!important;background:#fffdf8!important;font-size:1rem!important}
body[data-page="documents"] .document-preset-chip:first-child{border-left:0!important}
body[data-page="documents"] .document-preset-chip.active{background:#f4fff8!important;box-shadow:inset 0 3px 0 #17191d!important}
body[data-page="documents"] .document-details-toggle{align-self:stretch!important;min-height:44px!important;border-radius:14px 14px 0 0!important;background:#17191d!important;color:#fff!important;border-color:#17191d!important;padding:0 22px!important;font-size:1rem!important}
body[data-page="documents"] .wizard-card{border-color:#17191d!important;border-radius:16px!important;background:#fbfffb!important}
body[data-page="documents"] .mini-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:6px!important;align-items:center!important}
body[data-page="documents"] .mini-actions .s360-smart-select{min-width:0!important}
body[data-page="documents"] .mini-actions .btn.small{align-self:center!important;min-height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
body[data-page="documents"] .smart-inline-actions{top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;align-items:center!important}
body[data-page="documents"] .smart-results{max-height:min(520px,58vh)!important}
body[data-page="documents"] .s360-smart-list{max-height:min(520px,58vh)!important}
@media(max-width:760px){body[data-page="documents"] .document-entry-head{display:grid!important;padding:0!important;margin:0 0 8px!important}body[data-page="documents"] .document-entry-head>div:first-child{padding-bottom:0!important}body[data-page="documents"] .document-head-actions{display:grid!important;gap:6px!important}body[data-page="documents"] .document-preset-strip{border-radius:12px!important}body[data-page="documents"] .document-preset-chip{min-width:0!important;min-height:38px!important;font-size:.84rem!important}body[data-page="documents"] .document-details-toggle{border-radius:12px!important;min-height:38px!important}body[data-page="documents"] .mini-actions{grid-template-columns:1fr!important}body[data-page="documents"] .smart-inline-actions{transform:none!important}}
/* v3.415: Novi dokument kao kompaktan knjigovodstveni radni ekran. */
@media(min-width:900px){
body[data-page="documents"] .document-entry-head{min-height:62px!important;margin:0 0 -1px!important;padding:0 18px!important;align-items:end!important;position:relative!important;z-index:25!important}
body[data-page="documents"] .document-entry-head>div:first-child{padding-bottom:8px!important}
body[data-page="documents"] .document-entry-head h1{font-size:25px!important;line-height:1.05!important}
body[data-page="documents"] .document-entry-head p{font-size:.78rem!important;margin-top:2px!important}
body[data-page="documents"] .document-head-actions{align-items:end!important;gap:10px!important}
body[data-page="documents"] .document-preset-strip{border:2px solid #17191d!important;border-bottom:0!important;border-radius:13px 13px 0 0!important;box-shadow:none!important}
body[data-page="documents"] .document-preset-chip{min-width:132px!important;min-height:40px!important;border-left:1px solid #17191d!important;font-size:.96rem!important}
body[data-page="documents"] .document-details-toggle{align-self:center!important;min-height:18px!important;border-radius:999px!important;background:#ed1c24!important;border-color:#ed1c24!important;color:#fff!important;padding:0 12px!important;font-size:.52rem!important;text-transform:uppercase!important;letter-spacing:.04em!important}
body[data-page="documents"] .document-details-toggle.active{background:#17191d!important;border-color:#17191d!important}
body[data-page="documents"] .wizard-card{height:clamp(510px,calc(100dvh - 165px),760px)!important;display:block!important;overflow:hidden!important;border:2px solid #17191d!important;border-radius:14px!important;background:#f6fff8!important;padding:0!important;box-shadow:none!important}
body[data-page="documents"] .wizard-card form[data-document-form="1"]{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important;position:relative!important}
body[data-page="documents"] .wizard-step[data-step="1"]{grid-row:1!important;display:block!important;max-height:142px!important;overflow:visible!important;background:#f6fff8!important;border-bottom:1px solid rgba(23,25,29,.14)!important;padding:10px 16px 8px!important;z-index:20!important}
body[data-page="documents"] form.document-details-open .wizard-step[data-step="1"]{max-height:238px!important;overflow:auto!important}
body[data-page="documents"] .wizard-step[data-step="1"] .grid-form{display:grid!important;grid-template-columns:minmax(300px,1.35fr) minmax(190px,.72fr) minmax(200px,.72fr)!important;gap:5px 12px!important;align-items:end!important}
body[data-page="documents"] .wizard-step[data-step="1"] .actions{display:none!important}
body[data-page="documents"] .wizard-step[data-step="1"] label{font-size:.76rem!important;line-height:1.12!important}
body[data-page="documents"] .wizard-step[data-step="1"] input,
body[data-page="documents"] .wizard-step[data-step="1"] select,
body[data-page="documents"] .wizard-step[data-step="1"] .s360-smart-input{min-height:34px!important;border-radius:8px!important;padding:6px 9px!important;font-size:.91rem!important}
body[data-page="documents"] .document-field-customer_id{order:10!important}
body[data-page="documents"] .document-field-due_date{order:20!important}
body[data-page="documents"] .document-field-payment_status{order:30!important}
body[data-page="documents"] .document-field-payment_account_id{order:40!important}
body[data-page="documents"] .document-field-payment_method{order:50!important}
body[data-page="documents"] .document-field-issue_date{order:60!important}
body[data-page="documents"] .mini-actions{grid-template-columns:minmax(0,1fr) auto auto!important;gap:5px!important}
body[data-page="documents"] .mini-actions .btn.small{min-height:34px!important;border-radius:8px!important;padding:6px 9px!important}
body[data-page="documents"] .due-date-quick{gap:4px!important}
body[data-page="documents"] .due-date-buttons{display:none!important}
body[data-page="documents"] .wizard-step[data-step="2"]{grid-row:2!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:visible!important;background:#f6fff8!important;border-top:0!important;padding:8px 16px 0!important;z-index:10!important}
body[data-page="documents"] .wizard-step[data-step="2"] .actions{display:none!important}
body[data-page="documents"] .wizard-step[data-step="2"] .smart-entry{grid-row:1!important;margin:0!important;padding:0 0 7px!important;border-bottom:2px solid #00a8d5!important;background:transparent!important}
body[data-page="documents"] .quick-line-form{grid-template-columns:minmax(420px,1fr) 120px 138px 120px 84px!important;gap:6px!important;align-items:end!important}
body[data-page="documents"] .quick-line-form label{font-size:.78rem!important;line-height:1.12!important}
body[data-page="documents"] .quick-line-form input{min-height:34px!important;border-radius:8px!important;padding:6px 9px!important}
body[data-page="documents"] .quick-line-form .smart-search-field input[type="search"]{padding-right:224px!important}
body[data-page="documents"] .smart-inline-actions{display:flex!important;opacity:1!important;pointer-events:auto!important;right:5px!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important}
body[data-page="documents"] .smart-inline-actions .btn{min-height:26px!important;padding:4px 7px!important;border-radius:7px!important;font-size:.68rem!important}
body[data-page="documents"] .smart-add-btn{min-height:34px!important;border-radius:8px!important;padding:6px 10px!important}
body[data-page="documents"] .smart-help:not(.warning){display:none!important}
body[data-page="documents"] .smart-results,
body[data-page="documents"] .s360-smart-list{z-index:20000!important;top:calc(100% + 3px)!important;max-height:min(430px,52vh)!important;border-radius:10px!important;padding:4px!important}
body[data-page="documents"] .smart-result{min-height:40px!important;padding:6px 8px!important;border-radius:8px!important;grid-template-columns:58px minmax(0,1fr) 74px!important}
body[data-page="documents"] .smart-result-title strong{font-size:.86rem!important}
body[data-page="documents"] .smart-result-title small{font-size:.74rem!important}
body[data-page="documents"] .smart-lines-wrap{grid-row:2!important;min-height:0!important;height:100%!important;display:grid!important;grid-template-rows:28px minmax(0,1fr)!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
body[data-page="documents"] .smart-lines-head{height:28px!important;min-height:28px!important;margin:0!important;padding:4px 8px!important;border-bottom:1px solid rgba(23,25,29,.36)!important}
body[data-page="documents"] .smart-lines-head strong{font-size:.86rem!important}
body[data-page="documents"] .smart-lines-head small{display:none!important}
body[data-page="documents"] .smart-lines{min-height:0!important;overflow:auto!important;align-content:start!important;padding:0!important;gap:0!important;scrollbar-width:thin!important}
body[data-page="documents"] .smart-line-card{min-height:34px!important;grid-template-columns:minmax(0,1fr) 64px 88px 74px 80px 98px 70px!important;gap:5px!important;align-items:center!important;padding:4px 6px!important;border-radius:0!important;border-width:0 0 1px!important;border-color:rgba(23,25,29,.3)!important;background:transparent!important;box-shadow:none!important}
body[data-page="documents"] .smart-line-main strong{font-size:.86rem!important;line-height:1.12!important}
body[data-page="documents"] .smart-line-main small{display:none!important}
body[data-page="documents"] .smart-line-card label{gap:1px!important;font-size:.62rem!important;letter-spacing:0!important}
body[data-page="documents"] .smart-line-card input{min-height:26px!important;border-radius:6px!important;padding:3px 6px!important;font-size:.78rem!important}
body[data-page="documents"] .smart-line-vat span,
body[data-page="documents"] .smart-line-total span{font-size:.58rem!important}
body[data-page="documents"] .smart-line-vat strong,
body[data-page="documents"] .smart-line-total strong{font-size:.82rem!important}
body[data-page="documents"] .smart-line-actions .btn{min-height:26px!important;border-radius:7px!important;padding:4px 6px!important;font-size:.72rem!important}
body[data-page="documents"] .smart-empty-lines{border:0!important;border-bottom:1px solid rgba(23,25,29,.25)!important;border-radius:0!important;background:transparent!important;padding:8px 10px!important}
body[data-page="documents"] .wizard-step[data-step="3"]{grid-row:3!important;min-height:100px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 340px!important;grid-template-rows:minmax(0,1fr) auto!important;gap:6px 14px!important;align-items:end!important;overflow:hidden!important;background:#f6fff8!important;border-top:2px solid #00a8d5!important;padding:8px 16px 10px!important;z-index:15!important}
body[data-page="documents"] form[data-document-form="1"]:not(.has-smart-lines) .wizard-step[data-step="3"]{display:grid!important}
body[data-page="documents"] .document-confirm-grid{grid-column:1!important;grid-row:1 / span 2!important;align-self:stretch!important;overflow:auto!important;margin:0!important}
body[data-page="documents"] form[data-document-form="1"]:not(.document-details-open):not(.document-confirm-needed) .document-confirm-grid{display:none!important}
body[data-page="documents"] .wizard-step[data-step="3"]>.subtle-box{display:none!important}
body[data-page="documents"] .document-closed-day-option{display:none!important}
body[data-page="documents"] .customer-risk-pill{grid-column:1!important;grid-row:1!important;align-self:end!important;display:block!important;width:100%!important;max-width:100%!important;border:0!important;background:transparent!important;color:#ed1c24!important;border-radius:0!important;padding:0 0 2px 10px!important;font-size:1.06rem!important;font-weight:950!important;line-height:1.18!important;white-space:normal!important}
body[data-page="documents"] .customer-risk-pill[hidden]{display:none!important}
body[data-page="documents"] .doc-summary{grid-column:2!important;grid-row:1!important;align-self:end!important;display:grid!important;grid-template-columns:1fr!important;gap:0!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;color:#17191d!important}
body[data-page="documents"] .doc-summary div{display:flex!important;justify-content:space-between!important;gap:18px!important;min-width:0!important;border:0!important;background:transparent!important;border-radius:0!important;padding:1px 0!important;font-size:1.08rem!important;color:#17191d!important}
body[data-page="documents"] .doc-summary strong{display:inline!important;margin:0!important;min-width:118px!important;text-align:right!important;font-size:1.08rem!important;color:#17191d!important}
body[data-page="documents"] .sticky-actions{grid-column:1 / -1!important;grid-row:2!important;display:flex!important;justify-content:flex-end!important;gap:10px!important;margin:4px 0 0!important;padding-top:6px!important;border-top:1px solid rgba(23,25,29,.12)!important}
body[data-page="documents"] .sticky-actions .btn{min-width:150px!important;min-height:34px!important;border-radius:9px!important}
body[data-page="documents"] #saveDocumentButton{text-transform:uppercase!important}
body[data-page="documents"] form[data-document-form="1"]:not(.document-can-save) #saveDocumentButton,
body[data-page="documents"] form[data-document-form="1"]:not(.document-can-save) #saveDraftButton{opacity:.45!important;filter:grayscale(.65)!important}
}
/* v3.417: stabilniji operaterski obrazac za Novi dokument. */
@media(min-width:900px){
body[data-page="documents"] .document-entry-head{min-height:54px!important;padding:0 16px!important}
body[data-page="documents"] .document-entry-head p{display:none!important}
body[data-page="documents"] .document-head-actions{gap:8px!important}
body[data-page="documents"] .document-preset-strip{border-width:1px!important;border-bottom:0!important}
body[data-page="documents"] .document-preset-chip{min-width:124px!important;min-height:38px!important;font-size:.92rem!important}
body[data-page="documents"] .document-details-toggle{align-self:stretch!important;min-height:38px!important;border-radius:12px 12px 0 0!important;background:#17191d!important;border-color:#17191d!important;color:#fff!important;padding:0 18px!important;font-size:.9rem!important;text-transform:none!important;letter-spacing:0!important}
body[data-page="documents"] .wizard-card{height:clamp(520px,calc(100dvh - 148px),760px)!important;border-width:1.5px!important;border-radius:13px!important;background:#f8fffa!important}
body[data-page="documents"] .wizard-step[data-step="1"]{max-height:136px!important;padding:8px 14px 7px!important;background:#f8fffa!important}
body[data-page="documents"] form.document-details-open .wizard-step[data-step="1"]{max-height:255px!important}
body[data-page="documents"] .wizard-step[data-step="1"] .grid-form{grid-template-columns:minmax(360px,1.45fr) minmax(210px,.76fr) minmax(185px,.66fr) minmax(215px,.74fr)!important;gap:5px 10px!important}
body[data-page="documents"] .wizard-step[data-step="1"] label{font-size:.74rem!important}
body[data-page="documents"] .wizard-step[data-step="1"] input,
body[data-page="documents"] .wizard-step[data-step="1"] select,
body[data-page="documents"] .wizard-step[data-step="1"] .s360-smart-input{min-height:32px!important;border-radius:7px!important;padding:5px 8px!important;font-size:.89rem!important}
body[data-page="documents"] .document-field-customer_id{grid-column:span 2!important}
body[data-page="documents"] .document-field-due_date{grid-column:span 1!important}
body[data-page="documents"] .document-field-payment_status{grid-column:span 1!important}
body[data-page="documents"] .document-field-payment_account_id,
body[data-page="documents"] .document-field-payment_method,
body[data-page="documents"] .document-field-paid_amount{grid-column:span 1!important}
body[data-page="documents"] .due-date-buttons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important}
body[data-page="documents"] .due-date-buttons .btn{min-height:24px!important;padding:3px 5px!important;border-radius:7px!important;font-size:.72rem!important;line-height:1!important}
body[data-page="documents"] .mini-actions{grid-template-columns:minmax(0,1fr) auto auto!important}
body[data-page="documents"] .mini-actions .btn.small{min-height:32px!important;padding:5px 8px!important}
body[data-page="documents"] .wizard-step[data-step="2"]{padding:7px 14px 0!important;background:#f8fffa!important}
body[data-page="documents"] .wizard-step[data-step="2"] .smart-entry{padding:0 0 6px!important}
body[data-page="documents"] .quick-line-form{grid-template-columns:minmax(430px,1fr) 108px 126px 104px 76px!important;gap:5px!important}
body[data-page="documents"] .quick-line-form input{min-height:32px!important;border-radius:7px!important;padding:5px 8px!important}
body[data-page="documents"] .quick-line-form .smart-search-field input[type="search"]{padding-right:218px!important}
body[data-page="documents"] .smart-inline-actions{right:4px!important}
body[data-page="documents"] .smart-inline-actions .btn{min-height:24px!important;padding:3px 6px!important;border-radius:6px!important;font-size:.66rem!important}
body[data-page="documents"] .smart-add-btn{min-height:32px!important;border-radius:7px!important;padding:5px 8px!important}
body[data-page="documents"] .smart-results,
body[data-page="documents"] .s360-smart-list{max-height:min(280px,38vh)!important;border-radius:8px!important}
body[data-page="documents"] .smart-result{min-height:34px!important;padding:5px 7px!important;grid-template-columns:52px minmax(0,1fr) 70px!important}
body[data-page="documents"] .smart-lines-wrap{grid-template-rows:24px minmax(0,1fr)!important}
body[data-page="documents"] .smart-lines-head{height:24px!important;min-height:24px!important;padding:3px 8px!important}
body[data-page="documents"] .smart-line-card{min-height:31px!important;grid-template-columns:minmax(0,1fr) 58px 82px 70px 72px 94px 66px!important}
body[data-page="documents"] .smart-line-card input{min-height:24px!important}
body[data-page="documents"] .wizard-step[data-step="3"]{min-height:96px!important;background:#f8fffa!important;padding:7px 14px 9px!important}
body[data-page="documents"] .customer-risk-pill{padding-left:8px!important;font-size:1rem!important}
body[data-page="documents"] .doc-summary div,
body[data-page="documents"] .doc-summary strong{font-size:1rem!important}
body[data-page="documents"] .sticky-actions .btn{min-height:32px!important;border-radius:8px!important}
}
@media(max-width:899px){
body[data-page="documents"] .document-entry-head p{display:none!important}
body[data-page="documents"] .due-date-buttons{display:grid!important}
}
/* v3.422: lista izbora se otvara nagore kad nema mjesta ispod polja. */
@media(min-width:761px){
body[data-page="documents"] .smart-results.open-up,
body[data-page="documents"] .s360-smart-list.open-up{top:auto!important;bottom:calc(100% + 3px)!important}
}
/* v3.423: brze akcije su aktivne samo kad imaju smisla. */
body[data-page="documents"] .mini-actions .btn.is-disabled,
body[data-page="documents"] .smart-inline-actions .btn.is-disabled,
body[data-page="documents"] .mini-actions .btn:disabled,
body[data-page="documents"] .smart-inline-actions .btn:disabled{opacity:.42!important;filter:grayscale(.45)!important;cursor:not-allowed!important}
body[data-page="documents"] .document-details-toggle.attention{background:#b42318!important;border-color:#b42318!important;color:#fff!important}
/* v3.439: izbor robe/usluge izlazi iz radnog okvira da se lista ne presijece. */
@media(min-width:761px){
body[data-page="documents"] .smart-results.is-fixed,
body[data-page="documents"] .s360-smart-list.is-fixed{position:fixed!important;right:auto!important;bottom:auto!important;z-index:30000!important}
}
body[data-page="documents"] .smart-result.manual .smart-result-type{background:#4b5563!important}
/* v3.448: fiksne liste imaju prioritet, popust se vidi samo kad postoji. */
body[data-page="documents"] .smart-add-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:end!important}
body[data-page="documents"] .smart-line-card .line-discount-field.no-discount{visibility:hidden!important}
body[data-page="documents"] .doc-summary div[hidden]{display:none!important}
body[data-page="documents"] .document-live-message{border:0!important;background:transparent!important;color:#5f5448!important;font-weight:850!important;line-height:1.18!important}
body[data-page="documents"] .document-live-message.warn{color:#ed1c24!important;font-weight:950!important}
body[data-page="documents"] .document-live-message.ok{color:#1f6f43!important}
body[data-page="documents"] .document-live-message[hidden]{display:none!important}
@media(min-width:761px){
body[data-page="documents"] .smart-results.is-fixed,
body[data-page="documents"] .s360-smart-list.is-fixed{position:fixed!important;right:auto!important;bottom:auto!important;z-index:30000!important}
body[data-page="documents"] .s360-smart-list.is-fixed{border-radius:8px!important;padding:4px!important;box-shadow:0 22px 64px rgba(20,16,10,.22)!important}
body[data-page="documents"] .s360-smart-list.is-fixed .s360-smart-option{min-height:34px!important;padding:5px 7px!important;border-radius:8px!important}
}
@media(min-width:900px){
body[data-page="documents"] .document-live-message{grid-column:1!important;grid-row:1!important;align-self:end!important;padding:0 0 2px 8px!important;font-size:1rem!important}
}
