/* GovCare — Operator Portal Styles */

body.op-body { margin: 0; background: var(--gc-bg); font-family: var(--gc-font-ar); overflow-x: hidden; }

.op-nav-badge {
  position: absolute; top: -6px; left: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--gc-warning);
  color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.op-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 768px) { .op-kpi-row { grid-template-columns: 1fr; } }
.op-kpi {
  background: var(--gc-surface); border: 1px solid var(--gc-border-light);
  border-radius: var(--gc-radius-md); padding: 16px; text-align: center;
  box-shadow: var(--gc-shadow-sm);
}
.op-kpi-num { font-size: 1.6rem; font-weight: 800; color: var(--gc-navy); }
.op-kpi-lbl { font-size: 0.8rem; color: var(--gc-text-secondary); margin-top: 2px; }
.op-kpi--warn .op-kpi-num { color: var(--gc-warning); }
.op-kpi--info .op-kpi-num { color: var(--gc-info); }

.op-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.95rem; font-weight: 700; color: var(--gc-navy); margin-bottom: 14px;
}
.op-panel-subhd { font-size: 0.85rem; font-weight: 700; color: var(--gc-text-secondary); margin-bottom: 8px; }
.op-link-btn {
  border: 0; background: none; color: var(--gc-blue);
  font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}

.op-empty {
  text-align: center; padding: 40px 20px; color: var(--gc-text-tertiary);
}
.op-empty i { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.4; }
.op-empty-title { font-size: 1rem; font-weight: 700; color: var(--gc-text-secondary); margin-bottom: 6px; }
.op-empty-text { font-size: 0.85rem; line-height: 1.6; max-width: 420px; margin: 0 auto; }

.op-row-click { cursor: pointer; }
.op-row-click:hover { background: var(--gc-blue-soft) !important; }

.op-assign-layout { padding: 0 4px; }
.op-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--gc-blue);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; margin-bottom: 14px; padding: 0;
}
.op-back-btn i { width: 16px; height: 16px; }

.op-assign-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start;
}
@media (max-width: 1024px) { .op-assign-grid { grid-template-columns: 1fr; } }

.op-detail-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
}
.op-detail-meta label {
  display: block; font-size: 0.72rem; color: var(--gc-text-tertiary);
  font-weight: 600; margin-bottom: 2px;
}
.op-detail-meta span, .op-detail-meta strong { font-size: 0.88rem; }
.op-desc { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--gc-text-secondary); }

.op-timeline { display: flex; flex-direction: column; gap: 10px; }
.op-tl-item { display: flex; gap: 10px; align-items: flex-start; }
.op-tl-item i { width: 16px; height: 16px; color: var(--gc-blue); margin-top: 2px; flex-shrink: 0; }
.op-tl-action { font-size: 0.85rem; font-weight: 600; color: var(--gc-text); }
.op-tl-meta { font-size: 0.75rem; color: var(--gc-text-tertiary); }

.op-hint { font-size: 0.82rem; color: var(--gc-text-secondary); line-height: 1.5; margin: 0 0 14px; }
.op-form { display: flex; flex-direction: column; gap: 8px; }
.op-form label { font-size: 0.78rem; font-weight: 600; color: var(--gc-text-secondary); margin-top: 6px; }
.op-select, .op-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm); font-family: inherit; font-size: 0.88rem;
  background: var(--gc-surface); color: var(--gc-text);
}
.op-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.op-btn {
  border: 0; border-radius: var(--gc-radius-sm); font-family: inherit;
  font-weight: 600; cursor: pointer; padding: 10px 18px; font-size: 0.85rem;
  transition: opacity 0.12s;
}
.op-btn:hover { opacity: 0.9; }
.op-btn--primary { background: var(--gc-navy); color: #fff; }
.op-btn--ghost { background: var(--gc-muted); color: var(--gc-text); border: 1px solid var(--gc-border); }
.op-btn--sm { padding: 6px 12px; font-size: 0.78rem; }

.op-search-result {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: 1px solid var(--gc-border-light); border-radius: var(--gc-radius-sm);
  background: var(--gc-muted); margin-bottom: 8px; cursor: pointer; text-align: right;
  font-family: inherit;
}
.op-search-result strong { font-family: var(--gc-font-en); color: var(--gc-blue); font-size: 0.85rem; }
.op-search-result span { flex: 1; font-size: 0.88rem; }
.op-search-result small { font-size: 0.75rem; color: var(--gc-text-tertiary); }

.op-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--gc-navy); color: #fff; padding: 12px 24px;
  border-radius: var(--gc-radius-md); font-size: 0.88rem; font-weight: 600;
  z-index: 9999; box-shadow: var(--gc-shadow-lg);
  animation: opToastIn 0.25s ease;
}
@keyframes opToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
