/* =====================================================================
   全福收费站仓库管理系统 - 自定义组件样式
   与原版 index_full.html 中 <style type="text/tailwindcss"> 的 @apply
   规则逐字等价（Tailwind 编译版不识别 play-CDN 的内联 @apply，故抽出）。
   颜色：primary #1890ff / secondary #52c41a / danger #f5222d / dark #001529
   ===================================================================== */

.content-auto { content-visibility: auto; }

/* 原版 .transition-all：all 300ms cubic-bezier(0.4,0,0.2,1) */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* 侧边栏选中态（bg-primary text-white） */
.sidebar-active { background-color: #1890ff; color: #fff; }
.sidebar-icon { margin-right: 0.75rem; font-size: 1.125rem; }

/* 按钮（px-4 py-2 rounded-md font-medium transition-all） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.4;
}
.btn-primary { background-color: #1890ff; color: #fff; }
.btn-primary:hover { background-color: rgba(24, 144, 255, 0.9); }
.btn-success { background-color: #52c41a; color: #fff; }
.btn-success:hover { background-color: rgba(82, 196, 26, 0.9); }
.btn-danger { background-color: #f5222d; color: #fff; }
.btn-danger:hover { background-color: rgba(245, 34, 45, 0.9); }
.btn-outline {
  background-color: #fff;
  border-color: #d1d5db;
  color: #374151;
}
.btn-outline:hover { background-color: #f3f4f6; }

/* 卡片（bg-white rounded-lg shadow-md p-6） */
.card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

/* 表单 */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #1f2937;
  background-color: #fff;
}
.form-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #1890ff;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
.table-container { overflow-x: auto; }

/* 表格（min-w-full divide-y divide-gray-200） */
.table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 0.75rem 1.5rem;
  background-color: #f9fafb;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1px solid #e5e7eb;
}
.table td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.table tbody tr:nth-child(even) td { background-color: #f9fafb; }
.table tbody tr:hover td { background-color: #f0f7ff; }

/* 状态徽标（px-2 py-1 text-xs font-semibold rounded-full） */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1.4;
}
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-success { background-color: #dcfce7; color: #166534; }

/* 表格行内双击编辑时的输入框（与原版内联样式一致） */
.cell-edit-input {
  width: 100%;
  border: 1px solid #ddd;
  padding: 4px;
  border-radius: 4px;
}
