/* Archivio documenti — elenco tipo Drive, triangolo apre le sotto */
.docs-page {
  max-width: 1280px;
}
.docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
}
.docs-toolbar input[type="search"],
.docs-toolbar input[type="text"] {
  flex: 0 0 auto;
  width: 16rem;
  max-width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
  background: #fff;
}
.docs-toolbar .gp-btn {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 999px;
}
.docs-toolbar .gp-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.docs-pick {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
}
.docs-pick[hidden] {
  display: none !important;
}
.docs-pick input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.docs-pick label.gp-btn {
  margin: 0;
  cursor: pointer;
}
.docs-drop-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}
.docs-page .gp-form-msg {
  min-height: 1.2em;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.docs-drop-hint[hidden] {
  display: none !important;
}
.docs-fname {
  font-size: 13px;
  color: #4a4a6a;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.docs-grid {
  min-height: 12rem;
}
.docs-grid.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  border: 2px dashed #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}
.docs-empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
.docs-list-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.docs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-width: 22rem;
  padding: 0;
}
.docs-pick-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
}
.docs-tree {
  display: block;
}
.docs-tree.is-drop > .docs-tree-row {
  outline: 2px dashed #e67800;
  outline-offset: -2px;
  background: #fff7ed;
}
.docs-tree-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 44px;
  padding: 4px 12px 4px calc(8px + (var(--docs-depth, 0) * 22px));
  border-bottom: 1px solid #e8eaed;
  background: #fff;
}
.docs-tree-row:hover {
  background: #f8f9fa;
}
.docs-tree-row.is-selected {
  background: #fff7ed;
  outline: 2px solid #e67800;
  outline-offset: -2px;
}
.docs-tree-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.docs-tree-toggle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #5f6368;
}
.docs-tree-row.is-open > .docs-tree-toggle::before {
  transform: rotate(90deg);
}
.docs-tree-toggle--empty {
  display: inline-block;
  width: 40px;
  height: 40px;
  pointer-events: none;
}
.docs-tree-toggle--empty::before {
  content: none;
}
.docs-tree-ico {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}
.docs-rename-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 2px solid #e67800;
  border-radius: 16px;
  background: #fff7ed;
}
.docs-rename-banner[hidden] {
  display: none !important;
}
.docs-rename-banner strong {
  flex: 0 0 auto;
  color: #9a3412;
  font-size: 15px;
}
.docs-rename-banner p {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
}
.docs-rename-banner .gp-btn {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
}
.docs-rename-banner .gp-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.docs-rename-banner .gp-btn.is-on {
  border-color: #e67800;
  background: #fff7ed;
  color: #9a3412;
}
.docs-rename-input {
  flex: 1 1 8rem;
  width: auto;
  max-width: 22rem;
  min-width: 8rem;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
}
button.docs-folder-name,
a.docs-folder-name {
  flex: 1 1 8rem;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #202124;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.docs-tree-date {
  flex: 0 0 auto;
  margin-left: auto;
  color: #5f6368;
  font-size: 13px;
  white-space: nowrap;
}
.docs-files {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-files--loose {
  margin: 0;
}
.docs-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 44px;
}
.docs-file .gp-docs-eye {
  flex: 0 0 auto;
}
button.docs-file-name {
  flex: 1 1 8rem;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: #1a4a8a;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.docs-mini-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #1a1a2e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.docs-mini-btn:hover {
  border-color: #e67800;
  color: #c2410c;
}
.docs-mini-btn.docs-act-del {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff7f7;
}
.docs-crumb-btn {
  background: none;
  border: none;
  padding: 0;
  color: #e67800;
  font: inherit;
  cursor: pointer;
}
.docs-print-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
}
.docs-grid.is-drop,
.docs-page.is-drop .docs-grid {
  outline: 2px dashed #e67800;
  outline-offset: 4px;
  border-radius: 12px;
  background: #fff7ed;
}
@media (max-width: 900px) {
  .docs-toolbar input[type="search"],
  .docs-toolbar input[type="text"] {
    width: 100%;
    flex: 1 1 12rem;
  }
  .docs-list {
    min-width: 0;
  }
  .docs-tree-row,
  .docs-file {
    min-height: 40px;
  }
  .docs-tree-date {
    white-space: normal;
    margin-left: 0;
  }
}
