/* ============================================================
   MII Assignee × Tracker Overview — mii_ato.css
   Open tickets only. Compatible: Redmine 4.x
   ============================================================ */

/* Hidden until JS moves it into position — prevents flash */
#mii-ato-wrap.mii-ato-pending { display: none; }

#mii-ato-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.mii-ato-title {
  font-size: 0.92em;
  font-weight: 700;
  color: #555;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mii-ato-sub-title {
  font-weight: 400;
  font-size: 0.85em;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
}

.mii-ato-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mii-ato-table {
  border-collapse: collapse;
  font-size: 0.82em;
  min-width: 100%;
  white-space: nowrap;
}

.mii-ato-table th,
.mii-ato-table td {
  padding: 4px 10px;
  border: 1px solid #e8e8e8;
  text-align: center;
  vertical-align: middle;
}

.mii-ato-table thead th {
  background: #f0f4ff;
  color: #2a4ab5;
  font-weight: 600;
  font-size: 0.88em;
  border-bottom: 2px solid #c5d0f0;
}

.mii-ato-user-col {
  text-align: left !important;
  min-width: 120px;
  background: #f7f7f7 !important;
  color: #444 !important;
}

.mii-ato-user {
  text-align: left !important;
  background: #fafafa;
  white-space: nowrap;
}

.mii-ato-user img {
  vertical-align: middle;
  border-radius: 50%;
  margin-right: 4px;
}

.mii-ato-user-link {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}
.mii-ato-user-link:hover { text-decoration: underline; }

.mii-ato-num { min-width: 36px; color: #2e7d32; font-weight: 500; }
.mii-ato-num a { color: #2e7d32; text-decoration: none; font-weight: 600; }
.mii-ato-num a:hover { text-decoration: underline; }

.mii-ato-row-total {
  background: #f0f4ff;
  color: #2a4ab5 !important;
  font-weight: 700 !important;
  border-left: 2px solid #c5d0f0;
}
.mii-ato-row-total a { color: #2a4ab5 !important; font-weight: 700; }

.mii-ato-zero { color: #ccc; }

.mii-ato-totals td {
  background: #f0f4ff;
  border-top: 2px solid #c5d0f0;
  font-weight: 600;
  color: #2a4ab5;
}

.mii-ato-table tbody tr:nth-child(even) td { background-color: #fafcff; }
.mii-ato-table tbody tr:hover td { background-color: #eef3ff; }
