#ttGoodsV33 .ttstk-toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #dbe6f3;padding:14px 18px}
#ttGoodsV33 .ttstk-toolbar h2{margin:0;font-size:22px}
#ttGoodsV33 .ttstk-toolbar p{margin:4px 0 0;color:#64748b}
#ttGoodsV33 .ttstk-actions{display:flex;gap:8px}
#ttGoodsV33 .ttstk-primary,#ttGoodsV33 .ttstk-soft,#ttGoodsV33 .ttstk-filter-btn{height:38px;border-radius:7px;border:0;padding:0 14px;font-weight:800;cursor:pointer}
#ttGoodsV33 .ttstk-primary,#ttGoodsV33 .ttstk-filter-btn{background:#0078ff;color:#fff}
#ttGoodsV33 .ttstk-soft{background:#eef4fb;color:#0f172a}
#ttGoodsV33 .ttstk-table{background:#fff;overflow:auto}
#ttGoodsV33 .ttstk-head,#ttGoodsV33 .ttstk-row{display:grid;grid-template-columns:130px 150px 110px 150px 120px 120px minmax(160px,1fr) 130px;min-width:1080px;align-items:center;border-bottom:1px solid #e6eef7}
#ttGoodsV33 .ttstk-head{height:42px;background:#f1f6fd;font-weight:800}
#ttGoodsV33 .ttstk-row{min-height:48px}
#ttGoodsV33 .ttstk-head span,#ttGoodsV33 .ttstk-row span{padding:0 10px}
#ttGoodsV33 .ttstk-row .code{color:#0369a1;font-weight:900}
#ttGoodsV33 .ttstk-row em{background:#e8fff1;color:#078331;border-radius:999px;padding:4px 8px;font-style:normal;font-weight:800}
#ttGoodsV33 .ttstk-empty{padding:40px;text-align:center;color:#64748b}
#ttGoodsV33 .ttstk-empty.big{min-height:360px;display:flex;flex-direction:column;justify-content:center;align-items:center}
#ttGoodsV33 .goods33-filter .ttstk-check{display:flex!important;align-items:center!important;gap:8px!important;margin:8px 0!important}
#ttGoodsV33 .goods33-filter .ttstk-check input{width:18px!important;height:18px!important}
#ttGoodsV33 .goods33-filter select,#ttGoodsV33 .goods33-filter input{width:100%!important;box-sizing:border-box!important}
#ttGoodsV33 .ttstk-note{color:#64748b;line-height:1.45}
#ttGoodsV33 .ttstk-create-wrap{display:grid;grid-template-columns:minmax(0,1fr) 360px;background:#fff;min-height:650px}
#ttGoodsV33 .ttstk-create-center{min-width:0;border-right:1px solid #dbe6f3}
#ttGoodsV33 .ttstk-create-top{height:64px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid #dbe6f3}
#ttGoodsV33 .ttstk-create-top>button{width:36px;height:36px;border:0;background:#fff;font-size:22px;cursor:pointer}
#ttGoodsV33 .ttstk-create-top h2{margin:0;font-size:24px}
#ttGoodsV33 .ttstk-search{display:flex;flex:1;max-width:560px;border:1px solid #0078ff;border-radius:7px;overflow:hidden}
#ttGoodsV33 .ttstk-search input{flex:1;height:40px;border:0;padding:0 12px;outline:0}
#ttGoodsV33 .ttstk-search button{width:46px;border:0;background:#fff;border-left:1px solid #dbe6f3;font-size:22px;cursor:pointer}
#ttGoodsV33 .ttstk-tabs{height:46px;display:flex;gap:22px;align-items:end;padding:0 18px;border-bottom:1px solid #dbe6f3}
#ttGoodsV33 .ttstk-tabs button{height:44px;border:0;background:transparent;cursor:pointer}
#ttGoodsV33 .ttstk-tabs .active{border-bottom:2px solid #0078ff;color:#0078ff;font-weight:900}
#ttGoodsV33 .ttstk-line-table{margin:0 16px;border-left:1px solid #dbe6f3;border-right:1px solid #dbe6f3;min-height:420px}
#ttGoodsV33 .ttstk-line-head,#ttGoodsV33 .ttstk-line-row{display:grid;grid-template-columns:58px 125px minmax(220px,1fr) 120px 100px 110px 100px 42px;align-items:center;border-bottom:1px solid #e6eef7;min-width:900px}
#ttGoodsV33 .ttstk-line-head{height:42px;background:#f1f6fd;font-weight:800}
#ttGoodsV33 .ttstk-line-row{min-height:46px}
#ttGoodsV33 .ttstk-line-head span,#ttGoodsV33 .ttstk-line-row span{padding:0 8px}
#ttGoodsV33 .ttstk-line-row input{width:90px;height:30px;border:1px solid #cbd5e1;border-radius:6px;padding:0 8px}
#ttGoodsV33 .ttstk-line-row button{width:30px;height:30px;border:0;border-radius:6px;background:#eef4fb;cursor:pointer}
#ttGoodsV33 .ttstk-summary{display:flex;gap:14px;padding:14px 18px;background:#f8fbff;border-top:1px solid #dbe6f3}
#ttGoodsV33 .ttstk-create-side{padding:18px;background:#fff}
#ttGoodsV33 .ttstk-create-side label{display:block;margin:14px 0 6px;font-weight:800}
#ttGoodsV33 .ttstk-create-side input,#ttGoodsV33 .ttstk-create-side textarea{width:100%;box-sizing:border-box;border:1px solid #dbe6f3;border-radius:8px;padding:10px}
#ttGoodsV33 .ttstk-status{font-weight:900;padding:8px 0}
#ttGoodsV33 .ttstk-recent{margin-top:14px;border:1px solid #dbe6f3;min-height:140px}
#ttGoodsV33 .ttstk-recent h3{margin:0;background:#e8f3ff;padding:12px;font-size:15px}
#ttGoodsV33 .ttstk-recent p{padding:12px;color:#64748b}
#ttGoodsV33 .ttstk-create-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
#ttGoodsV33 .ttstk-create-actions button{height:54px;border:0;border-radius:8px;color:#fff;font-weight:900;cursor:pointer}
#ttGoodsV33 .ttstk-create-actions .save{background:#0078ff}
#ttGoodsV33 .ttstk-create-actions .done{background:#08a83f}
#ttGoodsV33 .pos{color:#15803d!important;font-weight:900}
#ttGoodsV33 .neg{color:#dc2626!important;font-weight:900}

/* TT_STOCKTAKE_CLEAN_LAYOUT_FIX_V2 */
#ttGoodsV33:has(.ttstk-table) .goods33-body{
  display:grid!important;
  grid-template-columns:300px minmax(0,1fr)!important;
  gap:0!important;
  align-items:start!important;
  overflow:hidden!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-filter{
  position:relative!important;
  left:auto!important;
  top:auto!important;
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
  z-index:1!important;
  box-sizing:border-box!important;
  background:#fff!important;
  overflow:visible!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-main{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
  width:100%!important;
  margin-left:0!important;
  background:#fff!important;
  overflow:auto!important;
}

#ttGoodsV33:has(.ttstk-table) .ttstk-toolbar{
  position:relative!important;
  z-index:3!important;
  padding-left:18px!important;
}

#ttGoodsV33:has(.ttstk-table) .ttstk-table{
  width:100%!important;
  position:relative!important;
  z-index:3!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-filter input,
#ttGoodsV33:has(.ttstk-table) .goods33-filter select,
#ttGoodsV33:has(.ttstk-table) .goods33-filter button{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-filter input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  max-width:18px!important;
}


/* TT_HIDE_OLD_STOCKTAKE_RENDER_V1 */
#ttGoodsV33 .goods33-check-toolbar-v2,
#ttGoodsV33 .goods33-stocktake-list-v2,
#ttGoodsV33 .goods33-export-menu-v2,
#ttGoodsV33 .goods33-column-menu-v2{
  display:none!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-check-toolbar-v2,
#ttGoodsV33:has(.ttstk-table) .goods33-stocktake-list-v2{
  display:none!important;
}


/* TT_STOCKTAKE_CREATE_OVERFLOW_FIX_V3 */
#ttGoodsV33:has(.ttstk-create-wrap) .goods33-body{
  display:grid!important;
  grid-template-columns:300px minmax(0,1fr)!important;
  height:calc(100vh - 160px)!important;
  overflow:hidden!important;
}

#ttGoodsV33:has(.ttstk-create-wrap) .goods33-filter{
  width:300px!important;
  min-width:300px!important;
  max-width:300px!important;
  height:calc(100vh - 160px)!important;
  overflow:auto!important;
  box-sizing:border-box!important;
}

#ttGoodsV33:has(.ttstk-create-wrap) .goods33-main{
  min-width:0!important;
  width:100%!important;
  height:calc(100vh - 160px)!important;
  overflow:hidden!important;
  background:#fff!important;
}

#ttGoodsV33 .ttstk-create-wrap{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 330px!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}

#ttGoodsV33 .ttstk-create-center{
  min-width:0!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
}

#ttGoodsV33 .ttstk-create-top{
  height:54px!important;
  padding:0 12px!important;
  gap:8px!important;
}

#ttGoodsV33 .ttstk-create-top h2{
  font-size:22px!important;
  min-width:90px!important;
}

#ttGoodsV33 .ttstk-search{
  max-width:520px!important;
  min-width:0!important;
}

#ttGoodsV33 .ttstk-tabs{
  height:42px!important;
}

#ttGoodsV33 .ttstk-line-table{
  margin:0 10px!important;
  height:calc(100% - 142px)!important;
  min-height:0!important;
  overflow:auto!important;
}

#ttGoodsV33 .ttstk-line-head,
#ttGoodsV33 .ttstk-line-row{
  grid-template-columns:52px 115px minmax(190px,1fr) 105px 90px 95px 90px 36px!important;
  min-width:780px!important;
}

#ttGoodsV33 .ttstk-empty.big{
  min-height:260px!important;
}

#ttGoodsV33 .ttstk-summary{
  height:42px!important;
  padding:8px 12px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

#ttGoodsV33 .ttstk-create-side{
  width:330px!important;
  min-width:330px!important;
  max-width:330px!important;
  height:100%!important;
  overflow:auto!important;
  padding:14px!important;
  box-sizing:border-box!important;
}

#ttGoodsV33 .ttstk-create-side label{
  margin:10px 0 5px!important;
}

#ttGoodsV33 .ttstk-create-side textarea{
  min-height:90px!important;
  max-height:110px!important;
}

#ttGoodsV33 .ttstk-recent{
  min-height:105px!important;
}

#ttGoodsV33 .ttstk-create-actions{
  position:sticky!important;
  bottom:0!important;
  background:#fff!important;
  padding-top:10px!important;
}

#ttGoodsV33 .ttstk-create-actions button{
  height:48px!important;
}


/* TT_STOCKTAKE_INLINE_MESSAGE_V1 */
#ttGoodsV33 .ttstk-inline-msg{
  margin-top:10px;
  padding:10px 12px;
  border-radius:8px;
  background:#ecfdf5;
  color:#166534;
  font-weight:700;
  line-height:1.4;
}


/* TT_STOCKTAKE_EXPORT_MENU_SELECT_V1 */
#ttGoodsV33 .ttstk-export-wrap{
  position:relative;
  display:inline-block;
}
#ttGoodsV33 .ttstk-export-menu{
  position:absolute;
  top:42px;
  right:0;
  min-width:210px;
  background:#fff;
  border:1px solid #dbe6f3;
  border-radius:8px;
  box-shadow:0 10px 28px rgba(15,23,42,.16);
  padding:6px;
  z-index:50;
}
#ttGoodsV33 .ttstk-export-menu button{
  display:block;
  width:100%;
  border:0;
  background:#fff;
  text-align:left;
  padding:10px 12px;
  border-radius:6px;
  cursor:pointer;
  font-weight:700;
}
#ttGoodsV33 .ttstk-export-menu button:hover{
  background:#eef6ff;
}
#ttGoodsV33 .ttstk-head,
#ttGoodsV33 .ttstk-row{
  grid-template-columns:42px 130px 150px 110px 150px 120px 120px minmax(160px,1fr) 130px!important;
}
#ttGoodsV33 .ttstk-head input,
#ttGoodsV33 .ttstk-row input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
}


/* TT_FIX_EXPORT_MENU_AND_STATUS_V2 */
#ttGoodsV33 .ttstk-toolbar,
#ttGoodsV33 .ttstk-actions,
#ttGoodsV33 .ttstk-export-wrap{
  overflow:visible!important;
}

#ttGoodsV33 .ttstk-export-menu{
  display:none;
  position:absolute!important;
  top:44px!important;
  right:0!important;
  width:230px!important;
  min-width:230px!important;
  background:#fff!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  box-shadow:0 14px 34px rgba(15,23,42,.18)!important;
  padding:6px!important;
  z-index:9999!important;
}

#ttGoodsV33 .ttstk-export-menu[style*="block"]{
  display:block!important;
}

#ttGoodsV33 .ttstk-export-menu button{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:38px!important;
  border:0!important;
  background:#fff!important;
  text-align:left!important;
  padding:10px 12px!important;
  color:#0f172a!important;
  font-weight:700!important;
  white-space:nowrap!important;
}

#ttGoodsV33 .ttstk-export-menu button:hover{
  background:#eef6ff!important;
}

#ttGoodsV33 .ttstk-table{
  overflow:visible!important;
}

#ttGoodsV33 .ttstk-head,
#ttGoodsV33 .ttstk-row{
  grid-template-columns:42px 125px 145px 105px 145px 115px 110px minmax(150px,1fr) 150px!important;
}

#ttGoodsV33 .ttstk-row em{
  display:inline-block!important;
  white-space:nowrap!important;
  min-width:95px!important;
  text-align:center!important;
  padding:5px 10px!important;
  line-height:1.2!important;
}


/* TT_FINAL_FIX_EXPORT_AND_STATUS_V3 */
#ttGoodsV33 .ttstk-export-menu{
  position:fixed!important;
  width:240px!important;
  min-width:240px!important;
  max-width:240px!important;
  background:#fff!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  box-shadow:0 18px 42px rgba(15,23,42,.24)!important;
  padding:6px!important;
  z-index:999999!important;
  overflow:visible!important;
}

#ttGoodsV33 .ttstk-export-menu button{
  display:block!important;
  width:100%!important;
  min-height:40px!important;
  border:0!important;
  background:#fff!important;
  color:#0f172a!important;
  text-align:left!important;
  padding:10px 12px!important;
  border-radius:6px!important;
  font-weight:700!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}

#ttGoodsV33 .ttstk-export-menu button:hover{
  background:#eef6ff!important;
}

#ttGoodsV33 .ttstk-head,
#ttGoodsV33 .ttstk-row{
  grid-template-columns:42px 125px 145px 105px 145px 115px 110px minmax(150px,1fr) 115px!important;
}

#ttGoodsV33 .ttstk-row em{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  width:auto!important;
  min-width:74px!important;
  max-width:88px!important;
  padding:4px 7px!important;
  line-height:1!important;
  font-size:12px!important;
  border-radius:999px!important;
  background:#e8fff1!important;
  color:#078331!important;
  font-style:normal!important;
  font-weight:800!important;
}


/* TT_EXPORT_MENU_BODY_LEVEL_V1 */
.ttstk-export-menu-body{
  position:fixed!important;
  width:250px!important;
  background:#fff!important;
  border:1px solid #cbd5e1!important;
  border-radius:10px!important;
  box-shadow:0 22px 55px rgba(15,23,42,.28)!important;
  padding:8px!important;
  z-index:2147483647!important;
}
.ttstk-export-menu-body button{
  display:block!important;
  width:100%!important;
  border:0!important;
  background:#fff!important;
  color:#0f172a!important;
  text-align:left!important;
  padding:12px 14px!important;
  border-radius:8px!important;
  font-weight:800!important;
  font-size:14px!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
.ttstk-export-menu-body button:hover{
  background:#eef6ff!important;
}


/* TT_REMOVE_OLD_STOCKTAKE_LEFTOVER_V1 */
#ttGoodsV33:has(.ttstk-table) .goods33-filter > *:not(:has(input)):empty{
  display:none!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-filter{
  background:#fff!important;
  border-right:1px solid #dbe6f3!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-filter h3:first-child{
  margin-top:0!important;
}

#ttGoodsV33:has(.ttstk-table) .goods33-main{
  background:#fff!important;
}

