/* Content browser table */
.content-browser {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
}

.content-browser thead th {
  padding: 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--gin-color-text-light, #6b7280);
  border-bottom: 1px solid var(--gin-border-color-secondary);
}

.content-browser tbody tr {
  border-bottom: 1px solid var(--gin-border-color-layer, #f3f4f6);
}

.content-browser tbody td {
  padding: 0;
  overflow: hidden;
}

/* Content browser row */
.content-browser-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem 0;
  overflow: hidden;
  width: 100%;
}

/* Top header - type and operations */
.content-browser-row .top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.content-browser-row .top-header .type-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gin-color-text-light, #6b7280);
}

.content-browser-row .top-header .type-header .marker {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--gin-bg-layer2, #f3f4f6);
  color: var(--gin-color-text-light, #6b7280);
}

.content-browser-row .top-header .type-header .marker.marker--published {
  background-color: #d1fae5;
  color: #065f46;
}

.content-browser-row .top-header .type-header .marker.marker--unpublished {
  background-color: #fef3c7;
  color: #92400e;
}

.content-browser-row .top-header .operations-header {
  flex-shrink: 0;
}

.content-browser-row .top-header .operations-header .dropbutton-wrapper {
  font-size: 0.75rem;
}

/* Middle - title and languages */
.content-browser-row .middle-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
}

.content-browser-row .middle-container .title-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.content-browser-row .middle-container .title-container a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gin-color-text);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-browser-row .middle-container .title-container a:hover {
  color: var(--gin-color-primary);
}

.content-browser-row .middle-container .lang-container {
  flex-shrink: 0;
  display: flex;
  gap: 0.25rem;
}

.content-browser-row .middle-container .lang-container span {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background-color: var(--gin-bg-layer2, #f3f4f6);
  color: var(--gin-color-text-light, #6b7280);
}

.content-browser-row .middle-container .lang-container span a {
  color: inherit;
  text-decoration: none;
}

.content-browser-row .middle-container .lang-container span:has(a) {
  background-color: var(--gin-color-primary-light, rgba(37, 99, 235, 0.1));
  color: var(--gin-color-primary);
}

.content-browser-row .middle-container .lang-container span:has(a):hover {
  background-color: var(--gin-color-primary);
  color: #fff;
}

.content-browser-row .middle-container .lang-container span:has(a):hover a {
  color: #fff;
}

/* Bottom - URL */
.content-browser-row .bottom-container {
  display: none;
}

.content-browser-row .bottom-container .url-container p {
  font-size: 0.75rem;
  padding: 0;
  margin: 0;
  color: var(--gin-color-text-light, #9ca3af);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Form filters */
.visualeditor-recent-edit-form .form-item {
  margin-bottom: 0.75rem;
}

.visualeditor-recent-edit-form .form-item label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gin-color-text-light, #6b7280);
  margin-bottom: 0.25rem;
}

.visualeditor-recent-edit-form select,
.visualeditor-recent-edit-form input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--gin-border-color, #d1d5db);
  border-radius: 6px;
  background-color: var(--gin-bg-layer, #fff);
}

.visualeditor-recent-edit-form select:focus,
.visualeditor-recent-edit-form input[type="text"]:focus {
  outline: none;
  border-color: var(--gin-color-primary);
  box-shadow: 0 0 0 3px var(--gin-color-primary-light, rgba(37, 99, 235, 0.1));
}
