#wrapper {
  overflow-x: hidden;
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -15rem;
  -webkit-transition: margin .25s ease-out;
  -moz-transition: margin .25s ease-out;
  -o-transition: margin .25s ease-out;
  transition: margin .25s ease-out;
  width: 15rem;
  background-color: #2c3036 !important;
}

#sidebar-wrapper .sidebar-heading {
  padding: 1.2rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #2c3036 !important;
  color: #fff !important;
  border-bottom: 1px solid #3e444a !important;
}

#sidebar-wrapper .list-group {
  width: 15rem;
}

#page-content-wrapper {
  min-width: 100vw;
}

body.sb-sidenav-toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: -15rem;
  }
}

.list-group-item-dark {
    background-color: #2c3036;
    border-color: #2c3036;
    color: #aeb4b9;
    border-left: 4px solid transparent;
}
.list-group-item-dark:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
}
.list-group-item-dark.active {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
    border-left-color: #0d6efd;
    font-weight: 600;
}

/* Original styles below */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /* margin-bottom: 60px; */
  min-height: 100vh;
  /* display: flex; flex-direction: column; */
}

.table > thead {
  background-color: #f8f9fa;
}

.table th {
  font-weight: 600;
  color: #495057;
}

.card {
  border-radius: 0.5rem;
}

.navbar-brand {
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
}

.nav-link.active {
  color: #fff !important;
  font-weight: 700;
}

/* 自适应表格样式 */
.table-responsive-adaptive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 订单列表表格样式 */
.orders-table {
    width: 100%;
    table-layout: auto;
}

.orders-table th,
.orders-table td {
    white-space: nowrap;
    vertical-align: middle;
}

/* 操作列最小宽度 */
.orders-table .action-column {
    min-width: 200px;
}

/* 响应式断点 */
@media (max-width: 1400px) {
    .orders-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .orders-table {
        font-size: 0.85rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.5rem;
    }
}

/* 标签页容器样式 */
.tab-container {
    position: relative;
    z-index: 10;
}

#tab-list {
    flex-wrap: nowrap;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

/* 标签页样式 */
.tab-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-item:hover {
    background-color: #e9ecef;
}

.tab-item.active {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    box-shadow: 0 -2px 0 0 #0d6efd;
}

/* 标签页关闭按钮 */
.tab-close {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

.tab-close:hover {
    color: #dc3545;
}

/* 标签页内容区域 */
.tab-content {
    min-height: calc(100vh - 180px);
}

/* 标签页右键菜单 */
#tab-context-menu {
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    z-index: 1050;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

#tab-context-menu a {
    text-decoration: none;
    color: #495057;
}

#tab-context-menu a:hover {
    background-color: #f8f9fa;
}