/* Extends nas-files.css - load order matters (this file loads after it). */

.write-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #f0cf9a;
  border-radius: 999px;
  color: #92600f;
  background: #fdf3e2;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.write-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d98a1c;
  box-shadow: 0 0 0 4px rgba(217, 138, 28, .14);
}

.explorer-toolbar { flex-wrap: wrap; }
.upload-actions { display: flex; align-items: center; margin-left: auto; }
.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.upload-button:hover { background: #0d2438; }
.upload-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.upload-status {
  margin: 0 18px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
}
.upload-status-info { color: #2f5165; background: #eef4f7; }
.upload-status-success { color: #196f62; background: var(--teal-soft); }
.upload-status-error { color: #87433c; background: #fff4f3; }

.nas-write-explorer { position: relative; }
.drag-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 2px dashed #167c70;
  border-radius: 16px;
  color: #167c70;
  background: rgba(234, 247, 244, .92);
  font-size: 16px;
  font-weight: 750;
  pointer-events: none;
}

.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.row-action-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cedbe1;
  border-radius: 9px;
  color: #35596c;
  background: #fff;
  text-decoration: none;
}
.row-action-button:hover { color: #fff; border-color: var(--teal); background: var(--teal); }
.row-action-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nas-write-table th:last-child, .nas-write-table td:last-child { width: 130px; }

@media (max-width: 760px) {
  .upload-actions { order: 3; width: 100%; }
  .upload-button { width: 100%; justify-content: center; }
}
