/* gcu-contracts.css – Contract Management integration styles */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.gcu-contracts-wrapper {
  font-family: inherit;
  margin: 0 0 2rem;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.gcu-contracts-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 3px solid #006633; /* GCU green */
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.gcu-contracts-title {
  margin: 0;
  font-size: 1.4rem;
  color: #006633;
}
.gcu-contracts-count {
  font-size: 0.85rem;
  color: #666;
}

/* ── Note / sub-heading ───────────────────────────────────────────────────── */
.gcu-contracts-note {
  background: #f0f7f0;
  border-left: 4px solid #006633;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #333;
}

/* ── Alert boxes ──────────────────────────────────────────────────────────── */
.gcu-contracts-alert {
  padding: 1rem 1.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gcu-contracts-alert--error {
  background: #fff2f2;
  border: 1px solid #e00;
  color: #c00;
}
.gcu-contracts-alert--empty {
  background: #f9f9f9;
  border: 1px dashed #ccc;
  color: #555;
}
.gcu-icon { font-size: 1.1rem; }

/* ── Table ────────────────────────────────────────────────────────────────── */
.gcu-contracts-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gcu-contracts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 600px;
}
.gcu-contracts-table thead {
  background: #006633;
  color: #fff;
}
.gcu-contracts-table thead th {
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.gcu-contracts-table tbody tr.row-even {
  background: #f4faf4;
}
.gcu-contracts-table tbody tr.row-odd {
  background: #fff;
}
.gcu-contracts-table tbody tr:hover {
  background: #e8f5e9;
}
.gcu-contracts-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  color: #222;
}
.gcu-contracts-table td.row-num {
  color: #888;
  font-size: 0.8rem;
  width: 2.5rem;
  text-align: center;
}

/* ── Status badges ────────────────────────────────────────────────────────── */
.gcu-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-vetting   { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.badge-approved  { background: #d1e7dd; color: #0a5c36; border: 1px solid #198754; }
.badge-rejected  { background: #f8d7da; color: #842029; border: 1px solid #dc3545; }
.badge-completed { background: #cfe2ff; color: #084298; border: 1px solid #0d6efd; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.gcu-contracts-pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.pager-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: #006633;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.pager-btn:hover { background: #004d26; }
.pager-btn--disabled {
  background: #ccc;
  color: #666 !important;
  cursor: not-allowed;
}
.pager-info { font-size: 0.88rem; color: #555; }
