/* Portfolio SKGA v5.3.9.58.65 — make Teaching Assignments visually match Electronic Journal */

/* Core look */
html[data-theme="dark"] .ta53942 {
  color:#f1f3f6 !important;
}
html[data-theme="dark"] .ta53942 .ta42-card {
  background:#171c24 !important;
  border:1px solid #2b323d !important;
  border-radius:18px !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .ta53942 .ta42-head {
  background:linear-gradient(180deg,#171c24 0%,#151a22 100%) !important;
}
html[data-theme="dark"] .ta53942 .ta42-icon {
  background:#2a2f38 !important;
  color:#f1f3f6 !important;
}
html[data-theme="dark"] .ta53942 h2,
html[data-theme="dark"] .ta53942 h3,
html[data-theme="dark"] .ta53942 .ta42-field label {
  color:#f3f5f8 !important;
}
html[data-theme="dark"] .ta53942 .ta42-muted,
html[data-theme="dark"] .ta53942 .ta42-secondary,
html[data-theme="dark"] .ta53942 #ta42FootCount,
html[data-theme="dark"] .ta53942 #ta53921Count {
  color:#a9b2bf !important;
}

/* Controls like journal */
html[data-theme="dark"] .ta53942 .ta42-field input,
html[data-theme="dark"] .ta53942 .ta42-field select,
html[data-theme="dark"] .ta53942 .ta42-size {
  background:#0f1319 !important;
  border:1px solid #313947 !important;
  color:#f1f3f6 !important;
  border-radius:10px !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .ta53942 .ta42-btn:not(.primary),
html[data-theme="dark"] .ta53942 .ta42-pagination button,
html[data-theme="dark"] .ta53942 .ta42-rowactions button {
  background:#212733 !important;
  border:1px solid #37404f !important;
  color:#eef2f7 !important;
}
html[data-theme="dark"] .ta53942 .ta42-btn.primary {
  background:#a51410 !important;
  border-color:#a51410 !important;
  color:#ffffff !important;
}
html[data-theme="dark"] .ta53942 .ta42-btn:hover,
html[data-theme="dark"] .ta53942 .ta42-pagination button:hover,
html[data-theme="dark"] .ta53942 .ta42-rowactions button:hover {
  filter:brightness(1.08) !important;
}
html[data-theme="dark"] .ta53942 .ta42-rowactions button[data-action="delete"] {
  background:#3a2327 !important;
  border-color:#6a3e45 !important;
  color:#ffb9c2 !important;
}

/* Count badges */
html[data-theme="dark"] .ta53942 .ta42-count,
html[data-theme="dark"] .ta53942 .ta42-pill,
html[data-theme="dark"] .ta53942 .ta42-avatar,
html[data-theme="dark"] .ta53942 .ta42-mini:not(.green):not(.orange) {
  background:#2b313d !important;
  color:#f2f4f8 !important;
  border:1px solid #3a4351 !important;
}
html[data-theme="dark"] .ta53942 .ta42-mini.green {
  background:#1d3a2c !important;
  color:#c7f1d8 !important;
}
html[data-theme="dark"] .ta53942 .ta42-semester {
  background:#3a2a1c !important;
  color:#ffd59c !important;
}

/* Table area styled closer to journal cards */
html[data-theme="dark"] .ta53942 .ta42-tablewrap {
  border:0 !important;
  background:transparent !important;
  overflow-x:auto !important;
}
html[data-theme="dark"] .ta53942 table {
  width:100% !important;
  min-width:980px !important;
  border-collapse:separate !important;
  border-spacing:0 10px !important;
}
html[data-theme="dark"] .ta53942 thead th {
  background:#1f2530 !important;
  color:#c7d0dc !important;
  border-top:1px solid #303847 !important;
  border-bottom:1px solid #303847 !important;
  padding:14px 14px !important;
}
html[data-theme="dark"] .ta53942 thead th:first-child {
  border-left:1px solid #303847 !important;
  border-top-left-radius:12px !important;
  border-bottom-left-radius:12px !important;
}
html[data-theme="dark"] .ta53942 thead th:last-child {
  border-right:1px solid #303847 !important;
  border-top-right-radius:12px !important;
  border-bottom-right-radius:12px !important;
}
html[data-theme="dark"] .ta53942 tbody td {
  background:#1b212b !important;
  border-top:1px solid #2f3745 !important;
  border-bottom:1px solid #2f3745 !important;
  color:#eef2f7 !important;
  padding:14px 14px !important;
  vertical-align:middle !important;
}
html[data-theme="dark"] .ta53942 tbody td:first-child {
  border-left:1px solid #2f3745 !important;
  border-top-left-radius:14px !important;
  border-bottom-left-radius:14px !important;
}
html[data-theme="dark"] .ta53942 tbody td:last-child {
  border-right:1px solid #2f3745 !important;
  border-top-right-radius:14px !important;
  border-bottom-right-radius:14px !important;
}
html[data-theme="dark"] .ta53942 tbody tr:hover td {
  background:#212833 !important;
}

/* Layout rhythm closer to journal */
html[data-theme="dark"] .ta53942 .ta42-head,
html[data-theme="dark"] .ta53942 .ta42-card,
html[data-theme="dark"] .ta53942 .ta42-tablehead {
  gap:14px !important;
}
html[data-theme="dark"] .ta53942 .ta42-filters {
  grid-template-columns:minmax(240px,1.7fr) repeat(4,minmax(150px,1fr)) minmax(120px,.7fr) auto auto !important;
}
html[data-theme="dark"] .ta53942 .ta42-actions {
  gap:10px !important;
}
html[data-theme="dark"] .ta53942 .ta42-foot {
  padding-top:4px !important;
}

/* Mobile/tablet */
@media (max-width: 1350px) {
  html[data-theme="dark"] .ta53942 .ta42-filters {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media (max-width: 760px) {
  html[data-theme="dark"] .ta53942 .ta42-filters {
    grid-template-columns:1fr !important;
  }
  html[data-theme="dark"] .ta53942 .ta42-head {
    align-items:flex-start !important;
  }
}

/* Light theme: keep neutral and softer, not blue */
html:not([data-theme="dark"]) .ta53942 .ta42-card {
  background:#ffffff !important;
  border-color:#dddfe3 !important;
  box-shadow:0 3px 12px rgba(0,0,0,.04) !important;
}
html:not([data-theme="dark"]) .ta53942 .ta42-icon,
html:not([data-theme="dark"]) .ta53942 .ta42-count,
html:not([data-theme="dark"]) .ta53942 .ta42-pill,
html:not([data-theme="dark"]) .ta53942 .ta42-avatar,
html:not([data-theme="dark"]) .ta53942 .ta42-mini:not(.green):not(.orange) {
  background:#ededed !important;
  color:#333 !important;
  border-color:#e1e1e1 !important;
}
html:not([data-theme="dark"]) .ta53942 .ta42-field input,
html:not([data-theme="dark"]) .ta53942 .ta42-field select,
html:not([data-theme="dark"]) .ta53942 .ta42-size,
html:not([data-theme="dark"]) .ta53942 .ta42-btn:not(.primary) {
  background:#fbfbfb !important;
  border-color:#d7d7d7 !important;
  color:#222 !important;
}
html:not([data-theme="dark"]) .ta53942 table { border-collapse:separate !important; border-spacing:0 10px !important; }
html:not([data-theme="dark"]) .ta53942 .ta42-tablewrap { border:0 !important; }
html:not([data-theme="dark"]) .ta53942 thead th {
  background:#f1f1f1 !important;
  color:#444 !important;
  border-top:1px solid #e1e1e1 !important;
  border-bottom:1px solid #e1e1e1 !important;
}
html:not([data-theme="dark"]) .ta53942 thead th:first-child,
html:not([data-theme="dark"]) .ta53942 tbody td:first-child { border-top-left-radius:12px !important; border-bottom-left-radius:12px !important; }
html:not([data-theme="dark"]) .ta53942 thead th:last-child,
html:not([data-theme="dark"]) .ta53942 tbody td:last-child { border-top-right-radius:12px !important; border-bottom-right-radius:12px !important; }
html:not([data-theme="dark"]) .ta53942 tbody td {
  background:#ffffff !important;
  border-top:1px solid #e7e7e7 !important;
  border-bottom:1px solid #e7e7e7 !important;
}
html:not([data-theme="dark"]) .ta53942 tbody td:first-child { border-left:1px solid #e7e7e7 !important; }
html:not([data-theme="dark"]) .ta53942 tbody td:last-child { border-right:1px solid #e7e7e7 !important; }
