*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:"Segoe UI",Tahoma,Arial,sans-serif;background:#eef1f4;color:#20252b;font-size:14px}.app-shell{min-height:100%;display:flex;flex-direction:column}.titlebar{height:34px;background:#f7f7f7;border-bottom:1px solid #c8cdd2;display:flex;align-items:center;padding:0 14px;font-size:13px}.titlebar .app-icon{font-weight:700;margin-right:8px;color:#b9181d}.menubar{height:42px;background:#fff;border-bottom:1px solid #b9bec4;display:flex;align-items:stretch;padding-left:8px;box-shadow:0 1px 3px rgba(0,0,0,.05)}.menu-item{position:relative}.menu-button,.menu-link{height:41px;display:flex;align-items:center;padding:0 16px;color:#222;text-decoration:none;border:0;background:transparent;font:inherit;cursor:pointer}.menu-button:hover,.menu-link:hover,.menu-item:focus-within>.menu-button{background:#e8edf2}.dropdown{display:none;position:absolute;left:0;top:41px;min-width:245px;background:#fff;border:1px solid #aeb4bb;box-shadow:0 6px 16px rgba(0,0,0,.18);z-index:30;padding:5px 0}.menu-item:hover .dropdown,.menu-item:focus-within .dropdown{display:block}.dropdown a{display:block;padding:9px 18px;color:#222;text-decoration:none;white-space:nowrap}.dropdown a:hover{background:#dfeaf7}.workspace{flex:1;padding:14px}.window{background:#fff;border:1px solid #bfc5cb;box-shadow:0 2px 8px rgba(0,0,0,.07);min-height:calc(100vh - 105px)}.window-title{padding:9px 12px;background:linear-gradient(#fafafa,#eceff2);border-bottom:1px solid #c7ccd1;font-weight:600}.toolbar{display:flex;gap:8px;align-items:center;padding:9px 11px;border-bottom:1px solid #d4d8dc;background:#f8f9fa;flex-wrap:wrap}.toolbar .spacer{flex:1}.content{padding:12px}.split{display:grid;grid-template-columns:360px minmax(0,1fr);gap:12px}.panel{border:1px solid #c7ccd1;background:#fbfbfc}.panel-title{padding:8px 10px;background:#eef1f4;border-bottom:1px solid #c7ccd1;font-weight:600}.panel-body{padding:10px}.form-grid{display:grid;grid-template-columns:120px 1fr;gap:8px 10px;align-items:center}.form-grid label{font-size:13px}.form-grid .full{grid-column:1/-1}.form-grid textarea{min-height:72px;resize:vertical}input,select,textarea{width:100%;font:inherit;padding:6px 7px;border:1px solid #aeb5bc;background:white;border-radius:2px}input:focus,select:focus,textarea:focus{outline:1px solid #4b84c4;border-color:#4b84c4}.btn,button.primary{border:1px solid #8e969e;background:linear-gradient(#fff,#e6e9ec);padding:7px 14px;border-radius:2px;cursor:pointer;color:#20252b;text-decoration:none;display:inline-block}.btn:hover,button.primary:hover{background:#e7eef6}.btn-accent{background:linear-gradient(#3d7fc0,#2f6ea9)!important;color:white!important;border-color:#2c6396!important}.table-wrap{overflow:auto;border:1px solid #c7ccd1;background:#fff}.data-table{width:100%;border-collapse:collapse;min-width:760px;font-size:13px}.data-table th{position:sticky;top:0;background:#e8ecef;text-align:left;font-weight:600;border-right:1px solid #c7ccd1;border-bottom:1px solid #aeb5bc;padding:7px 8px;white-space:nowrap}.data-table td{padding:6px 8px;border-right:1px solid #e0e3e6;border-bottom:1px solid #e2e5e8;white-space:nowrap}.data-table tr:nth-child(even) td{background:#fafbfc}.data-table tr:hover td{background:#eaf3ff}.num{text-align:right}.tag{display:inline-block;padding:2px 7px;border:1px solid #b7bdc3;background:#f3f4f5;border-radius:10px;font-size:12px}.status-ok{font-weight:600}.muted{color:#6b737b}.stats{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:12px}.stat{border:1px solid #c7ccd1;background:#fff;padding:10px 12px}.stat .value{font-size:22px;font-weight:600;margin-top:4px}.search-row{display:flex;gap:8px;max-width:620px}.help{padding:8px 10px;background:#fff8dc;border:1px solid #e2d398;margin-bottom:10px}.serial-box{max-height:180px;overflow:auto;border:1px solid #c7ccd1;background:#fff;padding:7px;line-height:1.8}.footer-note{font-size:12px;color:#737b83;margin-top:8px}@media(max-width:850px){.split{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.menubar{overflow-x:auto}.menu-button,.menu-link{padding:0 10px}.workspace{padding:6px}.window{min-height:calc(100vh - 90px)}}
.title-spacer{flex:1}.title-sep{margin:0 6px;color:#9299a0}.session-user{font-size:12px;color:#59616a}.menu-right{margin-left:auto}.dropdown-right{left:auto;right:0}.menu-separator{height:1px;background:#e1e4e7;margin:4px 0}.operation-layout{display:grid;grid-template-columns:minmax(420px,560px) minmax(460px,1fr);gap:12px;align-items:start}.side-stack{display:grid;gap:12px}.form-grid-wide{grid-template-columns:145px minmax(220px,1fr)}.toolbar-hint{font-size:12px;color:#6b737b}.product-picker{display:flex;gap:8px;align-items:center;width:min(760px,100%)}.product-picker select{flex:1}.picker-label{font-weight:600}.compact-stats{grid-template-columns:repeat(4,minmax(120px,1fr))}.small-value{font-size:18px!important}.big-action{min-width:190px;padding:9px 16px}.help-card{border:1px solid #d1d7dd;background:#f8fafc;padding:12px 14px}.help-card p{margin:7px 0 0;line-height:1.5;color:#5e6770}.info-row{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #e6e9ec}.info-row:last-child{border-bottom:0}.empty-state{padding:18px 8px;text-align:center;color:#7b838b;line-height:1.5}.required-zone{border-color:#4b84c4;background:#f7fbff}.no-pad{padding:0!important}.flat{border:0}.table-tools{display:flex;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #d4d8dc;background:#f8f9fa}.table-tools input{max-width:280px}.table-tools .muted{margin-left:auto}.check-col{width:42px}.selectable-table td:first-child,.selectable-table th:first-child{text-align:center}.selectable-table input[type=checkbox]{width:18px;height:18px}.panel-foot{padding:8px 10px;border-top:1px solid #d4d8dc;background:#fafbfc;color:#6b737b;font-size:12px}.empty-workspace{min-height:330px;border:1px dashed #b8c0c8;background:#fafbfc;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6f7880;gap:8px}.empty-workspace b{font-size:18px;color:#3d444b}.empty-workspace span{max-width:480px}.empty-icon{font-size:32px}.auth-body{min-height:100vh;margin:0;display:grid;place-items:center;background:#e9edf1;font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:#20252b}.auth-card{width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid #bfc5cb;box-shadow:0 10px 28px rgba(0,0,0,.12);padding:26px}.auth-card.wide{width:min(480px,calc(100vw - 32px))}.auth-brand{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #e0e3e6;margin-bottom:22px}.auth-brand div{display:flex;flex-direction:column}.auth-brand small{color:#6f7780;margin-top:3px}.auth-logo{width:38px;height:38px;display:grid;place-items:center;background:#b9181d;color:#fff;font-weight:700;font-size:20px}.auth-card h2{margin:0 0 6px}.field-label{display:block;font-size:13px;font-weight:600;margin:14px 0 5px}.auth-submit{width:100%;margin-top:18px;padding:10px}.notice{padding:10px 12px;border:1px solid;margin:12px 0}.notice.success{background:#eef8ef;border-color:#acd0b0;color:#286333}.notice.danger{background:#fff0f0;border-color:#dfa9a9;color:#8b2929}.split-users{grid-template-columns:390px minmax(0,1fr)}.status-pill{display:inline-block;padding:3px 8px;border-radius:10px;font-size:12px;font-weight:600}.status-pill.active{background:#eaf6ec;color:#276235;border:1px solid #b7d8be}.status-pill.passive{background:#f2f2f2;color:#727272;border:1px solid #d1d1d1}.click-row{cursor:pointer}.btn-small{padding:4px 8px}.compact-panel{max-width:600px}.identity-box{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:#f5f7f9;border:1px solid #d3d8dd;margin-bottom:14px}.identity-box span{color:#69717a;font-size:12px}.movement-badge{display:inline-block;padding:3px 8px;border-radius:9px;font-weight:600;font-size:12px}.movement-badge.in{background:#eaf6ec;color:#276235}.movement-badge.out{background:#fff0e8;color:#87451e}
@media(max-width:1050px){.operation-layout{grid-template-columns:1fr}.split-users{grid-template-columns:1fr}}@media(max-width:650px){.compact-stats{grid-template-columns:repeat(2,1fr)}.form-grid-wide{grid-template-columns:1fr}.form-grid-wide label{margin-top:4px}.session-user{display:none}}

.clickable-row{cursor:pointer}.clickable-row:hover td{background:#eef6ff}.small-empty{min-height:220px}

.product-search{font-weight:600}.filter-note{font-size:12px;color:#6b737b;margin-top:4px;min-height:15px}.product-picker{align-items:flex-start}.product-picker input{flex:1;min-width:220px}.product-picker select{flex:1;min-width:300px}.picker-actions{display:flex;flex-direction:column;gap:6px;min-width:110px}.check-line{display:flex!important;align-items:center;gap:8px}.check-line input{width:auto}.import-split{grid-template-columns:minmax(420px,1fr) minmax(480px,1fr)}.compact-import{min-width:600px}@media(max-width:1000px){.import-split{grid-template-columns:1fr}.product-picker{flex-wrap:wrap}.product-picker input,.product-picker select{min-width:100%}}

/* V3.0.1 - Stok hareketleri tablo kullanilabilirlik */
.top-scroll{overflow-x:auto;overflow-y:hidden;height:16px;border:1px solid #c7ccd1;border-bottom:0;background:#f8f9fa}
.top-scroll-inner{height:1px}
.history-table-wrap{border-top:1px solid #c7ccd1}
.movement-table{width:max-content;min-width:100%;table-layout:fixed}
.movement-table th:nth-child(1),.movement-table td:nth-child(1){width:58px;max-width:58px}
.movement-table th:nth-child(2),.movement-table td:nth-child(2){width:105px;max-width:105px}
.movement-table th:nth-child(3),.movement-table td:nth-child(3){width:78px;max-width:78px}
.movement-table th:nth-child(4),.movement-table td:nth-child(4){width:330px;max-width:330px}
.movement-table th:nth-child(5),.movement-table td:nth-child(5){width:180px;max-width:180px}
.movement-table th:nth-child(6),.movement-table td:nth-child(6){width:70px;max-width:70px}
.movement-table th:nth-child(7),.movement-table td:nth-child(7),
.movement-table th:nth-child(8),.movement-table td:nth-child(8),
.movement-table th:nth-child(9),.movement-table td:nth-child(9),
.movement-table th:nth-child(10),.movement-table td:nth-child(10){width:125px;max-width:125px}
.movement-table th:nth-child(11),.movement-table td:nth-child(11){width:180px;max-width:180px}
.movement-table th:nth-child(12),.movement-table td:nth-child(12),
.movement-table th:nth-child(13),.movement-table td:nth-child(13){width:130px;max-width:130px}
.movement-table th:nth-child(14),.movement-table td:nth-child(14){width:115px;max-width:115px}
.movement-table th:nth-child(15),.movement-table td:nth-child(15){width:115px;max-width:115px}
.movement-table th:nth-child(16),.movement-table td:nth-child(16){width:125px;max-width:125px}
.movement-table th:nth-child(17),.movement-table td:nth-child(17){width:240px;max-width:240px}
.movement-table td.product-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.movement-table td:nth-child(5),.movement-table td:nth-child(11),.movement-table td:nth-child(17){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* V3.0.2 - Yatay kaydırma yok, hareket tablosu tek ekrana sığar */
.history-table-wrap{
  width:100%;
  overflow-x:hidden !important;
}
.movement-table-fit{
  width:100% !important;
  table-layout:fixed !important;
  font-size:12px;
}
.movement-table-fit th,
.movement-table-fit td{
  padding:6px 5px;
  vertical-align:top;
  overflow:hidden;
}
.movement-table-fit th:nth-child(1),
.movement-table-fit td:nth-child(1){width:7%;}
.movement-table-fit th:nth-child(2),
.movement-table-fit td:nth-child(2){width:5%;}
.movement-table-fit th:nth-child(3),
.movement-table-fit td:nth-child(3){width:20%;}
.movement-table-fit th:nth-child(4),
.movement-table-fit td:nth-child(4){width:11%;}
.movement-table-fit th:nth-child(5),
.movement-table-fit td:nth-child(5){width:5%;}
.movement-table-fit th:nth-child(6),
.movement-table-fit td:nth-child(6){width:8%;}
.movement-table-fit th:nth-child(7),
.movement-table-fit td:nth-child(7){width:8%;}
.movement-table-fit th:nth-child(8),
.movement-table-fit td:nth-child(8){width:9%;}
.movement-table-fit th:nth-child(9),
.movement-table-fit td:nth-child(9){width:9%;}
.movement-table-fit th:nth-child(10),
.movement-table-fit td:nth-child(10){width:8%;}
.movement-table-fit th:nth-child(11),
.movement-table-fit td:nth-child(11){width:10%;}

.product-cell,
.ellipsis-cell,
.note-cell,
.user-cell{
  white-space:nowrap;
  text-overflow:ellipsis;
}
.doc-cell{
  white-space:nowrap;
  text-overflow:ellipsis;
}
.movement-table-fit .subline{
  font-size:10px;
  line-height:1.15;
  opacity:.75;
}
.movement-table-fit .num{
  text-align:right;
  white-space:nowrap;
}


/* V3.0.3 - Masaüstü benzeri çok pencereli kullanım */
.child-close{display:none;margin-left:12px;border:1px solid #aeb5bc;background:#fff;padding:4px 9px;cursor:pointer;font:inherit}
body.child-window .menubar{display:none}
body.child-window .workspace{padding:8px}
body.child-window .window{min-height:calc(100vh - 58px)}
body.child-window .child-close{display:inline-block}
body.child-window .session-user{display:none}
.menubar{user-select:none}
.menu-button{min-width:auto}
.home-stock-wrap{overflow-x:hidden}
.home-stock-table{min-width:0!important;width:100%;table-layout:fixed}
.home-stock-table th:nth-child(1),.home-stock-table td:nth-child(1){width:5%}
.home-stock-table th:nth-child(2),.home-stock-table td:nth-child(2){width:15%}
.home-stock-table th:nth-child(3),.home-stock-table td:nth-child(3){width:28%}
.home-stock-table th:nth-child(4),.home-stock-table td:nth-child(4){width:14%}
.home-stock-table th:nth-child(5),.home-stock-table td:nth-child(5){width:7%}
.home-stock-table th:nth-child(6),.home-stock-table td:nth-child(6){width:7%}
.home-stock-table th:nth-child(7),.home-stock-table td:nth-child(7){width:12%}
.home-stock-table th:nth-child(8),.home-stock-table td:nth-child(8){width:12%}
.home-stock-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-product-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.home-stock-table{font-size:12px}.home-stock-table th,.home-stock-table td{padding:5px 4px}}

/* V3.0.4 - Cari kart */
.firm-layout{display:grid;grid-template-columns:430px minmax(0,1fr);gap:12px;align-items:start}.firm-form-grid{grid-template-columns:155px minmax(0,1fr)}.required-info{padding:7px 9px;margin-bottom:10px;background:#fff8dc;border:1px solid #e2d398;font-size:12px}.req{color:#c51f25;font-weight:700}.align-top{align-self:start;padding-top:7px}.form-actions{display:flex;gap:8px}.delete-form{margin-top:14px;padding-top:12px;border-top:1px solid #e0e3e6;display:flex;gap:10px;align-items:center}.btn-danger{border-color:#b55!important;background:#fff0f0!important;color:#8b2929!important}.field-error{border-color:#c51f25!important;background:#fff4f4!important;outline:1px solid #c51f25!important}.firm-table-wrap{max-height:650px;overflow:auto}.firm-table{min-width:0!important;width:100%;table-layout:fixed;font-size:11px}.firm-table th,.firm-table td{padding:5px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.firm-table th:nth-child(1){width:4%}.firm-table th:nth-child(2){width:13%}.firm-table th:nth-child(3){width:12%}.firm-table th:nth-child(4){width:8%}.firm-table th:nth-child(5){width:9%}.firm-table th:nth-child(6){width:13%}.firm-table th:nth-child(7){width:6%}.firm-table th:nth-child(8){width:14%}.firm-table th:nth-child(9){width:8%}.firm-table th:nth-child(10){width:8%}.firm-table th:nth-child(11){width:7%}.filter-row th{top:29px;background:#f4f6f8;padding:3px}.filter-row input{padding:4px 5px;font-size:10px}.filter-row .btn{padding:4px 5px;font-size:10px}@media(max-width:1100px){.firm-layout{grid-template-columns:1fr}.firm-table-wrap{max-height:480px}}

.inline-select{display:flex;gap:6px;align-items:center}.inline-select select{flex:1;min-width:0}.btn.mini{padding:6px 8px;white-space:nowrap}.definition-split{grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr)}.product-split{grid-template-columns:minmax(390px,.85fr) minmax(620px,1.45fr)}.inline-form{display:inline}.btn.danger{border-color:#b44;color:#922}.compact-table td,.compact-table th{padding:6px}@media(max-width:1000px){.definition-split,.product-split{grid-template-columns:1fr}}


/* V3.0.8 - Kompakt Cari Kart */
.compact-cari-layout{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
}
.compact-cari-form .panel-body{
  padding:8px 10px !important;
}
.compact-cari-form .required-info{
  margin:0 0 6px 0 !important;
  font-size:11px !important;
}
.compact-cari-grid{
  display:grid !important;
  grid-template-columns:110px minmax(180px,1fr) 120px minmax(180px,1fr) !important;
  gap:5px 8px !important;
  align-items:center !important;
}
.compact-cari-grid label{
  margin:0 !important;
  font-size:12px !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
}
.compact-cari-grid input,
.compact-cari-grid select{
  height:28px !important;
  min-height:28px !important;
  padding:3px 6px !important;
  font-size:12px !important;
}
.compact-cari-grid .compact-actions{
  grid-column:1 / -1 !important;
  display:flex !important;
  justify-content:flex-end !important;
  gap:6px !important;
  margin-top:2px !important;
}
.compact-cari-grid .compact-actions .btn,
.compact-cari-grid .compact-actions button{
  min-width:90px !important;
  padding:5px 10px !important;
}
.compact-cari-form .delete-form{
  margin-top:4px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
.compact-cari-form .delete-form .muted{
  font-size:10px !important;
}
.compact-cari-layout .firm-list-panel .panel-body{
  padding-top:0 !important;
}
.compact-cari-layout .firm-table th,
.compact-cari-layout .firm-table td{
  padding-top:4px !important;
  padding-bottom:4px !important;
  font-size:11px !important;
}
.compact-cari-layout .filter-row input{
  height:24px !important;
  padding:2px 4px !important;
  font-size:10px !important;
}
@media(max-width:1050px){
  .compact-cari-grid{
    grid-template-columns:105px minmax(180px,1fr) 105px minmax(180px,1fr) !important;
  }
}
@media(max-width:780px){
  .compact-cari-grid{
    grid-template-columns:105px 1fr !important;
  }
}


/* V3.0.9 - Cari kart kesin kompakt düzen */
.cari-compact-grid{
  display:grid !important;
  grid-template-columns:130px minmax(220px,1fr) 130px minmax(220px,1fr) !important;
  gap:5px 10px !important;
  align-items:center !important;
}
.cari-compact-grid label{
  margin:0 !important;
  padding:0 !important;
  font-size:12px !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
.cari-compact-grid input,
.cari-compact-grid select{
  width:100% !important;
  box-sizing:border-box !important;
  height:27px !important;
  min-height:27px !important;
  padding:2px 6px !important;
  margin:0 !important;
  font-size:12px !important;
}
.cari-actions{
  grid-column:1 / -1 !important;
  display:flex !important;
  gap:6px !important;
  justify-content:flex-end !important;
  margin-top:2px !important;
}
.compact-required{
  font-size:10px !important;
  padding:0 !important;
  margin:0 0 4px 0 !important;
}
.firm-form-panel .panel-body{
  padding:6px 10px !important;
}
.firm-form-panel .panel-title{
  padding:5px 10px !important;
  min-height:auto !important;
}
.firm-list-panel{
  margin-top:0 !important;
}
@media(max-width:900px){
  .cari-compact-grid{
    grid-template-columns:110px 1fr !important;
  }
}


/* V3.0.11 - Cari kart ekstra kompakt */
.cari-ultra-compact{
  grid-template-columns:118px minmax(210px,1fr) 118px minmax(210px,1fr) !important;
  gap:3px 8px !important;
}
.cari-ultra-compact label{
  font-size:11px !important;
  line-height:1 !important;
}
.cari-ultra-compact input,
.cari-ultra-compact select{
  height:24px !important;
  min-height:24px !important;
  padding:1px 5px !important;
  font-size:11px !important;
}
.cari-ultra-compact .cari-actions{
  margin-top:0 !important;
  gap:4px !important;
}
.cari-ultra-compact .cari-actions button,
.cari-ultra-compact .cari-actions .btn{
  padding:4px 9px !important;
  min-height:25px !important;
  font-size:11px !important;
}
.firm-form-panel .panel-title{
  padding:3px 8px !important;
  font-size:11px !important;
}
.firm-form-panel .panel-body{
  padding:4px 8px !important;
}
.compact-required{
  margin:0 0 2px 0 !important;
  font-size:9px !important;
  line-height:1 !important;
}
.firm-list-panel .panel-title{
  padding:4px 8px !important;
  font-size:11px !important;
}
.firm-table th,
.firm-table td{
  padding:3px 5px !important;
  font-size:10px !important;
}
.firm-table .filter-row input{
  height:21px !important;
  min-height:21px !important;
  padding:1px 3px !important;
  font-size:9px !important;
}


/* V3.0.13 - alt pencereler sade */
body.child-window .titlebar{display:none!important}
body.child-window .window-title{display:none!important}
body.child-window .workspace{padding:4px!important}
body.child-window .window{min-height:calc(100vh - 8px)!important}
body.child-window .content{padding:5px!important}

/* Cari 3 kolon kompakt form */
.cari-3col-grid{
  display:grid!important;
  grid-template-columns:105px minmax(170px,1fr) 90px minmax(170px,1fr) 90px minmax(170px,1fr)!important;
  gap:3px 7px!important;
  align-items:center!important;
}
.cari-3col-grid label{
  font-size:10.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
  margin:0!important;
}
.cari-3col-grid input,
.cari-3col-grid select{
  height:23px!important;
  min-height:23px!important;
  font-size:10.5px!important;
  padding:1px 4px!important;
  box-sizing:border-box!important;
  width:100%!important;
}
.cari-3col-grid .span3-input{grid-column:2 / 6!important}
.cari-3col-grid .span2-input{grid-column:2 / 6!important}
.cari-actions-3col{
  grid-column:6 / 7!important;
  display:flex!important;
  justify-content:flex-end!important;
  gap:4px!important;
}
.cari-actions-3col button,.cari-actions-3col .btn{
  padding:3px 9px!important;
  min-height:24px!important;
  font-size:10.5px!important;
}
.firm-form-panel .panel-body{padding:4px 7px!important}
.firm-form-panel .panel-title{padding:3px 7px!important;font-size:10.5px!important}
.compact-required{font-size:9px!important;margin:0 0 2px 0!important;padding:0!important}

/* İşlem sütunu çerçeveden uzak */
.firm-table th:last-child,
.firm-table td:last-child{
  width:82px!important;
  min-width:82px!important;
  padding-left:6px!important;
  padding-right:8px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.firm-table td:last-child .btn,
.firm-table th:last-child .btn{
  max-width:100%!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
.firm-table-wrap{padding-right:3px!important;box-sizing:border-box!important}

@media(max-width:1100px){
  .cari-3col-grid{
    grid-template-columns:105px 1fr 95px 1fr!important;
  }
  .cari-3col-grid .span3-input,.cari-3col-grid .span2-input{grid-column:auto!important}
  .cari-actions-3col{grid-column:1 / -1!important}
}


/* V3.0.14 - Kargo kodu ve işlem sütunu düzeltmesi */
.cari-3col-grid .cargo-code-input{
  max-width:220px !important;
  justify-self:start !important;
}
.firm-table th:last-child,
.firm-table td:last-child{
  width:94px !important;
  min-width:94px !important;
  max-width:94px !important;
  padding:4px 8px !important;
  text-align:center !important;
  vertical-align:middle !important;
  overflow:visible !important;
}
.firm-table .firm-action-cell{
  position:relative !important;
  z-index:1 !important;
  background:inherit !important;
}
.firm-table .firm-action-cell .btn{
  display:inline-block !important;
  width:auto !important;
  min-width:58px !important;
  max-width:74px !important;
  margin:0 auto !important;
  padding:3px 7px !important;
  box-sizing:border-box !important;
}
.firm-table thead tr.filter-row th:last-child{
  position:relative !important;
  z-index:2 !important;
  background:#eef1f4 !important;
}
.firm-table thead tr.filter-row th:last-child .btn{
  display:inline-block !important;
  min-width:58px !important;
  max-width:74px !important;
  padding:3px 7px !important;
  margin:0 auto !important;
}


/* V3.0.15 - Kargo ve filtre temizle kesin düzeltme */
.cari-3col-grid .address-wide{
  grid-column:2 / 5 !important;
  width:100% !important;
}
.cari-3col-grid .cargo-code-input{
  grid-column:6 / 7 !important;
  width:180px !important;
  max-width:180px !important;
  justify-self:start !important;
}
.firm-table-toolbar{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  padding:3px 6px !important;
  border-bottom:1px solid #cfd4d9 !important;
  background:#f6f7f8 !important;
}
.firm-table-toolbar .btn{
  padding:3px 8px !important;
  font-size:10px !important;
}
.firm-table thead tr.filter-row th:last-child{
  background:#eef1f4 !important;
  position:static !important;
  z-index:auto !important;
}
.firm-table td:last-child,
.firm-table th:last-child{
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
  text-align:center !important;
  padding:3px 6px !important;
}
.firm-table .firm-action-cell .btn{
  min-width:58px !important;
  max-width:64px !important;
  margin:0 !important;
}


/* V3.0.16 - Filtre temizle filtre satirinda, duzgun hizali */
.firm-table thead tr.filter-row th:last-child{
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
  padding:3px 6px !important;
  text-align:center !important;
  vertical-align:middle !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.firm-table .clear-filter-btn{
  display:inline-block !important;
  width:62px !important;
  min-width:62px !important;
  max-width:62px !important;
  height:23px !important;
  padding:2px 4px !important;
  margin:0 !important;
  font-size:9.5px !important;
  line-height:17px !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
}
.firm-table tbody td:last-child{
  width:78px !important;
  min-width:78px !important;
  max-width:78px !important;
  padding:3px 6px !important;
  text-align:center !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.firm-table .firm-action-cell .btn{
  display:inline-block !important;
  width:62px !important;
  min-width:62px !important;
  max-width:62px !important;
  height:23px !important;
  padding:2px 4px !important;
  margin:0 !important;
  font-size:9.5px !important;
  line-height:17px !important;
  box-sizing:border-box !important;
}


/* V3.0.17 - Ürün ve tanım ekranları kompakt */
.product-split{
  grid-template-columns:minmax(430px,.85fr) minmax(650px,1.4fr)!important;
  gap:8px!important;
}
.product-compact-grid{
  display:grid!important;
  grid-template-columns:118px minmax(220px,1fr)!important;
  gap:4px 7px!important;
  align-items:center!important;
}
.product-compact-grid label{
  font-size:10.5px!important;
  margin:0!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.product-compact-grid input,
.product-compact-grid select,
.product-compact-grid textarea{
  width:100%!important;
  box-sizing:border-box!important;
  font-size:10.5px!important;
  min-height:24px!important;
  height:24px!important;
  padding:2px 5px!important;
  margin:0!important;
}
.product-compact-grid textarea{
  resize:vertical!important;
  height:34px!important;
  min-height:34px!important;
}
.product-compact-grid .inline-select{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 28px!important;
  gap:4px!important;
}
.product-compact-grid .inline-select .btn.mini{
  min-width:28px!important;
  width:28px!important;
  height:24px!important;
  padding:0!important;
  line-height:22px!important;
  font-size:13px!important;
}
.product-compact-grid .btn,
.product-compact-grid button{
  min-height:24px!important;
  padding:3px 8px!important;
  font-size:10.5px!important;
}
.product-list-panel .panel-body{
  padding:4px!important;
}
.product-table{
  table-layout:fixed!important;
  width:100%!important;
  font-size:10px!important;
}
.product-table th,
.product-table td{
  padding:3px 4px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.product-table th:nth-child(1){width:13%!important}
.product-table th:nth-child(2){width:25%!important}
.product-table th:nth-child(3){width:14%!important}
.product-table th:nth-child(4){width:12%!important}
.product-table th:nth-child(5){width:14%!important}
.product-table th:nth-child(6){width:7%!important}
.product-table th:nth-child(7){width:7%!important}
.product-table th:nth-child(8){width:8%!important}

.definition-split{
  grid-template-columns:minmax(260px,.7fr) minmax(420px,1.3fr)!important;
  gap:8px!important;
}
.definition-compact-grid{
  display:grid!important;
  grid-template-columns:100px minmax(180px,1fr)!important;
  gap:4px 7px!important;
  align-items:center!important;
}
.definition-compact-grid label{
  font-size:10.5px!important;
  margin:0!important;
}
.definition-compact-grid input,
.definition-compact-grid select{
  height:24px!important;
  min-height:24px!important;
  font-size:10.5px!important;
  padding:2px 5px!important;
}
.definition-compact-grid .btn,
.definition-compact-grid button{
  min-height:24px!important;
  padding:3px 8px!important;
  font-size:10.5px!important;
}
.definition-table{
  width:100%!important;
  table-layout:fixed!important;
  font-size:10px!important;
}
.definition-table th,
.definition-table td{
  padding:3px 4px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:1000px){
  .product-split,.definition-split{grid-template-columns:1fr!important}
}

/* V3.0.23 - tanım listeleri kompakt */
.compact-def-table th,.compact-def-table td,
.definition-table th,.definition-table td{
  padding-top:2px!important;
  padding-bottom:2px!important;
  height:25px!important;
  min-height:25px!important;
  vertical-align:middle!important;
}
.compact-def-btn{
  height:22px!important;
  min-height:22px!important;
  padding:2px 7px!important;
  font-size:9.5px!important;
  line-height:16px!important;
  box-sizing:border-box!important;
}
.compact-actions-cell{
  white-space:nowrap!important;
}
.compact-actions-cell .inline-form{
  display:inline!important;
}

/* V3.0.25 Yedek Parca */
.spare-content{padding:5px!important}
.spare-grid{display:grid;grid-template-columns:150px minmax(260px,1fr) 90px minmax(220px,1fr);gap:4px 8px;align-items:center}
.spare-grid label{font-size:10.5px;white-space:nowrap}
.spare-grid input,.spare-grid select{height:24px;min-height:24px;font-size:10.5px;padding:2px 5px;box-sizing:border-box;width:100%}
.spare-actions{display:flex;gap:5px;justify-content:flex-end}
.spare-searchbar{display:flex;gap:5px;justify-content:flex-end;padding:4px 6px;background:#f4f5f6;border-bottom:1px solid #ccd1d5}
.spare-searchbar input{width:280px;height:24px;font-size:10.5px;padding:2px 5px}
.spare-table{width:100%;table-layout:fixed;font-size:10px}
.spare-table th,.spare-table td{padding:3px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spare-table th:nth-child(1){width:4%}.spare-table th:nth-child(2){width:17%}.spare-table th:nth-child(3){width:16%}
.spare-table th:nth-child(4){width:12%}.spare-table th:nth-child(5){width:12%}.spare-table th:nth-child(6){width:10%}
.spare-table th:nth-child(7){width:10%}.spare-table th:nth-child(8){width:10%}.spare-table th:nth-child(9){width:9%}
@media(max-width:900px){.spare-grid{grid-template-columns:120px 1fr}}

/* V3.0.26 - Yedek parçada çoklu model */
.multi-model-box{
  border:1px solid #b8c0c8;
  background:#fff;
  max-height:108px;
  overflow:auto;
  padding:3px 5px;
  box-sizing:border-box;
}
.model-check{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:21px;
  font-size:10.5px;
  cursor:pointer;
}
.model-check input{
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
}

/* V3.0.27 - aranabilir model seçici */
.spare-grid-v2{display:grid;grid-template-columns:150px minmax(260px,1fr) 90px minmax(220px,1fr);gap:4px 8px;align-items:center}
.spare-grid-v2 label{font-size:10.5px;white-space:nowrap}
.spare-grid-v2 input,.spare-grid-v2 select{height:24px;min-height:24px;font-size:10.5px;padding:2px 5px;box-sizing:border-box;width:100%}
.model-picker-area{border:1px solid #c5cbd1;background:#fafbfc;padding:5px;min-height:95px}
.model-search-row{display:grid;grid-template-columns:1fr auto;gap:5px;margin-bottom:5px}
.model-candidates{display:flex;flex-wrap:wrap;gap:4px;max-height:96px;overflow:auto;padding:2px 0 5px 0;border-bottom:1px solid #dde2e6}
.candidate-model{border:1px solid #b7c0c8;background:#fff;padding:3px 7px;font-size:10px;cursor:pointer}
.candidate-model:hover{background:#eef4fb}.candidate-model.selected{background:#dcecff;border-color:#6d9ed3}
.selected-models-title{font-size:10px;font-weight:600;margin:5px 0 3px 0}.selected-models{display:flex;flex-wrap:wrap;gap:4px;min-height:24px}
.model-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid #9fb6cf;background:#eaf3fc;padding:2px 5px 2px 7px;border-radius:11px;font-size:10px}
.model-chip button{border:0;background:transparent;padding:0 2px;cursor:pointer;font-weight:bold}.model-hint{font-size:10px;color:#777;padding:4px}
@media(max-width:900px){.spare-grid-v2{grid-template-columns:120px 1fr}}

/* V3.0.28 - Yedek parça ekranından hızlı model ekleme */
.model-search-row{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) auto auto!important;
  gap:5px!important;
  align-items:center!important;
}
.model-search-row .btn{
  height:24px!important;
  min-height:24px!important;
  padding:2px 7px!important;
  font-size:10px!important;
  white-space:nowrap!important;
}

/* V3.0.29 - Yedek parça sunucu tarafı arama ve sayfalama */
.spare-searchbar{display:grid!important;grid-template-columns:minmax(260px,1fr) 95px auto auto!important;gap:5px!important;align-items:center!important;padding:4px 6px!important}
.spare-searchbar input{width:100%!important;min-width:0!important}
.per-page-select{height:24px!important;font-size:10.5px!important;padding:2px 4px!important}
.spare-list-info{font-size:10px;padding:4px 7px;background:#fbfbfb;border-bottom:1px solid #d9dde1;color:#555}
.spare-pager{display:flex;justify-content:center;align-items:center;gap:5px;padding:6px;border-top:1px solid #d4d9de;background:#f7f8f9}
.spare-pager .btn{min-width:58px;text-align:center}
.spare-pager .disabled{opacity:.45;pointer-events:none}
.pager-status{min-width:62px;text-align:center;font-size:10.5px;font-weight:600}

/* V3.0.30 - test verisi araçları */
.test-data-toolbar{
  display:flex;
  justify-content:flex-end;
  gap:5px;
  padding:4px 6px;
  background:#f7f8f9;
  border-bottom:1px solid #d8dde2;
}
.test-data-toolbar form{margin:0}
.test-data-toolbar .btn{
  height:24px!important;
  min-height:24px!important;
  font-size:10px!important;
  padding:2px 7px!important;
}

/* V3.0.31 - Müşteriye özel fiyat tanımlama */
.customer-price-content{padding:5px!important}
.customer-price-grid{
  display:grid;
  grid-template-columns:150px minmax(330px,1fr) 110px minmax(220px,.7fr);
  gap:5px 8px;
  align-items:center;
}
.customer-price-grid label{font-size:10.5px;white-space:nowrap}
.customer-price-grid input,.customer-price-grid select{
  font-size:10.5px;
  box-sizing:border-box;
}
.customer-price-grid>input,.customer-price-grid>select{
  height:24px;
  min-height:24px;
  padding:2px 5px;
}
.part-picker{
  display:grid;
  grid-template-rows:24px 112px;
  gap:4px;
}
.part-picker input{
  height:24px;
  padding:2px 5px;
}
.part-picker select{
  width:100%;
  padding:2px;
}
.lock-check{
  display:flex!important;
  align-items:center;
  gap:6px;
  font-weight:600;
}
.lock-check input{
  width:auto!important;
  height:auto!important;
  margin:0!important;
}
.customer-price-actions{
  display:flex;
  justify-content:flex-end;
  gap:5px;
}
.customer-price-filter{
  display:grid;
  grid-template-columns:260px minmax(280px,1fr) auto auto;
  gap:5px;
  padding:5px 6px;
  background:#f4f5f6;
  border-bottom:1px solid #ccd1d5;
}
.customer-price-filter input,.customer-price-filter select{
  height:24px;
  min-height:24px;
  font-size:10.5px;
  padding:2px 5px;
}
.customer-price-table{
  width:100%;
  table-layout:fixed;
  font-size:10px;
}
.customer-price-table th,.customer-price-table td{
  padding:3px 4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.customer-price-table th:nth-child(1){width:4%}
.customer-price-table th:nth-child(2){width:17%}
.customer-price-table th:nth-child(3){width:18%}
.customer-price-table th:nth-child(4){width:14%}
.customer-price-table th:nth-child(5){width:11%}
.customer-price-table th:nth-child(6){width:8%}
.customer-price-table th:nth-child(7){width:10%}
.customer-price-table th:nth-child(8){width:8%}
.customer-price-table th:nth-child(9){width:10%}
@media(max-width:900px){
  .customer-price-grid{grid-template-columns:120px 1fr}
}

/* V3.0.32 - müşteri özel fiyat ekranından hızlı yedek parça ekleme */
.part-picker{
  grid-template-rows:auto 112px!important;
}
.part-search-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:5px;
  align-items:center;
}
.part-search-row input{
  min-width:0;
}
.part-search-row .btn{
  height:24px!important;
  min-height:24px!important;
  padding:2px 7px!important;
  font-size:10px!important;
  white-space:nowrap!important;
}

/* V3.0.33 - Hizmet Kalemi Tanımlama */
.service-item-content{padding:5px!important}
.service-item-grid{
  display:grid;
  grid-template-columns:130px minmax(260px,1fr) 90px minmax(180px,.7fr);
  gap:5px 8px;
  align-items:center;
}
.service-item-grid label{font-size:10.5px;white-space:nowrap}
.service-item-grid input{
  height:24px;
  min-height:24px;
  padding:2px 5px;
  font-size:10.5px;
  box-sizing:border-box;
  width:100%;
}
.active-check{
  display:flex!important;
  align-items:center;
  gap:6px;
}
.active-check input{
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
}
.service-item-actions{
  display:flex;
  justify-content:flex-end;
  gap:5px;
}
.service-item-table{
  width:100%;
  table-layout:fixed;
  font-size:10px;
}
.service-item-table th,.service-item-table td{
  padding:3px 4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.service-item-table th:nth-child(1){width:6%}
.service-item-table th:nth-child(2){width:30%}
.service-item-table th:nth-child(3){width:14%}
.service-item-table th:nth-child(4){width:14%}
.service-item-table th:nth-child(5){width:14%}
.service-item-table th:nth-child(6){width:10%}
.service-item-table th:nth-child(7){width:12%}

/* V3.0.34 - Müşteri özel fiyat: parça + hizmet */
.customer-price-grid-v2{
  display:grid;
  grid-template-columns:150px minmax(330px,1fr) 110px minmax(220px,.7fr);
  gap:5px 8px;
  align-items:center;
}
.customer-price-grid-v2>label{
  font-size:10.5px;
  white-space:nowrap;
}
.customer-price-grid-v2>input,
.customer-price-grid-v2>select{
  height:24px;
  min-height:24px;
  padding:2px 5px;
  font-size:10.5px;
  box-sizing:border-box;
}
.price-item-area{display:contents}
.service-picker{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:5px;
  align-items:start;
}
.service-picker select{
  width:100%;
  min-height:112px;
  font-size:10.5px;
}
.service-picker .btn{
  height:24px!important;
  min-height:24px!important;
  font-size:10px!important;
  white-space:nowrap!important;
}
.customer-price-table th:nth-child(1){width:4%}
.customer-price-table th:nth-child(2){width:9%}
.customer-price-table th:nth-child(3){width:15%}
.customer-price-table th:nth-child(4){width:18%}
.customer-price-table th:nth-child(5){width:12%}
.customer-price-table th:nth-child(6){width:10%}
.customer-price-table th:nth-child(7){width:8%}
.customer-price-table th:nth-child(8){width:9%}
.customer-price-table th:nth-child(9){width:7%}
.customer-price-table th:nth-child(10){width:8%}

/* V3.0.35 - Hizmet kodu */
.service-item-table th:nth-child(1){width:5%}
.service-item-table th:nth-child(2){width:24%}
.service-item-table th:nth-child(3){width:14%}
.service-item-table th:nth-child(4){width:12%}
.service-item-table th:nth-child(5){width:12%}
.service-item-table th:nth-child(6){width:12%}
.service-item-table th:nth-child(7){width:9%}
.service-item-table th:nth-child(8){width:12%}

/* V3.0.39 - Cihaz Kayıt / Düzenle */
.device-register-content{padding:5px!important}
.device-register-layout{
  display:grid;
  grid-template-columns:42% 58%;
  gap:6px;
}
.device-search-box{
  display:grid;
  grid-template-columns:28px 1fr 28px 1fr auto auto;
  gap:4px;
  align-items:center;
  margin-bottom:6px;
}
.device-search-box input{height:24px;font-size:10.5px;padding:2px 5px}
.device-form-grid{
  display:grid;
  grid-template-columns:125px 1fr;
  gap:5px 8px;
  align-items:center;
}
.device-form-grid label{font-size:10.5px;white-space:nowrap}
.device-form-grid input,.device-form-grid select,.device-form-grid textarea{
  font-size:10.5px;
  box-sizing:border-box;
  width:100%;
}
.device-form-grid input,.device-form-grid select{
  height:24px;
  min-height:24px;
  padding:2px 5px;
}
.device-form-grid textarea{padding:4px 5px;resize:vertical}
.device-options{
  display:flex;
  gap:14px;
  align-items:center;
  margin-top:7px;
  font-size:10.5px;
}
.device-options label{display:flex;align-items:center;gap:4px}
.device-actions{
  display:flex;
  justify-content:flex-end;
  gap:5px;
  margin-top:8px;
}
.device-list-wrap{
  max-height:650px;
  overflow:auto;
}
.device-table{
  width:100%;
  min-width:1180px;
  font-size:9.5px;
}
.device-table th,.device-table td{
  padding:3px 4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:160px;
}
.device-table th:nth-child(1){width:55px}
.device-table th:nth-child(2){width:150px}
.device-table th:nth-child(3){width:90px}
.device-table th:nth-child(4){width:90px}
.device-table th:nth-child(5){width:130px}
.device-table th:nth-child(10){width:120px}
.device-table th:nth-child(11){width:95px}
@media(max-width:1100px){
  .device-register-layout{grid-template-columns:1fr}
}

/* V3.0.41 - Seri kayıt geçici liste */
.stage-toolbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:5px;
  padding:5px 6px;
  background:#f4f5f6;
  border-bottom:1px solid #ccd1d5;
}
.stage-toolbar form{margin:0}
.stage-toolbar .btn{
  height:24px!important;
  min-height:24px!important;
  font-size:10px!important;
  padding:2px 7px!important;
}

/* V3.0.42 - Genel Liste ana ekran */
.service-dashboard{padding:5px}
.service-tabs{display:flex;gap:2px;margin-bottom:4px;border-bottom:1px solid #aeb6bf}
.service-tab{display:inline-block;padding:5px 12px;font-size:10.5px;background:#e9edf1;border:1px solid #b9c1c9;border-bottom:0;text-decoration:none;color:#222}
.service-tab.active{background:#fff;font-weight:700;position:relative;top:1px}
.service-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:4px}
.service-search{display:grid;grid-template-columns:minmax(320px,520px) auto auto;gap:5px;flex:1}
.service-search input{height:24px;min-height:24px;padding:2px 5px;font-size:10.5px}
.service-main-panel{margin-bottom:5px}
.service-main-list{max-height:610px;overflow:auto}
.service-main-table{width:100%;min-width:1500px;font-size:9.5px}
.service-main-table th,.service-main-table td{padding:3px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.service-main-table tbody tr{cursor:pointer}
.status-counters{display:grid;grid-template-columns:repeat(8,minmax(110px,1fr));gap:4px}
.status-box{border:1px solid #adb6bf;background:#f4f6f8;min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px}
.status-box span{margin-bottom:2px}.status-box b{font-size:16px}.status-box.total{font-weight:700}
@media(max-width:1200px){.status-counters{grid-template-columns:repeat(4,1fr)}}

/* V3.0.43 - Teslimat akışı + senkronizasyon */
.sticky-counters{
  position:sticky;
  top:0;
  z-index:20;
  margin-bottom:5px;
  padding:3px;
  background:#eef1f4;
  border:1px solid #c6ccd2;
}
.status-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.status-link:hover{
  background:#e7ebef;
  text-decoration:none;
}
.delivery-screen{padding:5px}
.delivery-list{max-height:650px;overflow:auto}
.delivery-table{width:100%;min-width:1320px;font-size:9.5px}
.delivery-table th,.delivery-table td{
  padding:3px 4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:190px;
}
.delivery-action-cell{width:90px;text-align:center}
.delivery-action-cell form{margin:0}
.delivery-note{
  margin-top:5px;
  padding:5px 7px;
  border:1px solid #c9ced3;
  background:#f4f6f8;
  font-size:10px;
}

/* V3.0.44 - Çoklu teslim/form grubu */
.delivery-topbar{margin-bottom:5px}
.delivery-commandbar{display:grid;grid-template-columns:auto 220px 120px 120px 120px;gap:6px;align-items:center;padding:6px;border:1px solid #c3c9cf;background:#f2f4f6;margin-bottom:5px}
.delivery-commandbar label{font-size:10.5px;font-weight:700}
.delivery-commandbar input{height:25px;min-height:25px;font-size:10.5px;padding:2px 5px}
.check-col{width:28px;text-align:center}
.form-linked-row{background:#f0f3f5}
.delivery-forms-panel{margin-top:6px}
.delivery-forms-table{width:100%;font-size:10px}
.delivery-forms-table th,.delivery-forms-table td{padding:4px 5px}
.delivery-forms-table form{margin:0}

/* V3.0.45 - PDF servis formu + kompakt teslimat */
.delivery-commandbar{
  grid-template-columns:auto 180px 96px 96px 96px!important;
  justify-content:end;
}
.delivery-commandbar .btn{
  min-height:24px!important;
  height:24px!important;
  padding:2px 7px!important;
  font-size:10px!important;
}
.delivery-commandbar input{
  height:24px!important;
  min-height:24px!important;
}
.delivery-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed;
}
.delivery-table th,.delivery-table td{
  font-size:9.2px!important;
  padding:3px 3px!important;
}
.delivery-table th:nth-child(1){width:26px}
.delivery-table th:nth-child(2){width:42px}
.delivery-table th:nth-child(3){width:135px}
.delivery-table th:nth-child(4){width:70px}
.delivery-table th:nth-child(5){width:78px}
.delivery-table th:nth-child(6){width:125px}
.delivery-table th:nth-child(7){width:85px}
.delivery-table th:nth-child(8){width:70px}
.delivery-table th:nth-child(9){width:105px}
.delivery-table th:nth-child(10){width:110px}
.delivery-table th:nth-child(11){width:88px}
.delivery-table th:nth-child(12){width:auto}
.delivery-table th:nth-child(13){width:85px}
.delivery-form-actions{
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.delivery-form-actions form{margin:0}
.delivery-form-actions .btn{
  height:24px!important;
  min-height:24px!important;
  padding:2px 7px!important;
  font-size:10px!important;
}
.readonly-detail{padding:6px}
.readonly-grid{
  display:grid;
  grid-template-columns:120px 1fr 120px 1fr;
  gap:1px;
  border:1px solid #bfc5ca;
  background:#bfc5ca;
}
.readonly-grid label,.readonly-grid div{
  background:#fff;
  padding:5px 6px;
  min-height:24px;
  font-size:10.5px;
}
.readonly-grid label{
  background:#edf0f3;
  font-weight:700;
}
.readonly-grid .wide-text{
  grid-column:2 / 5;
  min-height:55px;
  white-space:pre-wrap;
}

/* V3.0.47 */
.delivery-form-actions{flex-wrap:wrap}
.delivery-form-actions .danger{white-space:nowrap}

/* V3.0.48 - PDF borders + form folder */

/* V3.0.49 - PDF border final redraw + Windows Explorer folder fix */

/* V3.0.50 - Cihaz Detay / Servis İşlem + teklif kuyruğu */
.svc-screen{padding:5px}
.svc-top-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:5px;margin-bottom:5px}
.svc-bottom-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:5px}
.svc-info-grid{display:grid;grid-template-columns:115px 1fr 115px 1fr;border:1px solid #c5cbd0;background:#c5cbd0;gap:1px}
.svc-info-grid label,.svc-info-grid div{background:#fff;padding:4px 5px;font-size:10px;min-height:24px}
.svc-info-grid label{background:#eef1f3;font-weight:700}
.svc-form{display:grid;grid-template-columns:110px 1fr;gap:4px 6px;align-items:start}
.svc-form label{font-size:10px;font-weight:700;padding-top:5px}
.svc-form textarea{min-height:68px;resize:vertical;font-size:10.5px}
.svc-form select{height:25px;font-size:10.5px}
.svc-help{margin-top:5px;padding:5px;border:1px solid #d1d5d9;background:#f5f6f7;font-size:9.5px}
.svc-actions{text-align:right;margin-top:5px}
.svc-part-add{display:grid;grid-template-columns:1fr 70px 70px;gap:5px;margin-bottom:5px}
.svc-part-add select,.svc-part-add input{height:25px;font-size:10px}
.svc-part-table,.svc-history-table{width:100%;font-size:9.5px}
.svc-part-table form{margin:0}
.svc-history-wrap{max-height:280px;overflow:auto}
.offer-queue{padding:5px}
.offer-queue-table{width:100%;min-width:1150px;font-size:9.5px}
.offer-queue-table td,.offer-queue-table th{padding:3px 4px}
@media(max-width:1100px){
  .svc-top-grid,.svc-bottom-grid{grid-template-columns:1fr}
}

/* V3.0.51 - servis alanları + teklif kalemleri + UI */
.svc-top-grid{grid-template-columns:minmax(520px,.95fr) minmax(650px,1.15fr)!important}
.svc-bottom-grid{grid-template-columns:minmax(700px,1.2fr) minmax(460px,.8fr)!important}
.svc-info-grid{grid-template-columns:135px minmax(150px,1fr) 135px minmax(170px,1fr)!important}
.svc-info-grid label,.svc-info-grid div{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25}
.svc-form{grid-template-columns:130px minmax(0,1fr)!important}
.svc-form textarea,.svc-form select{width:100%;box-sizing:border-box}
.wide-assignee{min-width:100%;font-size:10.5px!important}
.readonly-field{background:#f1f3f5!important;color:#333}
.svc-item-add{display:grid;grid-template-columns:120px minmax(300px,1fr) 70px 70px;gap:5px;margin-bottom:5px}
.svc-item-add select,.svc-item-add input{height:26px;font-size:10px;min-width:0}
.svc-item-table{width:100%;font-size:9.5px}
.offer-line-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.inline-price-form{display:grid;grid-template-columns:65px 70px 95px 120px auto;gap:5px;align-items:center}
.inline-price-form input,.inline-price-form select{height:24px;font-size:10px;min-width:0}
.line-total{white-space:nowrap;font-weight:700}
.inline-delete-form{display:inline-block;margin:0}
.locked-price{background:#f0f0f0}
.price-lock{font-size:9px;white-space:nowrap}
@media(max-width:1250px){.svc-top-grid,.svc-bottom-grid{grid-template-columns:1fr!important}}

/* V3.0.52 - servis ekranı okunabilirlik ve alan yüksekliği düzeltmeleri */
.svc-screen select,
.svc-screen input[type="text"],
.svc-screen input[type="number"],
.svc-screen button,
.svc-screen .btn{
  min-height:31px!important;
  height:31px!important;
  line-height:1.35!important;
  padding:4px 8px!important;
  box-sizing:border-box!important;
  vertical-align:middle!important;
  overflow:visible!important;
}

.svc-form select,
.svc-item-add select,
.svc-item-add input,
.inline-price-form select,
.inline-price-form input{
  font-size:11px!important;
}

.svc-form select,
.wide-assignee{
  min-height:32px!important;
  height:32px!important;
  line-height:1.4!important;
  padding:4px 8px!important;
}

.svc-item-add{
  align-items:center!important;
}
.svc-item-add select,
.svc-item-add input{
  min-height:32px!important;
  height:32px!important;
  line-height:1.4!important;
}

.inline-price-form{
  align-items:center!important;
}
.inline-price-form input,
.inline-price-form select{
  min-height:30px!important;
  height:30px!important;
  line-height:1.4!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}

.svc-item-table td,
.svc-item-table th,
.svc-history-table td,
.svc-history-table th{
  line-height:1.45!important;
  overflow:visible!important;
  vertical-align:middle!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}

.svc-item-table td,
.svc-item-table th{
  white-space:normal!important;
}

.offer-line-actions{
  min-height:34px;
}

.svc-info-grid label,
.svc-info-grid div{
  min-height:28px!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}

/* V3.0.53 - servis geçmişi */
.svc-history-wrap{max-height:320px!important;overflow:auto!important}
.svc-history-table{min-width:1050px;width:100%;font-size:9.5px}
.svc-history-table td{
  max-width:220px;
  white-space:normal!important;
  vertical-align:top!important;
}
.svc-history-table tbody tr{cursor:pointer}
.svc-history-table tbody tr:hover{background:#eef4fb}
.history-detail-screen{padding:5px}
.history-readonly-grid{grid-template-columns:135px minmax(170px,1fr) 135px minmax(170px,1fr)!important}
.history-text-grid{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:1px;
  background:#c8cdd2;
  border:1px solid #c8cdd2;
}
.history-text-grid label,
.history-text-grid div{
  background:#fff;
  padding:7px 8px;
  line-height:1.4;
  min-height:34px;
  white-space:pre-wrap;
}
.history-text-grid label{background:#eef1f3;font-weight:700}

/* V3.0.58 - Teklif oluşturma */
.offer-detail,.offer-result{padding:5px}
.offer-info-grid{grid-template-columns:135px minmax(180px,1fr) 135px minmax(180px,1fr)!important}
.offer-detail-table{width:100%;font-size:10px}
.offer-price-form{display:grid;grid-template-columns:75px 80px 120px 130px auto;gap:5px;align-items:center}
.offer-price-form input,.offer-price-form select{height:31px!important;min-height:31px!important;line-height:1.4!important;padding:4px 7px!important;box-sizing:border-box}
.offer-line-total{font-weight:700;white-space:nowrap}
.offer-totals{display:flex;gap:15px;justify-content:flex-end;padding:8px 10px;border-top:1px solid #c6cbd0;background:#f7f8f9}
.offer-generate-form{display:grid;grid-template-columns:110px 180px 140px;gap:7px;align-items:center;max-width:520px}
.offer-generate-form select{height:32px;line-height:1.4;padding:4px 7px}
.offer-result-actions{display:flex;gap:7px;margin-top:10px}

/* V3.0.59 - Çoklu cihaz teklif */
.offer-commandbar{display:flex;align-items:center;gap:10px;margin:5px 0}
.offer-device-panel{margin-top:7px}
.offer-planned-action{padding:6px 8px;margin-bottom:6px;border:1px solid #c8cdd2;background:#f7f8f9;white-space:pre-wrap}
.offer-device-subtotal{display:flex;justify-content:flex-end;gap:12px;padding:7px 10px;border-top:1px solid #c8cdd2;background:#f8f9fa}
.offer-grand-panel{margin-top:8px}
.offer-grand-total{display:flex;justify-content:flex-end;gap:14px;font-size:12px;padding:8px 10px;margin-bottom:8px;border:1px solid #bfc5ca;background:#eef1f3}
.offer-queue-table .check-col{width:28px;text-align:center}

/* V3.0.76 - Teklif kullanım ergonomisi */
.offer-toolbar-v2{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0}
.offer-search-v2{display:grid;grid-template-columns:minmax(320px,1fr) 90px 90px;gap:5px;flex:1;max-width:850px}
.offer-search-v2 input{height:31px;box-sizing:border-box}
.offer-list-titlebar,.offer-device-titlebar{display:flex;align-items:center;justify-content:space-between;gap:8px}
.offer-list-actions{display:flex;align-items:center;gap:8px}
.offer-selected-count{min-width:92px;text-align:center;padding:3px 8px;border:1px solid #adb5bd;background:#fff;font-weight:600}
.offer-device-update-btn{min-width:125px}
.offer-detail-table .offer-cell-input{height:30px!important;min-height:30px!important;box-sizing:border-box}
.offer-detail-table input.qty{width:68px}
.offer-detail-table select.currency{width:78px}
.offer-detail-table input.price{width:110px}
.offer-detail-table .offer-row-total{font-weight:700;white-space:nowrap;text-align:center}
.offer-device-update-form{margin:0}

/* V3.0.80 - compact device service layout; scoped to the editable screen. */
.svc-compact .svc-top-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;align-items:start;gap:8px;margin-bottom:8px}
.svc-compact .svc-bottom-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px}
.svc-compact .panel{min-width:0}
.svc-compact .svc-info-grid{grid-template-columns:100px minmax(0,1fr)!important}
.svc-compact .svc-info-grid label,.svc-compact .svc-info-grid div{font-size:11px;min-height:0!important;padding:5px 7px!important;overflow-wrap:anywhere}
.svc-compact .svc-form{grid-template-columns:105px minmax(0,1fr)!important;gap:5px 8px}
.svc-compact .svc-form label{font-size:11px}
.svc-compact .svc-form textarea{min-height:46px;height:46px;font-size:11px;line-height:1.4;padding:5px 7px;box-sizing:border-box}
.svc-compact select,.svc-compact input[type="text"],.svc-compact input[type="number"],.svc-compact button,.svc-compact .btn{height:26px!important;min-height:26px!important;line-height:1.2!important;padding:3px 6px!important;font-size:11px!important}
.svc-compact .svc-form select{height:28px!important;min-height:28px!important}
.svc-compact .svc-help{font-size:10px;line-height:1.4}
.svc-compact .svc-item-add{grid-template-columns:110px minmax(0,1fr) 55px 58px;gap:6px;margin-bottom:8px}
.svc-compact .svc-item-table{table-layout:fixed;min-width:0;width:100%;font-size:11px}
.svc-compact .svc-item-table th:nth-child(1){width:80px}
.svc-compact .svc-item-table th:nth-child(2){width:125px}
.svc-compact .svc-item-table th:nth-child(3){width:auto}
.svc-compact .svc-item-table th:nth-child(4){width:450px}
.svc-compact .svc-item-table td,.svc-compact .svc-item-table th{padding:5px 7px!important;overflow-wrap:anywhere}
.svc-compact .offer-line-actions{display:flex;flex-wrap:nowrap;gap:6px;min-height:26px}
.svc-compact .inline-price-form{display:grid;grid-template-columns:48px 60px 80px minmax(70px,1fr) 66px;gap:6px;flex:1;min-width:0;margin:0}
.svc-compact .inline-price-form input,.svc-compact .inline-price-form select{width:100%}
.svc-compact .inline-delete-form{flex:none;margin:0}
.svc-compact .line-total{font-size:11px;white-space:normal;overflow-wrap:anywhere}
.svc-compact .price-lock{font-size:10px;line-height:1.2}
.svc-compact .svc-count{float:right;font-size:11px;font-weight:400;color:#526171}
.svc-compact .svc-history-panel summary{cursor:pointer;user-select:none}
.svc-compact .svc-history-wrap{max-height:220px!important}
.svc-compact .svc-history-table{min-width:800px;font-size:10px}
@media(min-width:1400px){.svc-compact .svc-info-grid{grid-template-columns:100px minmax(0,1fr) 100px minmax(0,1fr)!important}}
@media(max-width:850px){
 .svc-compact .svc-top-grid{grid-template-columns:minmax(0,1fr)!important}
 .svc-compact .svc-item-table{min-width:730px}
 .svc-compact .svc-item-table th:nth-child(2){width:100px}
 .svc-compact .svc-item-table th:nth-child(1){width:65px}
 .svc-compact .svc-item-table th:nth-child(4){width:410px}
}

/* V3.0.81 - Zebra garanti sorgu */
.zebra-serial-row{display:grid;grid-template-columns:minmax(0,1fr) 122px;gap:5px}
.zebra-warranty-btn{display:none;align-items:center;justify-content:center;white-space:nowrap}
.zebra-only-label,.zebra-warranty-result{display:none}
.zebra-warranty-result{
  border:1px solid #bfc6cc;background:#f8f9fa;padding:6px 8px;min-height:30px;
  font-size:12px;line-height:1.35
}
.zebra-warranty-summary{font-weight:700}
.zebra-warranty-dates{margin-top:2px}
.zebra-warranty-message{margin-top:3px}
.zebra-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:9999;align-items:center;justify-content:center}
.zebra-modal.show{display:flex}
.zebra-modal-card{width:min(560px,calc(100vw - 30px));background:white;border:1px solid #7b8790;box-shadow:0 8px 30px rgba(0,0,0,.25)}
.zebra-modal-title{font-weight:700;padding:9px 11px;border-bottom:1px solid #c9ced3;background:#f1f3f5}
.zebra-modal-body{padding:12px;line-height:1.5}
.zebra-modal-body p{margin:10px 0 0}
.zebra-modal-actions{display:flex;justify-content:flex-end;gap:6px;padding:9px 11px;border-top:1px solid #d5d9dd}

/* V3.0.83 - Teklif bazli faturalama takibi */
.invoice-page{padding:8px 10px 12px;display:flex;flex-direction:column;gap:6px;height:calc(100vh - 92px);box-sizing:border-box}
.invoice-toolbar{display:flex;align-items:center;gap:8px;min-height:34px;flex-wrap:wrap}
.invoice-toolbar label{font-size:14px;margin-left:48px}
.invoice-toolbar input[name="offer_no"]{width:300px;height:27px;box-sizing:border-box}
.invoice-toolbar .btn{min-width:76px;text-align:center}
.invoice-state-btn{min-width:136px!important}
.invoice-state-btn[disabled]{opacity:.45;cursor:not-allowed}
.invoice-tabs{display:flex;align-items:end;border-bottom:1px solid #9aa7b4;padding-left:4px;margin-top:2px}
.invoice-tab{display:inline-block;padding:6px 10px 5px;border:1px solid transparent;border-bottom:0;text-decoration:none;color:inherit;font-size:12px}
.invoice-tab.active{background:#fff;border-color:#9aa7b4;position:relative;top:1px}
.invoice-info-line{display:flex;gap:12px;align-items:center;font-size:12px;min-height:24px;padding:0 4px}
.invoice-table-wrap{flex:1;min-height:0;border:1px solid #aeb7c0;background:#fff;overflow:auto}
.invoice-table{font-size:11px;white-space:nowrap;min-width:1450px}
.invoice-table th{position:sticky;top:0;z-index:2;background:#eef2f5}
.invoice-table td{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.invoice-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.invoice-check{text-align:center;font-size:15px}
.invoice-rejected td{background:#f6f6f6;color:#666}
.invoice-pending td{background:#fffbe8;color:#6f641c}
.invoice-totals{display:flex;justify-content:center;gap:30px;font-size:16px;padding:4px 8px 0}
.offer-name-input{min-width:300px;max-width:440px;height:30px;box-sizing:border-box}

/* V3.0.84 - global column filters / roles */
.auto-filter-row th,.invoice-filter-row th{background:#f4f6f8!important;padding:3px!important;top:auto!important}
.auto-filter-row input,.auto-filter-row select,.invoice-filter-row input,.invoice-filter-row select{width:100%;min-width:54px;padding:4px 5px;font-size:10px;height:27px}
.invoice-rejected td{background:#faf2f2}
.invoice-table th,.invoice-table td{white-space:nowrap}
.invoice-table td:nth-child(5){max-width:260px;overflow:hidden;text-overflow:ellipsis}

/* V3.0.87 compact invoice / offer refinements */
.stock-invoice-tabs{display:flex;gap:0;margin-bottom:10px;border-bottom:1px solid #b9bec4}
.stock-invoice-tab{display:inline-block;padding:7px 14px;text-decoration:none;color:#20252b;background:#f4f5f6;border:1px solid #b9bec4;border-bottom:0;margin-right:3px}
.stock-invoice-tab.active{background:#fff;font-weight:600;position:relative;top:1px}
.stock-invoice-totals{display:grid;grid-template-columns:repeat(3,minmax(160px,260px));gap:8px;margin:0 0 10px}
.stock-invoice-totals .stat{padding:8px 10px}
.stock-invoice-totals .value{font-size:19px}
.stock-invoice-toolbar form{width:100%;max-width:900px;flex-wrap:wrap}
.stock-invoice-panel .table-wrap{border:0;max-width:100%}
.stock-invoice-table{min-width:1180px;font-size:12px}
.stock-invoice-table th,.stock-invoice-table td{padding:5px 6px}
.stock-invoice-table form{align-items:center;white-space:nowrap}
.invoice-no-input{width:92px!important;min-width:92px}
.invoice-date-input{width:122px!important;min-width:122px}
.offer-generate-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.offer-generate-form label{width:auto;margin:0}
.offer-generate-form select{width:150px}
.offer-grand-total{margin-bottom:10px}
@media(max-width:900px){.stock-invoice-totals{grid-template-columns:1fr}.stock-invoice-table{min-width:1050px}}

/* V3.0.88 - stock invoice screen cleanup */
.stock-invoice-toolbar{gap:10px}
.stock-invoice-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0;flex:1}
.stock-invoice-search>b{white-space:nowrap}
.stock-invoice-search input[name="q"]{width:min(520px,42vw);min-width:280px}
.stock-invoice-action{min-width:118px}
.stock-invoice-action[disabled]{opacity:.45;cursor:not-allowed}
.stock-invoice-content{padding-top:10px}
.stock-invoice-hint{margin:-2px 0 8px;padding:6px 8px;background:#f8fafc;border:1px solid #d5dbe1}
.stock-invoice-table{min-width:0!important;width:100%;table-layout:fixed;font-size:11px}
.stock-invoice-table th,.stock-invoice-table td{padding:5px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stock-invoice-table th:nth-child(1){width:8%}.stock-invoice-table th:nth-child(2){width:12%}.stock-invoice-table th:nth-child(3){width:11%}.stock-invoice-table th:nth-child(4){width:18%}.stock-invoice-table th:nth-child(5){width:11%}.stock-invoice-table th:nth-child(6){width:12%}.stock-invoice-table th:nth-child(7){width:6%}.stock-invoice-table th:nth-child(8){width:9%}.stock-invoice-table th:nth-child(9){width:7%}.stock-invoice-table th:nth-child(10){width:10%}
.stock-invoice-table .auto-filter-row input,.stock-invoice-table .auto-filter-row select{min-width:0!important}
.stock-invoice-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:1000;align-items:center;justify-content:center;padding:20px}
.stock-invoice-modal.open{display:flex}
.stock-invoice-modal-card{width:min(430px,96vw);background:#fff;border:1px solid #9ea7b0;box-shadow:0 12px 36px rgba(0,0,0,.22)}
.stock-invoice-modal-form{padding:14px;display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:center}
.stock-invoice-modal-form label{font-size:13px}
.stock-invoice-target{grid-column:1/-1;display:flex;gap:16px;align-items:center;padding:8px 10px;background:#f5f7f9;border:1px solid #d3d8dd}
.stock-invoice-target span{color:#69717a}
.stock-invoice-modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:4px}
@media(max-width:900px){.stock-invoice-search input[name="q"]{width:100%;min-width:220px}.stock-invoice-table{min-width:900px!important}}

/* V3.0.89 functional test fixes */
.stock-invoice-toolbar form.stock-invoice-search{width:auto;max-width:none;flex-wrap:nowrap}
.stock-invoice-query-actions{display:flex;gap:8px;align-items:center;white-space:nowrap}
@media(max-width:900px){.stock-invoice-toolbar form.stock-invoice-search{flex-wrap:wrap}.stock-invoice-query-actions{width:auto}}

/* V3.0.90 - birleşik stok çıkış fişi */
.stock-out-v2{display:grid;gap:12px}.stock-out-common{display:grid;grid-template-columns:120px minmax(220px,1fr) 120px minmax(220px,1fr);gap:8px 10px;align-items:center}.stock-out-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stock-out-add-box{border:1px solid #d0d5da;background:#fafbfc;padding:10px;display:grid;gap:7px}.inline-action{display:flex;gap:7px}.inline-action input{flex:1}.stock-out-cart{min-width:980px}.stock-out-cart textarea{min-width:230px;min-height:64px;resize:vertical}.stock-out-cart input[type=number]{min-width:85px}.stock-out-cart select{min-width:80px}.stock-out-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:10px;border-top:1px solid #d4d8dc;background:#fafbfc}.stock-out-actions .muted{margin-right:auto}.stock-out-inventory-wrap{max-height:360px}.stock-out-inventory{min-width:700px}.count-bad{color:#a12828;font-weight:600}.count-ok{color:#28713a;font-weight:600}@media(max-width:900px){.stock-out-common{grid-template-columns:110px 1fr}.stock-out-add-grid{grid-template-columns:1fr}}


/* ==========================================================
   ANA DASHBOARD - ekran yüksekliğini tam kullan
   ========================================================== */

body:not(.child-window) .app-shell{
    height:100vh;
    min-height:0;
    overflow:hidden;
}

body:not(.child-window) .workspace{
    flex:1;
    min-height:0;
    height:auto;
    overflow:hidden;
}

body:not(.child-window) .workspace > .window{
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

body:not(.child-window) .service-dashboard{
    flex:1;
    min-height:0;
    height:100%;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

body:not(.child-window) .service-tabs,
body:not(.child-window) .service-toolbar,
body:not(.child-window) .status-counters{
    flex:0 0 auto;
}

body:not(.child-window) .service-main-panel{
    flex:1 1 auto;
    min-height:0;
    margin-bottom:0 !important;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

body:not(.child-window) .service-main-panel > .panel-title{
    flex:0 0 auto;
}

body:not(.child-window) .service-main-panel > .panel-body{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

body:not(.child-window) .service-main-list{
    flex:1 1 auto;
    min-height:0;
    height:auto !important;
    max-height:none !important;
    overflow:auto !important;
}

body:not(.child-window) .service-main-table thead th{
    position:sticky;
    top:0;
    z-index:5;
    background:#e8ecef;
}

/* ==========================================================
   QRTECH MOBILE RESPONSIVE V1
   Sadece mobil / tablet görünümünü etkiler.
   Masaüstü davranışı korunur.
   ========================================================== */

@media (max-width: 768px) {

    html, body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
    }

    /* Üst başlık */
    .titlebar {
        min-height: 42px;
        height: auto;
        padding: 6px 10px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .titlebar .title-sep {
        display: none;
    }

    .titlebar .session-user {
        width: 100%;
        font-size: 11px;
        opacity: .8;
    }

    /* Menü yatay kayabilsin */
    .menubar {
        height: auto;
        min-height: 44px;
        padding-left: 0;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .menu-item {
        flex: 0 0 auto;
    }

    .menu-button,
    .menu-link {
        min-height: 44px;
        height: 44px;
        padding: 0 12px;
        font-size: 13px;
    }

    .dropdown {
        position: fixed;
        top: auto;
        left: 8px;
        right: 8px;
        width: auto;
        min-width: 0;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 9999;
    }

    /* Ana içerik */
    .workspace {
        padding: 6px !important;
        height: auto !important;
        overflow: visible !important;
    }

    .window {
        min-height: 0;
        width: 100%;
        overflow: visible;
    }

    .content {
        padding: 6px;
    }

    .panel {
        min-width: 0;
    }

    .panel-body {
        padding: 8px;
    }

    /* Butonlar */
    .btn,
    button,
    input[type="submit"] {
        min-height: 38px;
        font-size: 13px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* iPhone/Android otomatik zoom engeli için 16px input */
    input[type="text"],
    input[type="search"],
    input[type="password"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        min-height: 40px;
    }

    /* Genel tablo davranışı */
    .table-wrap,
    .service-main-list,
    .device-list-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    table.data-table {
        font-size: 11px;
    }

    /* ------------------------------
       ANA EKRAN / SERVİS DASHBOARD
       ------------------------------ */

    body:not(.child-window) .app-shell {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    body:not(.child-window) .workspace > .window,
    body:not(.child-window) .service-dashboard {
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
    }

    .service-dashboard {
        padding: 3px;
    }

    .service-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
    }

    .service-tab {
        font-size: 12px;
        padding: 8px 12px;
    }

    .service-toolbar {
        display: block;
    }

    .service-search {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px;
        width: 100%;
        margin-bottom: 6px;
    }

    .service-search input {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        height: 40px;
        font-size: 16px !important;
    }

    .service-toolbar > .btn {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }

    .status-counters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px;
        position: static !important;
    }

    .status-box {
        min-width: 0 !important;
        padding: 8px 6px !important;
    }

    .status-box span {
        white-space: normal;
        line-height: 1.2;
    }

    .service-main-panel {
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .service-main-list {
        height: auto !important;
        max-height: calc(100vh - 310px) !important;
        min-height: 280px;
    }

    .service-main-table {
        min-width: 1200px;
    }

    /* ------------------------------
       CİHAZ KAYIT
       ------------------------------ */

    .device-register-content {
        padding: 4px !important;
    }

    .device-register-layout {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .device-search-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .device-search-box input,
    .device-search-box button,
    .device-search-box .btn {
        width: 100%;
        min-width: 0;
        height: 40px;
    }

    .device-form-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 3px;
    }

    .device-form-grid label {
        font-size: 12px;
        white-space: normal;
        margin-top: 6px;
    }

    .device-form-grid input,
    .device-form-grid select {
        height: 40px;
        min-height: 40px;
        font-size: 16px !important;
    }

    .device-form-grid textarea {
        min-height: 80px;
        font-size: 16px !important;
    }

    .device-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        font-size: 13px;
        margin-top: 12px;
    }

    .device-options label {
        min-height: 36px;
        align-items: center;
    }

    .device-options input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .device-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 10px;
    }

    .device-actions .btn,
    .device-actions button {
        width: 100%;
        min-height: 42px;
    }

    .stage-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .stage-toolbar form,
    .stage-toolbar .btn,
    .stage-toolbar button {
        width: 100%;
    }

    .stage-toolbar .btn {
        min-height: 38px !important;
        height: auto !important;
        font-size: 12px !important;
    }

    .device-list-wrap {
        max-height: 50vh;
    }

    .device-table {
        min-width: 1100px;
        font-size: 10.5px;
    }

    /* ------------------------------
       LOGIN
       ------------------------------ */

    .auth-body {
        padding: 18px;
        align-items: flex-start;
    }

    .auth-card {
        width: 100%;
        max-width: 430px;
        margin: 8vh auto 0;
        padding: 20px;
    }

    .auth-card input {
        width: 100%;
        min-height: 44px;
        font-size: 16px !important;
    }

    .auth-submit {
        width: 100%;
        min-height: 44px;
        margin-top: 10px;
    }
}

@media (max-width: 430px) {
    .status-counters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .device-options {
        grid-template-columns: 1fr 1fr;
    }

    .titlebar {
        font-size: 12px;
    }
}

/* QRTECH MOBILE MENU FIX V1 */
@media (max-width: 768px) {

    .menubar {
        display: flex;
        flex-wrap: wrap;
        overflow: visible !important;
        white-space: normal;
        position: relative;
        z-index: 100;
    }

    .menu-item {
        position: relative;
        flex: 0 0 auto;
    }

    .menu-item .dropdown {
        position: absolute !important;
        top: 44px !important;
        left: 0 !important;
        right: auto !important;
        min-width: 240px;
        width: max-content;
        max-width: calc(100vw - 16px);
        max-height: 70vh;
        overflow-y: auto;
        z-index: 99999;
    }

    .menu-item:focus-within .dropdown,
    .menu-item:hover .dropdown {
        display: block;
    }
}

/* QRTECH MOBILE MENU CLICK FIX V2 */
@media (max-width: 768px) {

    .menu-item .dropdown {
        display: none !important;
    }

    .menu-item.mobile-open > .dropdown {
        display: block !important;
    }

    .menu-item:hover > .dropdown,
    .menu-item:focus-within > .dropdown {
        display: none !important;
    }

    .menu-item.mobile-open:hover > .dropdown,
    .menu-item.mobile-open:focus-within > .dropdown {
        display: block !important;
    }
}


/* QRTECH_LABEL_REPRINT_STYLE_V1 */
.service-main-table tbody tr.qrtech-row-selected td {
    background: #dbeafe !important;
}

.service-main-table tbody tr.qrtech-row-selected {
    outline: 2px solid #4b83bd;
    outline-offset: -2px;
}

#general-label-print-btn:disabled {
    opacity: .65;
    cursor: wait;
}


/* QRTECH LABEL ROW SELECT V2 */
.service-main-table tbody tr {
    transition: background-color .12s ease, outline-color .12s ease;
}

.service-main-table tbody tr.qrtech-row-selected td {
    background: #cfe8ff !important;
    color: #111 !important;
}

.service-main-table tbody tr.qrtech-row-selected {
    outline: 3px solid #1f6fb2 !important;
    outline-offset: -3px;
}

#general-label-print-btn:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
    filter: grayscale(1);
}

#general-label-print-btn:not(:disabled) {
    opacity: 1 !important;
    font-weight: 600;
}

/* QRTECH PRINT BUTTON DISABLED FIX */
#general-label-print-btn:disabled,
#general-serial-print-btn:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
    filter: grayscale(1);
}

#general-label-print-btn:not(:disabled),
#general-serial-print-btn:not(:disabled) {
    opacity: 1 !important;
    filter: none;
    cursor: pointer;
    font-weight: 600;
}
