/**
 * Homewise CRM overrides on top of optional ePAMS manage.css.
 * Keeps our readable markup looking like classic Red Apple admin
 * even when the original manage.css is incomplete or absent.
 */

/* Soften any original ePAMS body rules that fight our wrap */
body #main,
body .maincontent,
body .content {
  font-family: "Microsoft JhengHei", "PingFang HK", "Noto Sans TC", "Segoe UI", Arial, sans-serif !important;
}

/* Ensure our header wins over any leftover manage.css chrome */
.epams-header {
  position: relative;
  z-index: 50;
}
.epams-toolbar {
  position: relative;
  z-index: 40;
}

/* Compact bilingual filter note */
.epams-filter-note {
  padding: 4px 8px 8px !important;
  margin: 0;
  font-size: 10px;
  color: #000;
  background: #f3f6fa;
  border-top: 1px dotted #c5d0e0;
}

/* Detail page sections as stacked ePAMS panels */
.epams-detail .card { margin-bottom: 8px; }

/* Make 詳情 stand out like classic ePAMS list links */
td .link-detail,
td a[href*="listing"] {
  color: #0645ad;
  font-weight: 600;
}

/* Login page background when class set on body */
body.login-page .wrap {
  max-width: none;
  padding: 0;
}

/* Print-ish dense listing table */
@media print {
  .epams-header, .epams-toolbar, .filters-spp, .actions, .pager { display: none !important; }
  body { background: #fff; font-size: 10pt; }
  th { background: #ccc !important; color: #000 !important; }
}

/* Tags on blue panel titles */
.card > h1 .tag,
.card > h2 .tag,
.epams-panel-title .tag {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
