/* ===== Reset ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
}

/* Le markup natif de nginx (h1 "Index of /", <hr>, <pre>) est masqué :
   il est remplacé/entouré par le JS, mais on le cache par sécurité
   pendant le court instant avant l'exécution du script. */
body > h1, body > hr, body > pre {
  display: none !important;
}

/* ===== Bandeau du haut ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e4e4e4;
  padding: 22px 40px;
}
.brand-name {
  font-size: 28px;
  font-weight: 800;
  color: #1c8fe6;
  letter-spacing: 1px;
}
.brand-plus { color: #3ec24f; }
.brand-sub {
  display: block;
  font-size: 20px;
  color: #1c8fe6;
  font-weight: 600;
  margin-top: 4px;
}
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #555;
}

/* ===== Layout deux colonnes ===== */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 40px 60px;
}

/* ===== Arbre (gauche) ===== */
.tree {
  flex: 0 0 300px;
  font-size: 14px;
  color: #444;
}
.tree ul {
  list-style: none;
  margin: 0;
  padding-left: 18px;
}
.tree > ul { padding-left: 0; }
.tree li { padding: 3px 0; white-space: nowrap; }
.tree li > ul { display: none; }
.tree li.open > ul { display: block; }
.tree .tw {
  display: inline-block;
  width: 14px;
  cursor: pointer;
  color: #999;
  font-size: 11px;
  user-select: none;
}
.tree .ic { margin-right: 6px; }
.tree a { color: inherit; text-decoration: none; }
.tree a:hover { color: #1c8fe6; }
.tree li.active > a {
  color: #1c8fe6;
  font-weight: 700;
}

/* ===== Panneau droit ===== */
.content {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 8px 0 20px;
  min-height: 400px;
}

table.fancy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.fancy-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  user-select: none;
}
table.fancy-table thead th .arrow {
  font-size: 10px;
  color: #1c8fe6;
}
table.fancy-table tbody tr { border-bottom: 1px solid #f2f2f2; }
table.fancy-table tbody tr:hover { background: #f5fafe; }
table.fancy-table td { padding: 8px 16px; color: #444; }
table.fancy-table td.col-name a {
  color: #333;
  text-decoration: none;
}
table.fancy-table td.col-name a:hover {
  color: #1c8fe6;
  text-decoration: underline;
}
table.fancy-table td.col-date,
table.fancy-table td.col-size {
  color: #888888;
  white-space: nowrap;
  text-align:left ;
}

.manual-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manual-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.manual-logo img {
  width: 50%;
  height: auto;
  display: block;
}

.manual-brand .brand-sub {
  color: #777;
}



