/* ===== page resources-resourcelist (compiled from Vue SCSS) ===== */
@charset "UTF-8";
.w-100 {
  width: 100%;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-error {
  color: #c94a4a;
}

.font-weight-500 {
  font-weight: 500;
}

.btn-outline-primary {
  border: 1px solid #0b6b5a;
  color: #0b6b5a;
}

.d-block {
  display: block;
}

.align-items-end {
  align-items: flex-end;
}

.overflow-hidden {
  overflow: hidden;
}

.border-top {
  border-top: 1px solid #d9e5e0;
}

.clear-input-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
}
.clear-input-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #0b6b5a;
}

.justify-end {
  justify-content: flex-end;
}

/* Filters*/
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9e5e0;
  border-radius: 4px;
  font-size: 14px;
  background-color: #ffffff;
}
.form-input:focus {
  outline: none;
  border-color: #0b6b5a;
  box-shadow: 0 0 0 2px rgba(11, 107, 90, 0.1);
}

/* Table*/
.data-table {
  border-collapse: collapse;
}
.data-table th {
  border-bottom: 1px solid #d9e5e0;
}
.data-table .table-row-hover {
  transition: background-color 0.2s;
}
.data-table .table-row-hover:hover {
  background-color: rgba(11, 107, 90, 0.02);
}

/* Modal*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.modal-content .close-btn {
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

/* 针对 outline 和 primary 按钮特别处理 active/hover 下不要变色 */
.btn-primary.no-hover-bg:hover, .btn-primary.no-hover-bg:focus, .btn-primary.no-hover-bg:active {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
}

.btn-outline-primary.no-hover-bg:hover, .btn-outline-primary.no-hover-bg:focus, .btn-outline-primary.no-hover-bg:active {
  background-color: #ffffff !important;
  color: #0b6b5a !important;
  border-color: #0b6b5a !important;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.min-w-0 {
  min-width: 0;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reverted from utilities.scss */
.py-8 {
  padding-top: 48px;
  padding-bottom: 80px;
}

.mb-8 {
  margin-bottom: 80px;
}

.mb-6 {
  margin-bottom: 48px;
}

.mb-4 {
  margin-bottom: 24px;
}

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

.text-secondary {
  color: #66736e;
}

.text-main {
  color: #1e2b27;
}

.text-sm {
  font-size: 14px;
}

.cursor-pointer {
  cursor: pointer;
}

.hover-primary {
  transition: color 0.3s;
}
.hover-primary:hover {
  color: #0b6b5a;
}

.mb-2 {
  margin-bottom: 12px;
}

.text-primary {
  color: #0b6b5a;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.py-10 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.p-4 {
  padding: 24px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mr-3 {
  margin-right: 16px;
}

.text-left {
  text-align: left;
}

.text-white {
  color: #ffffff;
}

.text-xs {
  font-size: 12px;
}

.max-w-800 {
  max-width: 800px;
}

.opacity-50 {
  opacity: 0.5;
}

.bg-light {
  background-color: #f7faf9;
}

.border {
  border: 1px solid #d9e5e0;
}

.position-relative {
  position: relative;
}

.flex-column {
  flex-direction: column;
}

.gap-3 {
  gap: 16px;
}

.interactive-btn {
  transition: transform 0.2s ease;
}
.interactive-btn:hover, .interactive-btn:focus {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
}
.interactive-btn:active {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
  transform: scale(0.96) translateY(2px);
}

.no-hover-bg:hover, .no-hover-bg:focus {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
}

.gap-4 {
  gap: 24px;
}

.mt-1 {
  margin-top: 8px;
}

.p-5 {
  padding: 32px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mt-8 {
  margin-top: 80px;
}

.mt-4 {
  margin-top: 24px;
}

/* Reverted responsive */
@media (max-width: 1199px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .data-table th,
  .data-table td {
    padding: 12px 8px !important;
    font-size: 13px !important;
  }
  .data-table .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
  }
  .data-table .file-icon {
    margin-right: 8px !important;
  }
}
@media (max-width: 767px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    justify-content: center !important;
  }
  .card.overflow-hidden {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    min-width: 800px; /* 强制表格最小宽度，以允许横向滚动*/
  }
  .data-table th,
  .data-table td {
    white-space: nowrap;
  }
  .data-table {
    /* 将第一列资料名称固定在左侧*/
  }
  .data-table .sticky-col {
    position: sticky;
    left: 0;
    background-color: inherit;
    z-index: 10;
    border-right: 1px solid #d9e5e0; /* 增加右侧边框作为阴影区分*/
    max-width: 180px; /* 限制固定列的最大宽度*/
  }
  .data-table th.sticky-col {
    background-color: #f7faf9;
    z-index: 11;
  }
  .data-table td.sticky-col {
    background-color: #ffffff;
  }
  .data-table {
    /* 处理名称最多显示 10 个字符截断*/
  }
  .data-table .resource-name {
    max-width: 130px; /* 结合字号大约限制在 10 个中文字符左右*/
  }
}
@media (min-width: 768px) {
  .d-none-desktop {
    display: none;
  }
}
@media (max-width: 767px) {
  .d-none-desktop {
    display: none; /* 既然移动端也是横向滚动看全表了，第一列底下也不需要额外显示*/
  }
}