:root{--nav:#101d35;--blue:#1769e0;--bg:#f3f6fa;--line:#e1e7ef;--muted:#748096}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:var(--bg);color:#172033}a{text-decoration:none;color:inherit}.login-page{min-height:100vh;display:grid;place-items:center;background:#f1f5fb}.login-card{width:390px;background:#fff;padding:42px;border-radius:18px;box-shadow:0 18px 55px #1b2d501f}.brand-mark{width:52px;height:52px;margin:auto;display:grid;place-items:center;border-radius:14px;background:var(--blue);color:#fff;font-weight:800}.login-card h1,.subtitle{text-align:center}.subtitle,.foot{color:var(--muted)}.login-card label{display:block;font-size:13px;font-weight:700;margin:15px 0 7px}.login-card input{width:100%;height:46px;border:1px solid #ccd5e1;border-radius:9px;padding:0 13px}.login-card button{width:100%;height:48px;border:0;border-radius:9px;background:var(--blue);color:#fff;font-weight:700;margin-top:22px}.err{color:#c33;margin-top:10px}.foot{text-align:center;font-size:12px;margin-top:25px}.shell{display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:218px;background:var(--nav);color:#cbd5e1;padding:20px 14px}.brand{display:flex;gap:10px;align-items:center;color:#fff;padding:4px 8px 22px}.brand>span{background:var(--blue);padding:10px;border-radius:10px}.brand small{display:block;color:#91a0b8}.sidebar nav{height:calc(100% - 65px);display:flex;flex-direction:column;gap:4px}.sidebar nav a{padding:12px;border-radius:9px}.sidebar nav a:hover,.sidebar nav a.active{background:#1d3356;color:#fff}.sidebar nav i{flex:1}main{margin-left:218px;width:calc(100% - 218px)}header{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 28px}header h2{margin:0}header small{color:var(--muted)}header a{color:var(--blue)}.content{padding:24px 28px}.report-head{display:flex;justify-content:space-between;align-items:center}.report-head h1{margin:0;font-size:22px}.report-head p{color:var(--muted)}.report-head input,.report-head button{height:38px;border:1px solid #ccd5e1;border-radius:8px;padding:0 10px}.report-head button{background:var(--blue);color:#fff}.batch{background:#eaf8f0;color:#197044;padding:9px 13px;border-radius:8px;margin-top:12px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.kpis>div{background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px}.kpis span{display:block;color:var(--muted);font-size:12px}.kpis b{display:block;font-size:21px;margin-top:7px}.filters{display:flex;justify-content:space-between;margin:16px 0}.filters a{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 11px;font-size:12px;margin-right:5px}.filters a.sel{background:#eaf2ff;color:#0d5dc8}.tablewrap{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:auto;max-height:calc(100vh - 315px)}table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:12px}th{position:sticky;top:0;background:var(--blue);color:#fff;padding:10px 9px}td{padding:7px 9px;border-bottom:1px solid #edf0f4;white-space:nowrap}td img{width:44px;height:44px;object-fit:contain}.nm{max-width:330px;white-space:normal}.nm small{display:block;color:var(--muted)}.num{text-align:right}.up{color:#d04444;font-weight:700}.down{color:#2471d1;font-weight:700}.flat{color:#687386;font-weight:700}.empty{background:#fff;border:1px solid var(--line);border-radius:14px;padding:50px;text-align:center}.menu-btn{border:0;background:none;font-size:22px;cursor:pointer;margin-right:12px}.nav-parent{width:100%;border:0;background:none;color:inherit;padding:12px 13px;border-radius:9px;display:flex;justify-content:space-between;font-size:14px;cursor:pointer}.nav-parent:hover{background:#1d3356;color:#fff}.submenu{padding:0 0 6px}.submenu.hide{display:none}.submenu a{padding:9px 13px 9px 30px!important;font-size:13px!important}.menu-closed .sidebar{transform:translateX(-218px)}.menu-closed .main{margin-left:0;width:100%}#backdrop{display:none}@media(max-width:760px){.sidebar{transform:translateX(-218px);z-index:30}.main,.menu-closed .main{margin-left:0;width:100%}.menu-closed .sidebar{transform:translateX(0)}.menu-closed #backdrop{display:block;position:fixed;inset:0;background:#0007;z-index:20}.content{padding:16px}.kpis{grid-template-columns:repeat(2,1fr)}.filters{display:block}.filters>div{margin-bottom:7px}.report-head{gap:10px;align-items:flex-start}.report-head h1{font-size:18px}.userbox{font-size:12px}.empty-card{min-height:55vh;display:grid;place-content:center}}

/* LV2 메뉴 세로 정렬 */
.submenu {
    display: block;
    width: 100%;
    padding: 2px 0 7px 0;
}

.submenu a {
    display: block;
    width: 100%;
    padding: 9px 14px 9px 29px;
    margin: 0;
    white-space: nowrap;
}

.submenu.hide {
    display: none;
}

/* ===== TSBOSS Sidebar LV1 통일 ===== */
.nav-parent,
.nav-direct {
    width: 100%;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
}

/* 좌측 브랜드 */
.side-brand {
    padding: 4px 12px 20px 12px;
    white-space: nowrap;
}

.side-brand b {
    display: inline;
    font-size: 16px;
    font-weight: 700;
}

.side-brand small {
    display: inline;
    margin-left: 5px;
    font-size: 12px;
    font-weight: 400;
}

/* ===== Sidebar LV1 최종 통일 ===== */
#sidebar nav > a,
#sidebar nav > button {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 0 16px !important;
    margin: 0 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 46px !important;

    text-align: left;
    text-decoration: none;
}

/* button 기본 스타일 차이 제거 */
#sidebar nav > button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
}

/* 펼침 화살표는 글자 크기에 영향 없도록 */
#sidebar nav > button span:last-child {
    font-size: 11px !important;
    line-height: 1;
}

/* LV2는 LV1보다 한 단계 작게 */
#sidebar .submenu > a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 16px 9px 30px !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
}

/* ===== Sidebar LV1 화살표 정렬 ===== */
#sidebar nav > button.nav-parent {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    height: 46px !important;
    padding: 0 16px !important;

    line-height: normal !important;
}

/* 메뉴명 */
#sidebar nav > button.nav-parent > span:first-child {
    display: block;
    flex: 1;
    text-align: left;
}

/* 우측 화살표 */
#sidebar nav > button.nav-parent > span:last-child {
    display: flex !important;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;

    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 11px !important;
    line-height: 1 !important;
    text-align: center;
}

/* =========================================================
   Inventory Snapshot Upload
   ========================================================= */

.inventory-upload-page {
    padding: 28px;
    background: #f4f7fb;
    min-height: calc(100vh - 64px);
}

.inventory-page-title {
    margin-bottom: 22px;
}

.inventory-page-title h2 {
    margin: 0 0 7px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.inventory-page-title p {
    margin: 0;
    font-size: 14px;
    color: #738096;
}

.inventory-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
    gap: 18px;
}

.inventory-card {
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(20, 35, 60, 0.04);
}

.inventory-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #172033;
}

.inventory-desc {
    margin: 0;
    color: #738096;
    font-size: 13px;
    line-height: 1.6;
}

.inventory-form {
    margin-top: 22px;
}

.inventory-field {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.inventory-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.inventory-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #cfd8e5;
    border-radius: 7px;
    background: #fff;
    font-size: 14px;
}

.inventory-field input:focus {
    outline: none;
    border-color: #2474e5;
    box-shadow: 0 0 0 3px rgba(36, 116, 229, 0.10);
}

.inventory-upload-button {
    display: block;
    width: calc(100% - 112px);
    height: 44px;
    margin: 20px 0 0 112px;
    border: 0;
    border-radius: 7px;
    background: #1769df;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.inventory-upload-button:hover {
    background: #105cc8;
}

.inventory-format-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 2px;
    border-bottom: 1px solid #edf1f6;
    font-size: 13px;
}

.inventory-format-row span {
    color: #6b7890;
}

.inventory-format-row b {
    color: #263449;
    font-weight: 600;
}

.inventory-format-notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #f4f7fb;
    color: #607087;
    font-size: 12px;
    line-height: 1.6;
}

.inventory-history {
    margin-top: 18px;
}

.inventory-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.inventory-history-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.inventory-history-table th,
.inventory-history-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e7ecf3;
    text-align: left;
    font-size: 13px;
}

.inventory-history-table th {
    background: #f7f9fc;
    color: #526077;
    font-weight: 600;
}

.inventory-history-table td {
    color: #344054;
}

.inventory-empty {
    padding: 32px !important;
    text-align: center !important;
    color: #8a97aa !important;
}

.inventory-message {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.inventory-success {
    border: 1px solid #b7e3c5;
    background: #edf9f1;
    color: #17713a;
}

.inventory-error {
    border: 1px solid #f3c0bd;
    background: #fff1f0;
    color: #b42318;
}


/* Mobile */
@media (max-width: 800px) {

    .inventory-upload-page {
        padding: 16px;
    }

    .inventory-page-title h2 {
        font-size: 20px;
    }

    .inventory-upload-grid {
        grid-template-columns: 1fr;
    }

    .inventory-card {
        padding: 17px;
    }

    .inventory-field {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .inventory-upload-button {
        width: 100%;
        margin-left: 0;
    }

    .inventory-history-table {
        min-width: 700px;
    }
}


/* =========================================================
   TSBOSS - 판매분석 > 판매추이
   기준 UI: sales_trend_20260924.html
   ========================================================= */

.sales-page{
  padding-top:28px;
}

.sales-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:20px;
}

.sales-breadcrumb{
  margin:0 0 20px;
  font-size:21px;
  font-weight:800;
}

.sales-report-title{
  margin:0 0 7px;
  font-size:22px;
  font-weight:800;
}

.sales-sub{
  font-size:13px;
  color:#75829a;
}

.sales-date-form{
  display:flex;
  gap:4px;
  align-items:center;
}

.sales-date-form input{
  height:36px;
  padding:0 10px;
  border:1px solid #d6deea;
  border-radius:8px;
  background:#fff;
}

.sales-date-form button{
  height:36px;
  padding:0 14px;
  border:0;
  border-radius:8px;
  background:#1769e0;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.sales-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.sales-kpi{
  min-height:68px;
  padding:12px 14px;
  background:#fff;
  border:1px solid #dfe5ee;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.sales-kpi span{
  color:#7b879b;
  font-size:11px;
  margin-bottom:5px;
}

.sales-kpi b{
  font-size:17px;
}

.sales-tools{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.sales-tool-group{
  display:flex;
  align-items:center;
  gap:5px;
}

.sales-tool-right{
  margin-left:auto;
}

.sales-btn{
  box-sizing:border-box;
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 11px;
  border:1px solid #dce4ef;
  border-radius:8px;
  background:#fff;
  color:#344258;
  font-size:12px;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
}

.sales-btn:hover{
  background:#f5f8fc;
}

.sales-btn.on{
  background:#edf4ff;
  color:#1769e0;
  border-color:#d6e5fb;
}

.sales-col-menu{
  position:relative;
}

.sales-col-panel{
  display:none;
  position:absolute;
  right:0;
  top:38px;
  width:210px;
  max-height:420px;
  overflow:auto;
  padding:10px;
  background:#fff;
  border:1px solid #dce3ed;
  border-radius:9px;
  box-shadow:0 8px 30px rgba(0,0,0,.13);
  z-index:50;
}

.sales-col-panel.open{
  display:block;
}

.sales-col-panel label{
  display:block;
  padding:5px 3px;
  font-size:12px;
  white-space:nowrap;
}

.sales-tablebox{
  width:100%;
  overflow:auto;
  border-top:1px solid #dbe2eb;
}

#salesTrendTable{
  width:100%;
  min-width:1500px;
  border-collapse:collapse;
  table-layout:auto;
  font-size:11px;
  background:transparent;
}

#salesTrendTable thead th{
  position:relative;
  height:35px;
  padding:4px 7px;
  background:#1769df;
  color:#fff;
  font-weight:700;
  text-align:center;
  white-space:nowrap;
  border-right:1px solid rgba(255,255,255,.08);
}

#salesTrendTable tbody td{
  height:48px;
  padding:4px 7px;
  border-bottom:1px solid #e4e9f0;
  vertical-align:middle;
  white-space:nowrap;
}

#salesTrendTable tbody tr:hover{
  background:#f7faff;
}

.sales-prod-img{
  display:block;
  width:42px;
  height:42px;
  object-fit:cover;
}

.sales-id{
  text-align:center;
}

.sales-name{
  min-width:250px;
  max-width:380px;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:700;
}

.sales-option{
  min-width:120px;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#566277;
}

.sales-num{
  text-align:right;
}

.sales-trend{
  text-align:center;
  font-weight:700;
}

.sales-trend.up,
.sales-spark.up{
  color:#e24646;
}

.sales-trend.down,
.sales-spark.down{
  color:#1769df;
}

.sales-trend.flat,
.sales-spark.flat{
  color:#68758a;
}

.sales-spark{
  width:90px;
  min-width:90px;
  text-align:center;
}

.sales-spark svg{
  display:block;
  width:86px;
  height:30px;
  margin:auto;
}

.sales-date-small{
  font-size:9px;
  opacity:.85;
  font-weight:500;
}

.sales-resize-grip{
  position:absolute;
  right:-2px;
  top:0;
  width:6px;
  height:100%;
  cursor:col-resize;
  z-index:3;
}

@media(max-width:1100px){
  .sales-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sales-title-row,
  .sales-tools{
    align-items:flex-start;
    flex-direction:column;
  }

  .sales-tool-right{
    margin-left:0;
    flex-wrap:wrap;
  }
}

/* =========================================================
   판매추이 UI 2차 조정
   - 상품정보 가독성 확대
   - 좌측 상품정보 sticky
   - 판매일자 영역 가로스크롤
   ========================================================= */

.sales-page{
  padding-top:22px;
}

/* 상단 영역 조금 압축 */
.sales-breadcrumb{
  margin-bottom:16px;
}

.sales-title-row{
  margin-bottom:16px;
}

.sales-kpis{
  margin-bottom:10px;
}

.sales-kpi{
  min-height:58px;
  padding:9px 13px;
}

.sales-kpi span{
  margin-bottom:3px;
}

.sales-tools{
  margin-bottom:8px;
}

/* 테이블은 화면에 억지로 압축하지 않는다 */
.sales-tablebox{
  position:relative;
  overflow-x:auto;
  overflow-y:visible;
  background:#fff;
  border:1px solid #dfe5ee;
  border-radius:6px;
}

#salesTrendTable{
  width:max-content;
  min-width:100%;
  table-layout:fixed;
  font-size:11px;
}

/* 기본 행 높이 */
#salesTrendTable tbody td{
  height:52px;
  padding:5px 8px;
}

/* 컬럼 기본 너비 */
#salesTrendTable th[data-key="img"],
#salesTrendTable td[data-c="img"]{
  width:58px;
  min-width:58px;
  max-width:58px;
}

#salesTrendTable th[data-key="id"],
#salesTrendTable td[data-c="id"]{
  width:105px;
  min-width:105px;
  max-width:105px;
}

#salesTrendTable th[data-key="name"],
#salesTrendTable td[data-c="name"]{
  width:330px;
  min-width:330px;
  max-width:330px;
}

#salesTrendTable th[data-key="opt"],
#salesTrendTable td[data-c="opt"]{
  width:180px;
  min-width:180px;
  max-width:180px;
}

#salesTrendTable th[data-key="amt0"],
#salesTrendTable td[data-c="amt0"]{
  width:105px;
  min-width:105px;
}

#salesTrendTable th[data-key="trend"],
#salesTrendTable td[data-c="trend"]{
  width:115px;
  min-width:115px;
}

#salesTrendTable th[data-key="spark"],
#salesTrendTable td[data-c="spark"]{
  width:100px;
  min-width:100px;
}

/* D-0 ~ D-13 */
#salesTrendTable th[data-key^="q"],
#salesTrendTable td[data-c^="q"]{
  width:54px;
  min-width:54px;
  text-align:center;
}

/* 상품 이미지 */
.sales-prod-img{
  width:44px;
  height:44px;
  border-radius:3px;
}

/* 상품명 가독성 */
.sales-name{
  font-size:11.5px;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sales-option{
  font-size:11px;
  color:#5c687b;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ---------------------------------------------------------
   좌측 4개 상품정보 컬럼 고정
   --------------------------------------------------------- */

#salesTrendTable th[data-key="img"],
#salesTrendTable td[data-c="img"]{
  position:sticky;
  left:0;
  z-index:5;
}

#salesTrendTable th[data-key="id"],
#salesTrendTable td[data-c="id"]{
  position:sticky;
  left:58px;
  z-index:5;
}

#salesTrendTable th[data-key="name"],
#salesTrendTable td[data-c="name"]{
  position:sticky;
  left:163px;
  z-index:5;
}

#salesTrendTable th[data-key="opt"],
#salesTrendTable td[data-c="opt"]{
  position:sticky;
  left:493px;
  z-index:5;
}

/* 헤더 sticky 컬럼 */
#salesTrendTable thead th[data-key="img"],
#salesTrendTable thead th[data-key="id"],
#salesTrendTable thead th[data-key="name"],
#salesTrendTable thead th[data-key="opt"]{
  z-index:10;
  background:#1769df;
}

/* 본문 sticky 컬럼 배경 */
#salesTrendTable tbody td[data-c="img"],
#salesTrendTable tbody td[data-c="id"],
#salesTrendTable tbody td[data-c="name"],
#salesTrendTable tbody td[data-c="opt"]{
  background:#fff;
}

#salesTrendTable tbody tr:hover td[data-c="img"],
#salesTrendTable tbody tr:hover td[data-c="id"],
#salesTrendTable tbody tr:hover td[data-c="name"],
#salesTrendTable tbody tr:hover td[data-c="opt"]{
  background:#f7faff;
}

/* 고정영역 오른쪽 경계 */
#salesTrendTable th[data-key="opt"],
#salesTrendTable td[data-c="opt"]{
  box-shadow:3px 0 5px rgba(20,40,70,.07);
}

/* 옵션ID */
.sales-id{
  font-size:11px;
  text-align:center;
}

/* 숫자 가독성 */
.sales-num{
  font-variant-numeric:tabular-nums;
}

/* 스크롤바 */
.sales-tablebox::-webkit-scrollbar{
  height:11px;
}

.sales-tablebox::-webkit-scrollbar-track{
  background:#eef2f7;
}

.sales-tablebox::-webkit-scrollbar-thumb{
  background:#b9c4d3;
  border-radius:10px;
  border:2px solid #eef2f7;
}

.sales-tablebox::-webkit-scrollbar-thumb:hover{
  background:#94a3b8;
}


/* =========================================================
   판매추이 UI V1 마무리
   ========================================================= */

/* 세로 스크롤 시 파란 헤더 고정 */
#salesTrendTable thead th{
  position:sticky;
  top:0;
  z-index:8;
}

/* 좌측 고정 헤더는 일반 헤더보다 위 */
#salesTrendTable thead th[data-key="img"],
#salesTrendTable thead th[data-key="id"],
#salesTrendTable thead th[data-key="name"],
#salesTrendTable thead th[data-key="opt"]{
  z-index:12;
}

/* 상품명은 현재보다 조금만 확대 */
#salesTrendTable th[data-key="name"],
#salesTrendTable td[data-c="name"]{
  width:350px;
  min-width:350px;
  max-width:350px;
}

/*
 상품명 +20px 증가에 맞춰
 옵션명 sticky 시작 위치도 +20px 이동
*/
#salesTrendTable th[data-key="opt"],
#salesTrendTable td[data-c="opt"]{
  left:513px;
}

/* 추세는 마우스 도움말이 있음을 표시 */
.sales-trend{
  cursor:help;
}

/* =========================================================
   판매추이 테이블 헤더 고정 FIX
   테이블 영역 자체를 세로/가로 스크롤 컨테이너로 사용
   ========================================================= */

.sales-tablebox{
  max-height:calc(100vh - 365px);
  overflow:auto;
  position:relative;
}

/* 모든 테이블 헤더 상단 고정 */
#salesTrendTable thead th{
  position:sticky !important;
  top:0 !important;
  z-index:20 !important;
  background:#1769df !important;
}

/* 좌측 고정 + 상단 고정이 겹치는 4개 헤더는 최상위 */
#salesTrendTable thead th[data-key="img"],
#salesTrendTable thead th[data-key="id"],
#salesTrendTable thead th[data-key="name"],
#salesTrendTable thead th[data-key="opt"]{
  z-index:30 !important;
}

/* 테이블 스크롤 영역을 너무 작게 만들지 않음 */
@media (min-height:800px){
  .sales-tablebox{
    max-height:calc(100vh - 350px);
  }
}


/* ==========================================================
   쿠팡 재고현황 V1
   ========================================================== */

.inventory-status-page{
  min-width:1100px;
}

.inv-page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:16px;
}

.inv-page-head h1{
  margin:0 0 5px;
  font-size:24px;
}

.inv-subtitle{
  font-size:13px;
  color:#6b7280;
}

.inv-date-form{
  display:flex;
  align-items:center;
  gap:8px;
}

.inv-date-form label{
  font-size:13px;
  font-weight:700;
}

.inv-date-form input,
.inv-date-form button,
.inv-tools input,
.inv-tools button{
  height:36px;
  border:1px solid #d7dce3;
  border-radius:7px;
  background:#fff;
  padding:0 11px;
}

.inv-date-form button,
.inv-tools button{
  cursor:pointer;
}

.inv-kpis{
  display:grid;
  grid-template-columns:repeat(5, minmax(130px,1fr));
  gap:10px;
  margin-bottom:14px;
}

.inv-kpi{
  border:1px solid #e2e6ec;
  border-radius:9px;
  background:#fff;
  padding:13px 15px;
  text-align:left;
  cursor:pointer;
}

.inv-kpi span{
  display:block;
  color:#6b7280;
  font-size:12px;
  margin-bottom:5px;
}

.inv-kpi strong{
  font-size:22px;
  color:#111827;
}

.inv-kpi.active{
  border-color:#1769df;
  box-shadow:0 0 0 1px #1769df inset;
}

.inv-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:9px;
}

.inv-filter-buttons{
  display:flex;
  gap:5px;
}

.inv-filter-buttons button{
  height:34px;
  padding:0 13px;
  border:1px solid #d7dce3;
  border-radius:7px;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}

.inv-filter-buttons button.active{
  background:#1769df;
  border-color:#1769df;
  color:#fff;
}

.inv-tools{
  display:flex;
  gap:6px;
}

#inventorySearch{
  width:260px;
}

.inv-column-panel{
  background:#fff;
  border:1px solid #dfe3e8;
  border-radius:8px;
  padding:10px 12px;
  margin-bottom:8px;
  box-shadow:0 5px 15px rgba(0,0,0,.06);
}

.inv-column-item{
  display:inline-block;
  margin:4px 16px 4px 0;
  font-size:13px;
}

.inv-result-line{
  font-size:12px;
  color:#6b7280;
  margin:5px 0 7px;
}

.inv-tablebox{
  position:relative;
  overflow:auto;
  max-height:calc(100vh - 335px);
  border:1px solid #dfe3e8;
  border-radius:7px;
  background:#fff;
}

#inventoryStatusTable{
  border-collapse:separate;
  border-spacing:0;
  width:max-content;
  min-width:100%;
  font-size:12px;
}

#inventoryStatusTable th,
#inventoryStatusTable td{
  padding:7px 8px;
  border-right:1px solid #e8ebef;
  border-bottom:1px solid #e8ebef;
  white-space:nowrap;
  vertical-align:middle;
}

#inventoryStatusTable thead th{
  position:sticky;
  top:0;
  z-index:20;
  background:#1769df;
  color:#fff;
  text-align:center;
  font-weight:700;
  min-width:80px;
}

#inventoryStatusTable thead th small{
  font-size:10px;
  opacity:.85;
}

#inventoryStatusTable tbody tr:hover td{
  background-color:#f7faff;
}

.inv-sortable{
  cursor:pointer;
  user-select:none;
}

.inv-sortable::after{
  content:' ↕';
  opacity:.45;
  font-size:10px;
}

.inv-sortable.sort-asc::after{
  content:' ▲';
  opacity:1;
}

.inv-sortable.sort-desc::after{
  content:' ▼';
  opacity:1;
}

.inv-product-img{
  width:54px;
  height:54px;
  object-fit:contain;
  display:block;
  margin:auto;
  background:#fff;
}

.inv-no-image{
  width:54px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f3f4f6;
  color:#9ca3af;
  border-radius:5px;
}

.inv-option-name{
  max-width:300px;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:600;
}

.inv-product-name{
  max-width:300px;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#8a919b;
  font-size:11px;
  margin-top:3px;
}

.inv-id{
  font-family:monospace;
}

.inv-num{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.inv-blue{
  color:#1769df;
  font-weight:700;
}

.inv-need{
  background:#fff8d8;
  font-weight:700;
}

.inv-urgent-badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:#fee2e2;
  color:#c81e1e;
  font-weight:800;
}

.inv-trend-up{
  color:#dc2626;
  font-weight:800;
}

.inv-trend-down{
  color:#2563eb;
  font-weight:800;
}

.inv-removal{
  background:#fff1dc;
  color:#b45309;
  font-weight:700;
}

.inv-weighted{
  background:#fff0f0;
  color:#b91c1c;
  font-weight:700;
}

.inv-interest{
  text-align:center;
}
