:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #e74c3c;
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --text-color: #333333;
  --light-text: #666666;
  --border-color: #e0e0e0;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', '微软雅黑', 'Microsoft YaHei', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--light-text);
  font-size: 1.1rem;
}

.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.card h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.search-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: #c0392b;
}

.result-box {
  background-color: #f1f8fc;
  border: 1px solid #d4e8f4;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  display: none;
}

.result-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.result-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-item {
  margin-bottom: 0.8rem;
}

.result-item label {
  display: block;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 0.3rem;
}

.result-item p {
  font-size: 1.1rem;
  background-color: white;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  overflow-wrap: break-word;
  word-break: break-word;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn-quick {
  padding: 0.8rem 1rem;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin-left: 10px;
  vertical-align: middle;
}

.btn-warning {
  background-color: var(--warning-color);
}

.btn-warning:hover {
  background-color: #e67e22;
}

.edit-form {
  margin-top: 1rem;
  display: none;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* 确认对话框样式 */
.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.confirm-dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  z-index: 1001;
  width: 90%;
  max-width: 400px;
}

.confirm-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.confirm-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  text-align: left;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  word-break: break-word;
}

.table tr:nth-child(even) {
  background-color: #f1f8fc;
}

.table tr:hover {
  background-color: #e6f2fa;
}

.status {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-init {
  background-color: #fff8e1;
  color: #ff9800;
}

.status-processed {
  background-color: #e8f5e9;
  color: #4caf50;
}

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: var(--success-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  font-weight: bold;
  min-width: 250px;
  text-align: center;
}

.toast.error {
  background-color: var(--error-color);
}

/* 刷新按钮样式 */
.btn-icon {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  margin-left: 10px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--accent-color-light);
  color: var(--accent-color);
  transform: rotate(15deg);
}

.rotate {
  animation: rotate-animation 1s linear infinite;
}

.btn-icon.rotate {
  animation: rotate-animation 1s linear infinite;
}

@keyframes rotate-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 响应式设计 - 移除冲突的样式，使用统一的flex布局 */

/* 小屏幕优化 */
@media (max-width: 375px) {
  .container {
    padding: 0.5rem;
  }
  
  .table tr {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .table td:before {
    font-size: 13px;
    min-width: 70px;
  }
  
  .result-item p {
    font-size: 0.9rem;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .card {
    padding: 0.75rem;
  }
}

/* 添加搜索结果列表的样式 */
.search-results {
  margin-top: 1.5rem;
  background-color: #f1f8fc;
  border: 1px solid #d4e8f4;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  display: none;
}

.search-results h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.results-count {
  margin-bottom: 1rem;
  color: var(--light-text);
  font-size: 0.9rem;
}

.results-count span {
  font-weight: bold;
  color: var(--primary-color);
}

/* 确保表格内的按钮样式正确 */
.table .btn-small {
  margin: 0;
  white-space: nowrap;
}

/* 响应式样式调整 - 移除冲突的样式 */ 

.btn-info {
  background-color: #3498db;
}

.btn-info:hover {
  background-color: #2980b9;
}

/* 订单信息区域样式 */
.order-info {
  background-color: #f1f8fc;
  border: 1px solid #d4e8f4;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  display: none;
}

.order-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 快捷操作区域样式 */
.quick-actions {
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
}

.quick-actions h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.quick-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* 详细信息列表样式 - 多列网格布局（参考移动端卡片设计） */
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.2rem;
  max-height: 600px;
  overflow-y: auto;
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
}

/* 美化滚动条 */
.detail-list::-webkit-scrollbar {
  width: 8px;
}

.detail-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.detail-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.detail-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.detail-item-log {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.detail-item-log:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
  transform: translateY(-3px);
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #f0f8ff, #e3f2fd);
  border-bottom: 2px solid #e0e0e0;
}

.log-operation {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.log-time {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.log-details {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.log-detail-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.log-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.log-detail-label {
  font-weight: 600;
  color: #555;
  min-width: 90px;
  flex-shrink: 0;
}

.log-detail-value {
  color: var(--text-color);
  word-break: break-all;
  flex: 1;
  line-height: 1.5;
}

/* 提示信息特殊样式 */
.detail-item-log.note-item {
  background-color: #fff3cd !important;
  border-color: #ffc107 !important;
}

.detail-item-log.note-item .log-header {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border-bottom-color: #ffc107;
}

.detail-item-log.note-item .log-operation {
  color: #f57f17;
}

/* 桌面端多列优化 */
@media (min-width: 1400px) {
  .detail-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) and (max-width: 1399px) {
  .detail-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 999px) {
  .detail-list {
    grid-template-columns: 1fr;
  }
}

/* 表格优化样式 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 16px;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.table td {
  word-wrap: break-word;
  max-width: 150px;
}


/* 可点击行样式 */
.clickable-row {
  cursor: pointer;
  transition: all 0.2s;
}

.clickable-row:hover {
  background-color: #f0f8ff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clickable-row:hover td {
  background-color: transparent !important;
}

.clickable-row:active {
  transform: translateY(0);
}

/* 状态标签优化 */
.status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-init {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status-processed {
  background-color: #e8f5e8;
  color: #388e3c;
}

/* 按钮优化 */
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
}

/* 头部优化 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--border-color);
}

.header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.header p {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  opacity: 0.8;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 8px 16px;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 卡片优化 */
.card {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 搜索结果优化 */
.results-count {
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* 详细信息网格优化 */
.result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-item {
  margin-bottom: 0;
}

.result-item label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.result-item p {
  font-size: 14px;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin: 0;
  word-break: break-all;
}

/* 桌面端默认表格样式 - 确保正常显示 */
@media (min-width: 769px) {
  #recent-activations {
    display: table !important;
    width: 100% !important;
  }
  
  #recent-activations thead {
    display: table-header-group !important;
  }
  
  #recent-activations tbody {
    display: table-row-group !important;
  }
  
  #recent-activations tr {
    display: table-row !important;
  }
  
  #recent-activations th,
  #recent-activations td {
    display: table-cell !important;
    vertical-align: middle !important;
  }
  
  .table {
    display: table !important;
  }
  
  .table thead {
    display: table-header-group !important;
  }
  
  .table tbody {
    display: table-row-group !important;
  }
  
  .table tr {
    display: table-row !important;
  }
  
  .table th,
  .table td {
    display: table-cell !important;
  }
}

/* 响应式设计优化 - 中等屏幕 */
@media (min-width: 769px) and (max-width: 1200px) {
  .table {
    font-size: 13px;
  }
  
  .table th,
  .table td {
    padding: 10px 6px;
  }
}

/* ========== 移动端样式 - 统一管理 ========== */
@media screen and (max-width: 768px) {
  /* 基础布局 */
  .container {
    padding: 1rem !important;
  }
  
  .header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  
  /* 表格完全重构 - 仅针对移动端 */
  #recent-activations {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  #recent-activations thead {
    display: none !important;
  }
  
  #recent-activations tbody {
    display: block !important;
  }
  
  #recent-activations tr {
    display: block !important;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    margin-bottom: 1.5rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    position: relative !important;
  }
  
  /* 针对最近激活记录的表格 */
  #recent-activations td {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 0 !important;
    padding-left: 120px !important; /* 为标签留出空间 */
    border: none !important;
    text-align: left !important;
    position: relative !important;
    min-height: 40px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    /* 关键修复：取消强制换行，改为行内显示 */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  #recent-activations td:last-child {
    border-bottom: none !important;
  }
  
  /* 为移动端表格添加数据标签 */
  #recent-activations td::before {
    content: attr(data-label) ":" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.75rem !important;
    width: 110px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  
  /* 修复IP地址/归属地的显示 */
  #recent-activations td[data-label="IP地址 / 归属地"] {
    white-space: normal !important; /* 允许IP和归属地换行 */
    padding-bottom: 0.5rem !important;
  }
  
  #recent-activations td[data-label="IP地址 / 归属地"] small {
    display: block !important;
    margin-top: 0.3rem !important;
  }
  
  /* 其他表格样式 */
  .table {
    display: block !important;
    width: 100% !important;
  }
  
  .table thead {
    display: none !important;
  }
  
  .table tbody {
    display: block !important;
  }
  
  .table tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  .table td {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
    padding-left: 100px !important;
    position: relative !important;
    min-height: 30px !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    line-height: 1.5 !important;
  }
  
  .table td * {
    display: inline !important;
    white-space: normal !important;
  }
  
  .table td br {
    display: block !important;
  }
  
  .table td .btn {
    display: inline-block !important;
  }
  
  .table td::before {
    content: attr(data-label) ": " !important;
    position: absolute !important;
    left: 0 !important;
    top: 8px !important;
    width: 90px !important;
    font-weight: 600 !important;
    color: #3498db !important;
    font-size: 14px !important;
  }
  
  /* 详细信息列表移动端优化 */
  .detail-list {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0.8rem !important;
  }
  
  .detail-item-log {
    border-radius: 8px !important;
  }
  
  .log-header {
    padding: 0.8rem 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  
  .log-details {
    padding: 1rem !important;
  }
  
  .log-detail-label {
    min-width: 80px !important;
    font-size: 0.85rem !important;
  }
  
  .log-detail-value {
    font-size: 0.85rem !important;
  }
  
  /* 其他响应式调整 */
  .result-details {
    grid-template-columns: 1fr !important;
  }
  
  .search-form {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .action-buttons {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
}

/* 详情模态框样式 */
.detail-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.detail-modal-content {
  background-color: white;
  margin: 3% auto;
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideIn 0.3s;
}

/* 移动端模态框重新设计 */
@media (max-width: 768px) {
  .detail-modal {
    padding: 1rem;
  }
  
  .detail-modal-content {
    margin: 2rem auto;
    width: calc(100% - 2rem);
    max-width: none;
    max-height: calc(100vh - 4rem);
    border-radius: 12px;
    overflow: hidden;
  }
  
  .detail-modal-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  }
  
  .detail-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  .detail-modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 8rem);
  }
  
  /* 重新设计详情网格为垂直卡片 */
  .detail-grid {
    display: block;
    padding: 1rem;
  }
  
  .detail-row {
    display: block;
    margin-bottom: 0;
  }
  
  .detail-item {
    display: block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .detail-item:last-child {
    margin-bottom: 0;
  }
  
  .detail-item-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .detail-item-value {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 0;
  }
  
  /* 状态值特殊样式 */
  .detail-item-value.status-value {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    width: auto;
    margin: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.detail-modal-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.detail-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.detail-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.detail-modal-body {
  padding: 1.5rem;
  overflow: hidden;
}

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-row .single-item {
  grid-column: 1 / -1;
}

.detail-item {
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.8rem;
}

.detail-item-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.detail-item-value {
  font-size: 16px;
  color: var(--text-color);
  word-break: break-all;
  font-family: 'Courier New', monospace;
  background-color: white;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  margin: 0;
  line-height: 1.4;
}

.detail-item-value.status-value {
  font-family: inherit;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}

.detail-item-value.status-init {
  background-color: #e3f2fd;
  color: #1976d2;
  border-color: #1976d2;
}

.detail-item-value.status-processed {
  background-color: #e8f5e8;
  color: #388e3c;
  border-color: #388e3c;
} 