/* ==========================================================================
   PARTNERPORTAL POBIERANIA - COMPLETE STYLES
   ========================================================================== */

.dl-portal-wrapper {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1e293b;
  box-sizing: border-box;
}

.dl-portal-wrapper *,
.dl-portal-wrapper *::before,
.dl-portal-wrapper *::after {
  box-sizing: inherit;
}

/* ==========================================================================
   1. WYSZUKIWARKA LIVE SEARCH Z DROPDOWNEM
   ========================================================================== */
.dl-search-container {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
  max-width:1000px;
  z-index: 100;
}

.dl-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.dl-search-input-wrapper:focus-within {
  border-color: #00769E;
}

.dl-search-icon {
  flex-shrink: 0;
  margin-right: 12px;
}

.dl-search-input {
  flex-grow: 1;
  border: none !important;
  outline: none !important;
  font-size: 1.05rem !important;
  color: #1e293b !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.dl-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.dl-search-clear:hover {
  color: #475569;
}

.dl-search-scope-badge {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-left: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* OKNO WYSUWANE (DROPDOWN) */
.dl-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  max-height: 520px;
  overflow-y: auto;
}

.dl-search-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.dl-search-section-header:first-child {
  border-top: none;
}

.dl-search-section-count {
  font-size: 0.82rem;
  color: #94a3b8;
}

.dl-search-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.15s ease;
}

.dl-search-item:last-child {
  border-bottom: none;
}

.dl-search-item:hover,
.dl-search-item.is-selected {
  background-color: #f1f5f9;
}

.dl-search-item-icon-box {
  width: 38px;
  height: 48px;
  border-radius: 6px;
  background-color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.dl-search-item .dlm-file-badge {
  margin-right: 14px;
}

.dl-search-item-info {
  flex-grow: 1;
  overflow: hidden;
}

.dl-search-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-search-item-path {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
}

.dl-search-type-badge {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 12px;
  flex-shrink: 0;
}

mark.dl-search-highlight {
  background-color: #facc15;
  color: #0f172a;
  border-radius: 2px;
  padding: 0 1px;
}

.dl-search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
}

.dl-search-keys {
  display: flex;
  gap: 12px;
}

.dl-search-keys kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.75rem;
}

/* ==========================================================================
   2. LAYOUT GŁÓWNY PORTALU
   ========================================================================== */
.dl-portal {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

/* ==========================================================================
   3. LEWA KOLUMNA - DRZEWO KATEGORII
   ========================================================================== */
.dl-sidebar,
.dl-sidebar * {
  box-sizing: border-box !important;
}

.dl-sidebar {
  width: 330px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #D2D9E5;
  border-radius: 6px;
  padding: 16px 0;
  overflow: hidden;
}

.dl-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding: 0 16px 12px 16px;
  margin-bottom: 8px;
}

.dl-sidebar-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1F2B43;
}

#dl-collapse-all {
  background: none;
  border: none;
  color: #00769E;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}

#dl-collapse-all:hover {
  text-decoration: underline;
}

.dl-tree ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.dl-tree li {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  width: 100%;
}

.dl-tree .dl-sub-tree {
  display: none;
}

.dl-tree-item.expanded > .dl-sub-tree {
  display: block;
}

.dl-tree-item.has-children > .dl-item-row > .dl-nav-link {
  position: relative;
  padding-left: 25px !important;
}

.dl-tree-item.has-children > .dl-item-row > .dl-nav-link::after {
  content: "\276F";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #1F2B43;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dl-tree-item.expanded > .dl-item-row > .dl-nav-link::after {
  transform: translateY(-50%) rotate(90deg);
  color: #00769E;
}

.dl-sub-tree {
  display: block;
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

.dl-item-row,
.dl-tree li > .dl-nav-link {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  position: relative;
  transition: background-color 0.15s ease;
}

.dl-item-row .dl-nav-link {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  background: transparent !important;
}

.dl-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  text-decoration: none !important;
  color: #1F2B43;
}

.dl-nav-link > .dl-nav-text {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-count {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: auto !important;
  padding-left: 12px;
  flex-shrink: 0;
  text-align: right;
}

.dl-tree > ul > li > .dl-nav-link,
.dl-tree > ul > li > .dl-item-row {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.dl-sub-tree > li > .dl-nav-link,
.dl-sub-tree > li > .dl-item-row {
  padding-left: 32px !important;
  padding-right: 16px !important;
}

.dl-sub-tree .dl-sub-tree > li > .dl-nav-link,
.dl-sub-tree .dl-sub-tree > li > .dl-item-row {
  padding-left: 48px !important;
  padding-right: 16px !important;
}

.dl-sub-tree .dl-sub-tree .dl-sub-tree > li > .dl-nav-link,
.dl-sub-tree .dl-sub-tree .dl-sub-tree > li > .dl-item-row {
  padding-left: 64px !important;
  padding-right: 16px !important;
}

.dl-tree > ul > li > .dl-nav-link,
.dl-tree > ul > li > .dl-item-row > .dl-nav-link {
  font-weight: 700;
  font-size: 0.95rem;
}

.dl-sub-tree .dl-nav-link {
  font-weight: 400;
  font-size: 0.9rem;
  color: #475569;
}

.dl-nav-link:hover,
.dl-item-row:hover,
.dl-item-row:hover > .dl-nav-link {
  background-color: #F5F7FA !important;
  color: #00769E !important;
}

.dl-item-row:hover .dl-tree-toggle {
  color: #00769E !important;
}

.dl-item-row.active-row,
.dl-nav-link.active {
  background-color: #F5F7FA !important;
  color: #00769E !important;
  font-weight: 700 !important;
}

.dl-item-row.active-row .dl-tree-toggle,
.dl-item-row:has(.dl-nav-link.active) .dl-tree-toggle {
  color: #00769E !important;
}

.dl-nav-link.active::before,
.dl-item-row:has(.dl-nav-link.active)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #00769E;
  z-index: 2;
}

.dl-item-row .dl-nav-link.active::before {
  display: none !important;
}

/* ==========================================================================
   4. PRAWA KOLUMNA - PANEL PLIKÓW, FILTRY & SORTOWANIE
   ========================================================================== */
.dl-main {
  flex-grow: 1;
  background: #ffffff;
  border: 1px solid #D2D9E5;
  border-radius: 6px;
  padding: 24px;
  min-height: 450px;
  width:100%;
}

.dl-panel {
  display: none;
}

.dl-panel.active {
  display: block;
}

.dl-panel-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dl-panel-header-top h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #1F2B43;
  font-weight: 500;
}

/* ROZWIJANA LISTA SORTOWANIA */
.dl-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  border: 1px solid #E7ECF3;
  border-radius: 6px;
  padding: 6px 36px 6px 14px;
  font-size: 14px;
  font-weight: 400;
  color: #1F2B43;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.15s ease;
}

.dl-sort-select:hover {
  border-color: #00769E;
}

.dl-sort-select:focus {
  outline: none;
  border-color: #00769E;
}

/* NOWE STYLE PIGUŁEK (FILTER PILLS) - DESIGN HOVER & ACTIVE */
.dl-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0F3F7;
}

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 12px;
  color: #1F2B43;
  background-color: #ffffff;
  cursor: pointer;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.15s ease;
  user-select: none;
}

/* Reset filters button (shown when any filter is active) */
.dl-filter-reset,
button.dl-filter-reset,
.dl-filter-reset.button {
  all: unset;
  display: inline;
  padding: 0 6px;
  margin-left: 8px;
  color: #00769E;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  line-height: 1;
}

.dl-filter-reset:hover,
button.dl-filter-reset:hover,
.dl-filter-reset.button:hover {
  text-decoration: underline;
  color: #007da7;
}

.dl-pill::before {
  content: "";
  display: inline-flex;
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 2px;
  background-color: #cbd5e1;
}

.dl-pill[data-filter="pdf"]::before { background-color: #CF0738; }
.dl-pill[data-filter="word"]::before,
.dl-pill[data-filter="doc"]::before,
.dl-pill[data-filter="docx"]::before { background-color: #005AB8; }
.dl-pill[data-filter="excel"]::before,
.dl-pill[data-filter="xls"]::before,
.dl-pill[data-filter="xlsx"]::before { background-color: #007951; }
.dl-pill[data-filter="powerpoint"]::before,
.dl-pill[data-filter="ppt"]::before,
.dl-pill[data-filter="pptx"]::before { background-color: #D48A00; }
.dl-pill[data-filter="img"]::before,
.dl-pill[data-filter="svg"]::before,
.dl-pill[data-filter="png"]::before,
.dl-pill[data-filter="jpg"]::before,
.dl-pill[data-filter="jpeg"]::before,
.dl-pill[data-filter="gif"]::before,
.dl-pill[data-filter="webp"]::before,
.dl-pill[data-filter="avif"]::before { background-color: #00D873; }
.dl-pill[data-filter="mp4"]::before,
.dl-pill[data-filter="avi"]::before,
.dl-pill[data-filter="mov"]::before { background-color: #9D00FF; }
.dl-pill[data-filter="zip"]::before,
.dl-pill[data-filter="rar"]::before { background-color: #D48A00; }
.dl-pill[data-filter="link"]::before,
.dl-pill[data-filter="url"]::before { background-color: #6D7585; }
.dl-pill[data-filter="txt"]::before { background-color: #94A3B8; }
.dl-pill[data-filter="neu"]::before { background-color: #16A34A; }

/* Stan HOVER */
.dl-pill:hover {
  background-color: #D2D9E5 !important;
  border-color: #D2D9E5 !important;
  color: #1F2B43 !important;
}

/* Stan ACTIVE / CLICK */
.dl-pill.active {
  background-color: #1F2B43 !important;
  color: #ffffff !important;
  border-color: #1F2B43 !important;
  font-weight: 600;
}


.dl-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 0;
}

.dl-select-all-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #636D85;
  cursor: pointer;
  user-select: none;
  font-weight: 400;
}

.dl-btn-bulk-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #6CCFF1;
  color: #1F2B43;
  border: none;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dl-sub-bar .dl-btn-bulk-download {
  display: none !important;
}

.dl-btn-bulk-download:hover:not(:disabled) {
  background-color: #1F2B43;
  color:#6CCFF1;
}

.dl-btn-bulk-download:disabled {
  background-color: #CBD5E1;
  color: #94A3B8;
  cursor: not-allowed;
}

.dl-bulk-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center; /* center inner container */
  padding: 32px 0; /* vertical padding only, inner container has horizontal padding */
  background: #1F2B43;
  color: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.16);
}

.dl-bulk-footer.visible {
  display: flex;
}

.dl-bulk-footer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 0.96rem;
  color: #e2e8f0;
}

.dl-bulk-footer-info strong {
  display: inline-block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.dl-bulk-footer-description {
  color: #94a3b8;
  font-size: 0.88rem;
}

.dl-bulk-footer-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 4px;
  background: #6CCFF1;
  color: #1F2B43;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* Inner constrained container centered inside the full-width footer */
.dl-bulk-footer-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px; /* horizontal padding inside constrained area */
  box-sizing: border-box;
}

.dl-bulk-footer-button:hover:not(:disabled) {
  background: #1F2B43;
  color: 6CCFF1;
}

.dl-bulk-footer-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dl-portal-wrapper.dl-has-bulk-footer {
  padding-bottom: 100px;
}

/* ==========================================================================
   5. KAFELKI PLIKÓW & NOWY KSZTAŁT BADGE'Y
   ========================================================================== */
.dlm-file-card {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  margin: 0 -24px 0;
  width: calc(100% + 48px);
  border: 1px solid #F0F3F7;
  transition: all 0.15s ease;
}

.dlm-file-card:hover {
  background-color: #F5F7FA;
}

.dlm-file-card.selected {
  background-color: #F5F7FA;
  border-color: #F0F3F7;
}

.dlm-file-card.is-hidden {
  display: none !important;
}

.dlm-downloads li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.dlm-file-checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-right: 14px;
  cursor: pointer;
}

.dlm-file-checkbox,
.dl-select-all-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #D2D9E5;
  accent-color: #fff;
  cursor: pointer;
}
.dlm-file-checkbox:checked{
  outline: 1px solid #D2D9E5;
}

/* NOWY KSZTAŁT IKONY (WYŚRODKOWANY NAPIS, PIONOWY PROSTOKĄT, ROUNDED) */
.dlm-file-badge {
  width: 34px !important;
  height: 47px !important;
  border-radius: 3px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding-bottom: 3px !important;
  margin-right: 14px !important;
  flex-shrink: 0 !important;
  background-color: #D50032;
}

.dlm-badge-text {
  font-size: 9px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* PRECYZYJNE KOLORY BADGE'Y DLA FORMATÓW */
.dlm-badge-pdf,
.dlm-type-pdf .dlm-file-badge { background-color: #CF0738 !important; }

.dlm-badge-xls, .dlm-badge-xlsx,
.dlm-type-xls .dlm-file-badge, .dlm-type-xlsx .dlm-file-badge { background-color: #007951 !important; }

.dlm-badge-doc, .dlm-badge-docx,
.dlm-type-doc .dlm-file-badge, .dlm-type-docx .dlm-file-badge { background-color: #005AB8 !important; }

.dlm-badge-img, .dlm-badge-png, .dlm-badge-jpg, .dlm-badge-jpeg, .dlm-badge-svg, .dlm-badge-ai,
.dlm-type-img .dlm-file-badge, .dlm-type-png .dlm-file-badge, .dlm-type-jpg .dlm-file-badge, .dlm-type-svg .dlm-file-badge, .dlm-type-ai .dlm-file-badge { background-color: #00D873 !important; }

.dlm-badge-mp4, .dlm-badge-avi, .dlm-badge-mov,
.dlm-type-mp4 .dlm-file-badge, .dlm-type-avi .dlm-file-badge { background-color: #9D00FF !important; }

.dlm-badge-zip, .dlm-badge-rar,
.dlm-type-zip .dlm-file-badge, .dlm-type-rar .dlm-file-badge { background-color: #D48A00 !important; }

.dlm-badge-link, .dlm-badge-url,
.dlm-type-link .dlm-file-badge { background-color: #6D7585 !important; }

.dlm-badge-ppt, .dlm-badge-pptx,
.dlm-type-ppt .dlm-file-badge, .dlm-type-pptx .dlm-file-badge { background-color: #D48A00 !important; }

.dlm-file-details {
  flex-grow: 1;
}

.dlm-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dlm-file-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 500;
  color: #1F2B43;
  line-height: 1.3;
}

.dlm-badge-neu {
  background-color: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.dlm-file-meta {
  font-size: 0.85rem;
  color: #636D85;
  margin-top: 3px;
}

.dlm-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.dlm-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #1F2B43;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1F2B43;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.dlm-action-btn:hover {
  border-color: #00769E;
  color: #00769E;
  background-color: #f8fafc;
}

/* ==========================================================================
   6. STYLES DLA ZABLOKOWANEJ KATEGORII (KEIN ZUGRIFF)
   ========================================================================== */
.dl-panel-header.dl-disabled-header h2 {
  color: #cbd5e1 !important;
}

.dl-panel-header.dl-disabled-header .dl-pill {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
}

.dl-select-disabled {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 30px 6px 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
  cursor: not-allowed;
}

.dl-sub-bar-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-no-access-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #ffffff;
}

.dl-no-access-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.dl-no-access-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}

.dl-no-access-text {
  font-size: 0.88rem !important;
  color: #475569 !important;
  max-width: 460px;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ==========================================================================
   7. SPINNER ŁADOWANIA (AJAX)
   ========================================================================== */
.dl-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: #64748b;
  font-size: 0.95rem;
}

.dl-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #00769E;
  border-radius: 50%;
  animation: dl-spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes dl-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   8. RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 768px) {
  .dl-panel-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dl-portal {
    flex-direction: column;
  }
  .dl-main{
    padding:12px;
  }
  .dl-sidebar {
    width: 100%;
  }
  .dl-sidebar-header{
    padding: 0 12px 8px 12px;
  }
  .dl-sub-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dlm-file-card{
    padding:12px 12px;
    width: calc(100% + 24px);
    margin-left: -12px;
  }
  .dlm-file-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-left: 0;
    padding-left:10px;
  }
  .dlm-action-btn {
    width: auto;
    min-width: 32px;
    align-self: flex-start;
  }
}