/* ===== Two Column Layout (Table + Activity) ===== */
.ov-two-cols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

/* Order tracking table inside overview */
.ov-card-table {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ov-table-wrap {
  padding: 0;
  overflow-x: auto;
  flex: 1;
}

.ov-table-wrap .table-host {
  gap: 0;
}

.ov-table-wrap .table-section {
  gap: 0;
}

.ov-table-wrap .table-section h2 {
  display: none;
}

.ov-table-wrap .table-wrapper {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.ov-table-wrap .summary {
  font-size: 0.82rem;
}

.ov-table-wrap .summary th {
  font-size: 0.72rem;
  padding: 10px 14px;
  background: #fafafa;
}

.ov-table-wrap .summary td {
  padding: 10px 14px;
}

.ov-activity-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ===== Recent Activity ===== */
.ov-card-activity {
  display: flex;
  flex-direction: column;
}

.ov-activity-list {
  padding: 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ov-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f4f4f5;
}

.ov-activity-item:last-child {
  border-bottom: none;
}

.ov-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ov-activity-icon-upload {
  background: #ede9fe;
  color: #7c3aed;
}

.ov-activity-icon-edit {
  background: #e0f2fe;
  color: #0284c7;
}

.ov-activity-icon-approved {
  background: #dcfce7;
  color: #16a34a;
}

.ov-activity-icon-feedback {
  background: #fee2e2;
  color: #dc2626;
}

.ov-activity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ov-activity-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ov-activity-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ov-activity-text time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.ov-activity-viewall {
  display: block;
  text-align: center;
  padding: 14px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-top: 1px solid #f4f4f5;
  transition: background 0.15s;
}

.ov-activity-viewall:hover {
  background: #fafafa;
}

/* ===== Recent Work ===== */
.ov-recent-work {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ov-recent-work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ov-recent-work-header h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.ov-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.ov-link:hover {
  opacity: 0.8;
}

.ov-recent-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ov-work-card {
  background: #ffffff;
  border: 1px solid #ebebef;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.ov-work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

button.ov-work-thumb,
.ov-work-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #f0f0f2;
  overflow: hidden;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
}

.ov-work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.ov-work-card:hover .ov-work-thumb img {
  transform: scale(1.03);
}

.ov-work-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e4e4e7, #d4d4d8);
}

.ov-work-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.ov-badge-live { background: #16a34a; }
.ov-badge-testing { background: #0284c7; }
.ov-badge-draft { background: #d97706; }
.ov-badge-archived { background: #71717a; }

.ov-work-info {
  padding: 14px 16px;
}

.ov-work-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.ov-work-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.ov-work-meta .ov-work-video-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f4f4f5;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* New Request card */
.ov-work-card-new {
  border-style: dashed;
  border-color: #d4d4d8;
  background: #fafafa;
}

.ov-work-card-new:hover {
  border-color: var(--accent);
  background: rgba(255, 153, 28, 0.03);
}

.ov-work-new-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  gap: 10px;
  text-decoration: none;
  color: var(--text-tertiary);
  transition: color 0.15s;
}

.ov-work-card-new:hover .ov-work-new-inner {
  color: var(--accent);
}

.ov-work-new-inner span {
  font-size: 0.85rem;
  font-weight: 500;
}
