

    main {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 20px;
      max-width: 1300px;
      margin: 0 auto;
    }

    .content-box {
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      padding: 15px 20px;
      box-sizing: border-box;
      width: 100%;
    }

    .content-box.table-box {
      padding: 10px 15px;
    }

    h1 {
      margin-top: 0;
      text-align: center;
      font-size: 1.4rem;
      margin-bottom: 20px;
    }

    .storage-box {
      border-radius: 10px;
      padding: 20px 25px;
      text-align: center;
    }

    .storage-box h2 {
      margin: 0 0 8px 0;
      font-size: 17px;
    }

    .storage-box p {
      margin: 0;
      font-size: 15px;
    }
	
 /* --- Pruh využití úložiště --- */
.storage-bar-container {
  margin-top: 12px;
}

.storage-bar {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.bar-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.storage-bar-labels { display: none !important; }

.attachment {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  padding: 12px 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.attachment.open {
  box-shadow: 0 3px 12px rgba(26, 75, 204, 0.15);
}

.attachment:last-child {
  margin-bottom: 0;
}

    .row-top,
    .row-middle {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 15px;
      padding: 4px 0;
    }

    .row-top .file-date {
      font-weight: 500;
    }

    .row-top .file-size {
      font-weight: 600;
    }

    .file-size .file-ext {
      font-weight: 400;
      margin-left: 4px;
    }

    .row-middle {
      font-size: 15px;
    }

    .row-middle div {
      flex: 1;
    }

    .row-middle div:nth-child(2) {
      text-align: center;
    }

    .row-middle div:nth-child(3) {
      text-align: right;
      font-weight: 400;
    }

    /* Rozbalená sekce s tlačítky */
.row-bottom {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  transition: all 0.25s ease;
}

.attachment.open .row-bottom {
  max-height: 100px;
  opacity: 1;
  padding-top: 10px;
}

    .row-bottom {
      margin-left: auto;
    }

.attachments-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 15px;
  gap: 8px;
}

/* --- Ikonka formátu souboru (emoji) --- */

.file-icon {
  font-size: 16px;
  margin-left: 6px;
  opacity: 0.9;
  vertical-align: middle;
}

    .sort-arrow {
  font-size: 25px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease;
  display: inline-block;
}

.sort-arrow.asc {
  transform: rotate(180deg);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 20px;         /* mezera mezi selectem a šipkou */
  margin-top: 5px;
}
.sort-controls select {
  margin: 0;
}
