:root {
  --rzd-red: #ef3828;
  --rzd-red-deep: #c92318;
  --rzd-red-soft: #fff0ed;
  --rzd-ink: #171719;
  --rzd-muted: #707176;
  --rzd-paper: #f7f6f3;
  --rzd-line: #e6e4df;
  --bs-primary: #c92318;
  --bs-primary-rgb: 201, 35, 24;
  --bs-link-color: #c92318;
  --bs-link-hover-color: #a91e15;
  --bs-app-sidebar-width: 280px;
  --bs-app-sidebar-width-actual: 280px;
  --bs-app-sidebar-panel-width: 280px;
  --bs-app-sidebar-panel-width-actual: 280px;
  --bs-app-header-height: 72px;
  --bs-app-header-height-actual: 72px;
  color-scheme: light;
  letter-spacing: 0;
}

/* v53: protected public-share login must never inherit the stock oversized logo row. */
.rzd-login-content #sign_in_form[action*="/web/client/pubshares/"] > .container.mb-10 > .row {
  display: block;
  margin: 0;
}

.rzd-login-content #sign_in_form[action*="/web/client/pubshares/"] > .container.mb-10 > .row > .col-5 {
  display: none;
}

.rzd-login-content #sign_in_form[action*="/web/client/pubshares/"] > .container.mb-10 > .row > .col-7 {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.rzd-login-content #sign_in_form[action*="/web/client/pubshares/"] > .container.mb-10 h1 {
  margin: 0 !important;
  color: var(--rzd-ink) !important;
  font-size: clamp(28px, 9vw, 36px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -.7px !important;
  overflow-wrap: anywhere;
}

/* v53: native public download/upload pages share the same oversized stock brand row. */
body.app-default .flex-column-fluid > .mb-12 {
  display: block;
  width: min(264px, 100%);
  max-width: 100%;
  text-align: center;
}

body.app-default .flex-column-fluid > .mb-12 > span:first-child {
  display: block;
  max-width: 100%;
}

body.app-default .flex-column-fluid > .mb-12 > span:first-child > img.h-80px {
  display: block;
  width: 264px;
  max-width: 100%;
  height: auto !important;
  margin: 0 auto;
}

body.app-default .flex-column-fluid > .mb-12 > span:last-child {
  display: none;
}

/* v51: native download limits, factual archive usage and DataTables 2 pagination. */
.rzd-share-modal .form-select {
  min-height: 48px;
  border-color: #dcd8d2;
  border-radius: 11px;
}

.rzd-share-field-hint {
  margin: 7px 0 0;
  color: #77787c;
  font-size: 10px;
  line-height: 1.45;
}

.rzd-share-archive__download-usage {
  display: block;
  margin-top: 7px;
  color: #787a80;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.rzd-share-archive__status--exhausted {
  color: #805b12;
  background: #fff4d5;
}

.rzd-share-archive__pagination,
.rzd-table-pagination {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-top: 1px solid #e4e0da;
  background: #fbfaf8;
}

.rzd-share-archive__pagination label,
.rzd-table-pagination .dataTables_length label,
.rzd-table-pagination .dt-length label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #606168;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.rzd-share-archive__pagination .form-select,
.rzd-table-pagination .dataTables_length select,
.rzd-table-pagination .dt-length select {
  width: 74px !important;
  min-height: 40px;
  margin: 0 !important;
  padding-top: 7px;
  padding-bottom: 7px;
  border-color: #dcd8d2;
  border-radius: 10px;
  background-color: #fff;
}

.rzd-share-archive__range,
.rzd-table-pagination .dataTables_info,
.rzd-table-pagination .dt-info {
  padding: 0 !important;
  color: #5f6167 !important;
  font-size: 11px;
  font-weight: 650;
}

.rzd-share-archive__page-state,
.rzd-table-pagination__page-state {
  color: #35363b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.rzd-share-archive__page-actions,
.rzd-table-pagination .dataTables_paginate,
.rzd-table-pagination .dt-paging,
.rzd-table-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.rzd-share-archive__page-actions .btn,
.rzd-table-pagination .page-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  color: #34363b;
  border: 1px solid #dcd8d2 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 800;
}

.rzd-table-pagination .page-item.active .page-link {
  color: #fff !important;
  border-color: var(--rzd-red) !important;
  background: var(--rzd-red) !important;
}

.rzd-share-archive__page-actions .btn:disabled,
.rzd-table-pagination .page-item.disabled .page-link {
  color: #a4a5a8 !important;
  border-color: #ebe8e3 !important;
  background: #f3f1ee !important;
  opacity: 1;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list_wrapper > .rzd-native-pagination-row {
  display: none !important;
}

@media (max-width: 900px) {
  .rzd-share-archive__pagination,
  .rzd-table-pagination {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
  }

  .rzd-share-archive__range,
  .rzd-table-pagination .dataTables_info,
  .rzd-table-pagination .dt-info {
    grid-column: 1;
  }

  .rzd-share-archive__page-state,
  .rzd-table-pagination__page-state {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .rzd-share-archive__page-actions,
  .rzd-table-pagination .dataTables_paginate,
  .rzd-table-pagination .dt-paging {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .rzd-share-archive__pagination,
  .rzd-table-pagination {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 14px;
  }

  .rzd-share-archive__pagination label,
  .rzd-table-pagination .dataTables_length label,
  .rzd-table-pagination .dt-length label,
  .rzd-share-archive__page-state,
  .rzd-table-pagination__page-state,
  .rzd-share-archive__page-actions,
  .rzd-table-pagination .dataTables_paginate,
  .rzd-table-pagination .dt-paging,
  .rzd-share-archive__range,
  .rzd-table-pagination .dataTables_info,
  .rzd-table-pagination .dt-info {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .rzd-share-archive__page-state,
  .rzd-table-pagination__page-state,
  .rzd-share-archive__range,
  .rzd-table-pagination .dataTables_info,
  .rzd-table-pagination .dt-info {
    text-align: center !important;
  }

  .rzd-share-archive__page-actions,
  .rzd-table-pagination .dataTables_paginate,
  .rzd-table-pagination .dt-paging,
  .rzd-table-pagination .pagination {
    width: 100%;
  }

  .rzd-share-archive__page-actions .btn,
  .rzd-table-pagination .previous,
  .rzd-table-pagination .next,
  .rzd-table-pagination .previous .page-link,
  .rzd-table-pagination .next .page-link {
    flex: 1 1 0;
  }
}

body,
button,
input,
select,
textarea {
  font-family: "Segoe UI Variable", "Segoe UI", Aptos, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

.btn,
.form-control,
.form-select,
.menu-link,
.card,
.modal-content,
.alert {
  border-radius: 8px !important;
}

.btn-primary {
  border-color: var(--rzd-red-deep) !important;
  background: var(--rzd-red-deep) !important;
  box-shadow: 0 10px 24px rgba(201, 35, 24, .18) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #a91e15 !important;
  background: #a91e15 !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rzd-red) !important;
  box-shadow: 0 0 0 3px rgba(239, 56, 40, .1) !important;
}

.text-primary,
.link-primary,
.menu-link.active .menu-title,
.menu-link.active .menu-icon {
  color: var(--rzd-red-deep) !important;
}

.app-default {
  color: var(--rzd-ink);
  background: var(--rzd-paper) !important;
}

.app-sidebar {
  border-right: 1px solid var(--rzd-line);
  background: #f3f2ef !important;
}

.app-sidebar .menu-link.active {
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(31, 29, 27, .06);
}

.app-sidebar .menu-link:not(.active) .menu-title,
.app-sidebar .menu-link:not(.active) .menu-icon {
  color: #4f5054 !important;
}

.app-sidebar-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-sidebar-logo img {
  width: 210px;
  max-width: 100%;
  height: auto !important;
}

.app-sidebar-logo .text-sidebar {
  display: none;
}

.app-header {
  border-bottom: 1px solid var(--rzd-line);
  background: #fff !important;
}

.card,
.modal-content {
  border-color: var(--rzd-line) !important;
  background: #fff !important;
  box-shadow: 0 6px 22px rgba(31, 29, 27, .055) !important;
}

.app-content {
  background: var(--rzd-paper) !important;
}

#kt_app_content_container {
  padding: 24px clamp(20px, 2.4vw, 40px) 18px !important;
}

.app-content .card-header {
  min-height: 80px;
  padding: 16px 24px;
  gap: 14px;
}

.app-content .card-body {
  padding: 6px 24px 20px;
}

.table-responsive {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#file_manager_list {
  margin-top: 12px !important;
}

#file_manager_list > :not(caption) > * > * {
  padding-top: 14px;
  padding-bottom: 14px;
}

#file_manager_list_body a {
  color: #343539;
}

.app-footer {
  border-top: 1px solid rgba(230, 228, 223, .8);
  background: var(--rzd-paper) !important;
}

.app-footer .text-gray-700 {
  color: #85868a !important;
  font-size: 11px;
  font-weight: 500 !important;
}

.rzd-login-page {
  min-width: 320px;
  color: var(--rzd-ink);
  background: #fff !important;
  overflow-x: hidden;
}

.rzd-login-page #app_root {
  min-height: 100vh;
  min-height: 100dvh;
}

.rzd-login-loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  margin: 0 !important;
  background: #fff;
}

.rzd-login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(440px, 40%) minmax(0, 60%);
  background: #fff;
}

.rzd-login-panel {
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  background: #fff;
}

.rzd-login-content {
  box-sizing: border-box;
  width: min(480px, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 52px 54px;
}

.rzd-login-logo {
  display: block;
  width: 264px;
  max-width: 100%;
  height: auto;
  margin: 0 0 34px;
}

.rzd-login-role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid #e0ded9;
  border-radius: 10px;
  background: #f4f3f1;
}

.rzd-login-role-switch a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: #65666a;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.rzd-login-role-switch a:hover,
.rzd-login-role-switch a:focus-visible {
  color: var(--rzd-red-deep);
  background: rgba(255, 255, 255, .72);
}

.rzd-login-role-switch a:focus-visible {
  outline: 3px solid rgba(218, 41, 28, .2);
  outline-offset: 1px;
}

.rzd-login-role-switch a.is-active {
  color: var(--rzd-ink);
  border-color: #d9d6d0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 24, 27, .08);
  cursor: default;
}

.rzd-login-heading {
  margin-bottom: 34px;
}

.rzd-login-heading > p {
  margin: 0 0 12px;
  color: var(--rzd-red-deep);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.rzd-login-heading h1 {
  margin: 0;
  color: var(--rzd-ink);
  font-size: 43px;
  line-height: 1.08;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.rzd-login-role-switch[data-rzd-login-mode="administrator"] + .rzd-login-heading h1 {
  font-size: 36px;
  letter-spacing: -.8px;
  overflow-wrap: normal;
  white-space: nowrap;
}

.rzd-login-heading > span {
  display: block;
  max-width: 390px;
  margin-top: 17px;
  color: var(--rzd-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rzd-recovery-heading {
  margin-bottom: 28px;
}

.rzd-recovery-heading p {
  margin: 0 0 10px;
  color: var(--rzd-red-deep);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .06em !important;
  text-transform: uppercase;
}

.rzd-recovery-heading h1 {
  margin: 0;
  color: var(--rzd-ink);
  font-size: 36px;
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -.7px !important;
}

.rzd-recovery-heading > span {
  display: block;
  margin-top: 15px;
  color: var(--rzd-muted);
  font-size: 14px;
  line-height: 1.55;
}

.rzd-recovery-form .form-control {
  min-height: 52px;
  border-color: #d6d3cd;
  background: #fff;
}

.rzd-recovery-form #sign_in_submit {
  min-height: 52px;
  font-weight: 700;
}

.rzd-recovery-back {
  display: block;
  padding: 7px;
  color: var(--rzd-red-deep);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.rzd-recovery-back:hover,
.rzd-recovery-back:focus-visible {
  color: #a91e15;
  text-decoration: underline;
}

.rzd-login-content .form-label {
  color: #454549;
  font-size: 13px;
  font-weight: 650;
}

.rzd-login-content .form-control {
  min-height: 52px;
  color: var(--rzd-ink);
  border: 1px solid #d6d3cd;
  background: #fff;
}

.rzd-login-content #sign_in_submit {
  min-height: 52px;
  font-weight: 700;
}

.rzd-service-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: #247a47;
}

.rzd-service-status > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #24ae62;
  box-shadow: 0 0 0 6px #e9f7ef;
}

.rzd-service-status div {
  display: grid;
  gap: 2px;
}

.rzd-service-status strong {
  font-size: 13px;
}

.rzd-service-status small {
  color: #8b8c90;
  font-size: 11px;
}

.rzd-login-platform {
  margin: 28px 0 0;
  padding-top: 20px;
  color: #9a9b9e;
  border-top: 1px solid #eceae6;
  font-size: 11px;
  line-height: 1.45;
}

.rzd-login-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-width: 0;
  padding: clamp(48px, 7vh, 86px) clamp(48px, 5vw, 90px);
  overflow: hidden;
  background-color: #f4f4f2;
  background-image: url("/static/branding/rzd-medicine-login-clinic-v2.webp");
  background-position: center;
  background-size: cover;
}

.rzd-login-visual::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 22%;
  content: "";
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .82) 38%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.rzd-login-visual::after {
  content: "ржд\Aмедицина";
  position: absolute;
  z-index: 1;
  top: clamp(62px, 8vh, 92px);
  left: 14%;
  box-sizing: border-box;
  width: min(190px, 30%);
  height: 205px;
  padding-top: 105px;
  color: #4a4745;
  background: url("./rzd-medicine-official-symbol.svg") center top / 88px 88px no-repeat;
  font-size: clamp(25px, 2.25vw, 32px);
  line-height: .92;
  font-weight: 650;
  letter-spacing: -.9px;
  white-space: pre;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 2px 2px rgba(24, 24, 27, .2), 0 7px 10px rgba(24, 24, 27, .1);
  filter: drop-shadow(0 2px 1px rgba(24, 24, 27, .18)) drop-shadow(0 9px 13px rgba(24, 24, 27, .1));
  transform: perspective(900px) rotateY(-2deg);
  transform-origin: left center;
  pointer-events: none;
}

.rzd-login-visual-copy {
  position: relative;
  z-index: 2;
  width: min(590px, 82%);
  padding: 30px 0;
}

.rzd-visual-lines {
  display: block;
  width: 208px;
  height: 18px;
  margin-bottom: 24px;
  border-top: 4px solid var(--rzd-red);
  border-bottom: 4px solid var(--rzd-red);
}

.rzd-login-visual-copy h2 {
  max-width: 590px;
  margin: 0;
  color: var(--rzd-ink);
  font-size: 50px;
  line-height: 1.04;
  font-weight: 760;
}

@media (max-width: 1280px) {
  .rzd-login-visual-copy h2 {
    font-size: 42px;
  }
}

@media (min-width: 901px) and (min-height: 820px) {
  .rzd-login-page {
    overflow-y: hidden;
  }

  .rzd-login-shell {
    min-height: 0;
    height: 100vh;
    height: 100dvh;
  }

  .rzd-login-panel,
  .rzd-login-visual {
    min-height: 0;
    height: 100%;
  }
}

.rzd-login-visual-copy p {
  max-width: 560px;
  margin: 22px 0 0;
  color: #55565a;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 1050px) {
  .rzd-login-shell {
    grid-template-columns: minmax(390px, 46%) minmax(0, 54%);
  }

  .rzd-login-content {
    padding-inline: 42px;
  }

  .rzd-login-visual {
    padding-inline: 44px;
  }

  .rzd-login-visual-copy h2 {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .rzd-login-shell {
    display: block;
  }

  .rzd-login-panel {
    min-height: 100vh;
  }

  .rzd-login-content {
    padding: 40px 28px;
  }

  .rzd-login-logo {
    width: 232px;
    margin-bottom: 30px;
  }

  .rzd-login-heading h1 {
    font-size: 38px;
  }

  .rzd-login-visual {
    display: none;
  }
}

@media (max-height: 950px) and (min-width: 821px) {
  .rzd-login-content {
    padding-block: 32px;
  }

  .rzd-login-logo {
    margin-bottom: 24px;
  }

  .rzd-login-role-switch {
    margin-bottom: 20px;
  }

  .rzd-login-heading {
    margin-bottom: 24px;
  }

  .rzd-login-platform {
    margin-top: 18px;
    padding-top: 14px;
  }
}

@media (max-width: 991px) {
  :root {
    --bs-app-header-height: 60px;
    --bs-app-header-height-actual: 60px;
  }

  #kt_app_content_container {
    padding: 16px 20px 12px !important;
  }
}

@media (max-width: 767px) {
  #kt_app_content_container {
    padding: 12px !important;
  }

  body[data-rzd-current-url^="/web/admin/"] #card_content > .d-flex.flex-stack.flex-wrap.mb-5 {
    align-items: stretch !important;
    gap: 12px;
  }

  body[data-rzd-current-url^="/web/admin/"] #card_content > .d-flex.flex-stack.flex-wrap.mb-5 > .d-flex {
    width: 100%;
    min-width: 0;
    margin-block: 0 !important;
  }

  body[data-rzd-current-url^="/web/admin/"] #card_content input[data-table-filter="search"] {
    flex: 1 1 140px;
    width: auto !important;
    min-width: 0;
    margin-right: 0 !important;
  }

  body[data-rzd-current-url^="/web/admin/"] #card_content #export_button {
    flex: 0 0 auto;
    margin-left: 12px !important;
    padding-inline: 14px;
  }

  body[data-rzd-current-url^="/web/admin/"] #card_content [data-table-toolbar="base"] {
    align-items: stretch;
    gap: 12px;
    justify-content: stretch !important;
  }

  body[data-rzd-current-url^="/web/admin/"] #card_content [data-table-toolbar="base"] > button,
  body[data-rzd-current-url^="/web/admin/"] #card_content [data-table-toolbar="base"] > a.btn {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0 !important;
    padding-inline: 12px;
    justify-content: center;
    white-space: normal;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable_wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable col {
    width: auto !important;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable col:last-child,
  body[data-rzd-current-url^="/web/admin/"] #dataTable th:last-child,
  body[data-rzd-current-url^="/web/admin/"] #dataTable td:last-child {
    width: 92px !important;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable th,
  body[data-rzd-current-url^="/web/admin/"] #dataTable td {
    min-width: 0 !important;
    padding-inline: 6px;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body[data-rzd-current-url="/web/admin/users"] #dataTable col:nth-child(3),
  body[data-rzd-current-url="/web/admin/users"] #dataTable th:nth-child(3),
  body[data-rzd-current-url="/web/admin/users"] #dataTable td:nth-child(3),
  body[data-rzd-current-url="/web/admin/managers"] #dataTable col:nth-child(3),
  body[data-rzd-current-url="/web/admin/managers"] #dataTable th:nth-child(3),
  body[data-rzd-current-url="/web/admin/managers"] #dataTable td:nth-child(3) {
    display: none !important;
  }

  body[data-rzd-current-url="/web/admin/connections"] #dataTable col:nth-child(2),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable th:nth-child(2),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable td:nth-child(2),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable col:nth-child(3),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable th:nth-child(3),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable td:nth-child(3),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable col:nth-child(5),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable th:nth-child(5),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable td:nth-child(5),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable col:nth-child(6),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable th:nth-child(6),
  body[data-rzd-current-url="/web/admin/connections"] #dataTable td:nth-child(6),
  body[data-rzd-current-url="/web/admin/eventrules"] #dataTable col:nth-child(3),
  body[data-rzd-current-url="/web/admin/eventrules"] #dataTable th:nth-child(3),
  body[data-rzd-current-url="/web/admin/eventrules"] #dataTable td:nth-child(3),
  body[data-rzd-current-url="/web/admin/eventrules"] #dataTable col:nth-child(4),
  body[data-rzd-current-url="/web/admin/eventrules"] #dataTable th:nth-child(4),
  body[data-rzd-current-url="/web/admin/eventrules"] #dataTable td:nth-child(4) {
    display: none !important;
  }

  .app-content .card-header {
    min-height: 0;
    padding: 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .app-content .card-title,
  .app-content .card-toolbar,
  .app-content [data-kt-filemanager-table-toolbar="base"] {
    width: 100%;
  }

  .app-content .card-title > div,
  .app-content input[data-kt-filemanager-table-filter="search"] {
    width: 100% !important;
  }

  .app-content .card-toolbar .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .app-content .card-body {
    padding: 4px 16px 16px;
  }

  .app-content .table-responsive {
    overflow-x: visible !important;
  }

  #file_manager_list {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  #file_manager_list col[data-dt-column="0"] {
    width: 34px !important;
  }

  #file_manager_list col[data-dt-column="2"] {
    width: auto !important;
  }

  #file_manager_list col[data-dt-column="3"],
  #file_manager_list col[data-dt-column="4"],
  #file_manager_list th:nth-child(3),
  #file_manager_list td:nth-child(3),
  #file_manager_list th:nth-child(4),
  #file_manager_list td:nth-child(4) {
    display: none !important;
  }

  #file_manager_list col[data-dt-column="5"],
  #file_manager_list th:last-child,
  #file_manager_list td:last-child {
    width: 44px !important;
  }

  #file_manager_list th:nth-child(2) {
    width: auto !important;
    min-width: 0 !important;
  }

  #file_manager_list td:nth-child(2) .d-flex {
    min-width: 0;
  }

  #file_manager_list td:nth-child(2) .me-4 {
    flex: 0 0 auto;
    margin-right: 10px !important;
  }

  #file_manager_list td:nth-child(2) a {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  #file_manager_list > :not(caption) > * > * {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* v72: in-service PDF viewer with a stable, session-aware reading surface. */
body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview-modal .modal-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
  height: calc(100vh - 32px);
  margin: 16px auto;
}

body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview-modal .modal-content {
  height: 100%;
  overflow: hidden;
}

body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview-modal .modal-header {
  align-items: flex-start;
}

body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview__file {
  max-width: min(760px, 72vw);
  margin: 4px 0 0;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview-modal .modal-body {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #eef1f5;
}

body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: #fff;
}

body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview__download {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview-modal .modal-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview__file {
    max-width: calc(100vw - 96px);
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-pdf-preview-modal .modal-footer > * {
    width: 100%;
    min-width: 0;
  }
}

/* v71: authenticated, read-only TXT preview. */
body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-dialog {
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
  margin-inline: auto;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-content {
  max-height: min(820px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid #d9d4cd;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(28, 35, 52, 0.24);
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-header {
  flex: 0 0 auto;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e9e4de;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-body {
  display: flex;
  min-height: 190px;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 26px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__file {
  overflow-wrap: anywhere;
  margin: 0 0 12px;
  color: #141c35;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__status,
body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__error {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  line-height: 1.55;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__status {
  color: #626873;
  border: 1px solid #e5e1dc;
  background: #f8f7f5;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__error {
  color: #7a271a;
  border: 1px solid #f0c7bf;
  background: #fff2f0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__content {
  min-height: 180px;
  max-height: 58vh;
  flex: 1 1 auto;
  overflow: auto;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 20px;
  color: #202938;
  border: 1px solid #d8d4ce;
  border-radius: 14px;
  outline: none;
  background: #f7f6f3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
  tab-size: 4;
  white-space: pre-wrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__content:focus-visible {
  border-color: #9b7db8;
  box-shadow: 0 0 0 3px rgba(90, 67, 120, 0.14);
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-footer {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px 22px;
  border-top: 1px solid #e9e4de;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-footer .btn {
  display: inline-flex;
  min-width: 146px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 750;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__download {
  color: #ffffff;
  border-color: #d52b1e;
  background: #d52b1e;
}

body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__download:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__download:focus-visible {
  color: #ffffff;
  border-color: #b82218;
  background: #b82218;
}

@media (max-width: 575px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-dialog {
    width: auto;
    margin: 12px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-content {
    max-height: calc(100vh - 24px);
    border-radius: 16px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-header,
  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__content {
    min-height: 160px;
    padding: 15px;
    font-size: 13px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 18px 18px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview-modal .modal-footer .btn {
    width: 100%;
    min-width: 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-text-preview__download {
    order: -1;
  }
}

/* v70: clear download fallback when a file has no safe browser preview. */
body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-dialog {
  max-width: 520px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-content {
  overflow: hidden;
  border: 1px solid #ddd7d0;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(28, 35, 52, 0.24);
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-header {
  padding: 24px 26px 20px;
  border-bottom: 1px solid #e9e4de;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-body {
  padding: 26px;
  text-align: center;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  color: #a34638;
  border: 1px solid #efd1ca;
  border-radius: 18px;
  background: #fff1ee;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__lead {
  margin: 0;
  color: #242832;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__file {
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  color: #141c35;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__hint {
  margin: 10px auto 0;
  max-width: 420px;
  color: #626873;
  font-size: 14px;
  line-height: 1.55;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px 24px;
  border-top: 1px solid #e9e4de;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-footer .btn {
  display: inline-flex;
  min-width: 146px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 750;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__download {
  color: #fff;
  border-color: #d52b1e;
  background: #d52b1e;
}

body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__download:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__download:focus-visible {
  color: #fff;
  border-color: #b82218;
  background: #b82218;
}

body[data-rzd-current-url="/web/client/files"] .rzd-media-preview-fallback > strong {
  display: block;
  margin-bottom: 8px;
  color: #242832;
  font-size: 16px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-media-preview-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-media-preview-fallback__actions .btn {
  min-height: 44px;
}

@media (max-width: 575px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-dialog {
    margin: 14px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-header,
  body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px 18px 20px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable-modal .modal-footer .btn {
    width: 100%;
    min-width: 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-preview-unavailable__download {
    order: -1;
  }
}

/* v66: clear native create-folder modal. */
.rzd-create-folder-modal .modal-dialog {
  width: min(600px, calc(100vw - 32px));
  max-width: 600px;
  margin-inline: auto;
}

.rzd-create-folder-modal .modal-content {
  overflow: hidden;
  border: 1px solid #ded9d2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(20, 27, 45, 0.2);
}

.rzd-create-folder-modal .modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 22px;
  padding: 28px 30px 22px;
  border-bottom: 1px solid #ebe7e2;
}

.rzd-create-folder-modal .modal-header > div:first-child {
  min-width: 0;
}

.rzd-create-folder__kicker {
  display: block;
  margin-bottom: 8px;
  color: #c92319;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rzd-create-folder-modal .modal-title {
  margin: 0;
  color: #202227;
  font-size: clamp(25px, 3vw, 31px);
  font-weight: 750;
  line-height: 1.14;
}

.rzd-create-folder-modal .modal-header p {
  max-width: 470px;
  margin: 10px 0 0;
  color: #6f7177;
  font-size: 14px;
  line-height: 1.55;
}

.rzd-create-folder__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dcd7d0;
  border-radius: 12px;
  background: #f8f7f5;
  color: #5d6066;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.rzd-create-folder__close:hover,
.rzd-create-folder__close:focus-visible {
  border-color: #aaa49c;
  background: #efede9;
  color: #202227;
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 90, 135, 0.13);
}

.rzd-create-folder-modal .modal-body {
  padding: 24px 30px 22px;
}

.rzd-create-folder__preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #e3ded7;
  border-radius: 15px;
  background: #f8f7f5;
}

.rzd-create-folder__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #9fc2de;
  border-radius: 13px;
  background: #e5f1fa;
  color: #155a87;
}

.rzd-create-folder__preview > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rzd-create-folder__preview strong {
  color: #25272b;
  font-size: 15px;
  line-height: 1.35;
}

.rzd-create-folder__preview span:not(.rzd-create-folder__icon) {
  color: #77797e;
  font-size: 13px;
  line-height: 1.4;
}

.rzd-create-folder__label {
  display: block;
  margin-bottom: 8px;
  color: #303238;
  font-size: 14px;
  font-weight: 700;
}

.rzd-create-folder-modal #file_manager_new_folder_input {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid #c9c4bc;
  border-radius: 12px;
  background: #ffffff;
  color: #22252b;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.rzd-create-folder-modal #file_manager_new_folder_input:focus {
  border-color: #c92319;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 35, 25, 0.13);
}

.rzd-create-folder-modal #file_manager_new_folder_input[aria-invalid="true"] {
  border-color: #c92319;
  background: #fffafa;
}

.rzd-create-folder__hint {
  margin: 8px 0 0;
  color: #7b7d82;
  font-size: 13px;
  line-height: 1.4;
}

.rzd-create-folder__error {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #efb5b0;
  border-radius: 11px;
  background: #fff1ef;
  color: #9d1b15;
  font-size: 13px;
  line-height: 1.4;
}

.rzd-create-folder-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 30px 24px;
  border-top: 1px solid #ebe7e2;
  background: #fbfaf8;
}

.rzd-create-folder__cancel,
.rzd-create-folder__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.rzd-create-folder__cancel {
  border: 1px solid #cfcac3;
  background: #ffffff;
  color: #36383d;
}

.rzd-create-folder__cancel:hover,
.rzd-create-folder__cancel:focus-visible {
  border-color: #aaa49c;
  background: #efede9;
  color: #25272b;
}

.rzd-create-folder__submit {
  min-width: 168px;
  border: 1px solid #ad1b14;
  background: #c92319;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(173, 27, 20, 0.2);
}

.rzd-create-folder__submit:hover,
.rzd-create-folder__submit:focus-visible {
  border-color: #94150f;
  background: #ad1b14;
  color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 35, 25, 0.17), 0 4px 12px rgba(173, 27, 20, 0.18);
}

.rzd-create-folder__submit .indicator-label,
.rzd-create-folder__submit .indicator-progress {
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rzd-create-folder__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.rzd-create-folder__submit .indicator-label {
  display: inline-flex;
}

.rzd-create-folder__submit .indicator-progress {
  display: none;
}

.rzd-create-folder__submit[data-kt-indicator="on"] .indicator-label {
  display: none;
}

.rzd-create-folder__submit[data-kt-indicator="on"] .indicator-progress {
  display: inline-flex;
}

@media (max-width: 575px) {
  .rzd-create-folder-modal .modal-dialog {
    width: calc(100vw - 24px);
    margin: 12px auto;
  }

  .rzd-create-folder-modal .modal-content {
    border-radius: 18px;
  }

  .rzd-create-folder-modal .modal-header {
    gap: 14px;
    padding: 22px 20px 18px;
  }

  .rzd-create-folder-modal .modal-title {
    font-size: 25px;
  }

  .rzd-create-folder-modal .modal-body {
    padding: 20px;
  }

  .rzd-create-folder__preview {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 12px;
  }

  .rzd-create-folder__icon {
    width: 46px;
    height: 46px;
  }

  .rzd-create-folder-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px 20px 20px;
  }

  .rzd-create-folder__submit {
    order: -1;
    width: 100%;
  }

  .rzd-create-folder__cancel {
    width: 100%;
  }
}

/* RZD move/copy destination v54: one clear native operation, destination and result. */
.rzd-move-copy-modal {
  --rzd-move-copy-red: #d52b1e;
  --rzd-move-copy-red-dark: #b91f16;
  --rzd-move-copy-blue: #2968a8;
  --rzd-move-copy-ink: #17191d;
  --rzd-move-copy-muted: #6f737a;
  --rzd-move-copy-line: #e1ddd7;
  --rzd-move-copy-soft: #f7f5f2;
  --rzd-move-copy-green: #287a4d;
}

.rzd-move-copy-modal .modal-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
}

.rzd-move-copy-modal .modal-content {
  max-height: min(920px, calc(100dvh - 32px));
  overflow: hidden;
  color: var(--rzd-move-copy-ink);
  background: #fff;
  border: 1px solid var(--rzd-move-copy-line);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(29, 23, 19, .22);
}

.rzd-move-copy-modal .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--rzd-move-copy-line);
}

.rzd-move-copy__kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--rzd-move-copy-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.rzd-move-copy-modal .modal-title {
  margin: 0;
  color: var(--rzd-move-copy-ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.08;
}

.rzd-move-copy-modal .modal-header p {
  margin: 8px 0 0;
  color: var(--rzd-move-copy-muted);
  font-size: 14px;
  line-height: 1.45;
}

.rzd-move-copy__close {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #62666d;
  background: var(--rzd-move-copy-soft);
  border: 1px solid var(--rzd-move-copy-line);
  border-radius: 50%;
}

.rzd-move-copy__close:hover,
.rzd-move-copy__close:focus-visible {
  color: var(--rzd-move-copy-red);
  background: #fff3f0;
  border-color: #f0b8b2;
}

.rzd-move-copy-modal .modal-body {
  overflow-y: auto;
  padding: 24px 32px 28px;
  overscroll-behavior: contain;
}

.rzd-move-copy__error {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #71490b;
  background: #fff8e6;
  border: 1px solid #eccd88;
  border-radius: 12px;
}

.rzd-move-copy__error-close {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.rzd-move-copy__source {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--rzd-move-copy-soft);
  border: 1px solid var(--rzd-move-copy-line);
  border-radius: 16px;
}

.rzd-move-copy__source-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: #fff;
  border: 1px solid #ddd8d1;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(30, 25, 21, .06);
}

.rzd-move-copy__source-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.rzd-move-copy__source-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.rzd-move-copy__source-copy small,
.rzd-move-copy__source-copy > span,
.rzd-move-copy__origin {
  color: var(--rzd-move-copy-muted);
  font-size: 12px;
}

.rzd-move-copy__source-copy small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rzd-move-copy__source-copy strong {
  overflow: hidden;
  color: #20242a;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-move-copy__origin {
  padding-left: 18px;
  border-left: 1px solid var(--rzd-move-copy-line);
  white-space: nowrap;
}

.rzd-move-copy__origin strong {
  display: block;
  margin-top: 2px;
  color: #34373c;
}

.rzd-move-copy__operations,
.rzd-move-copy__destination,
.rzd-move-copy__rename {
  margin-top: 24px;
}

.rzd-move-copy__operations > h3,
.rzd-move-copy__section-heading h3,
.rzd-move-copy__rename > label {
  margin: 0;
  color: #2c2f34;
  font-size: 14px;
  font-weight: 750;
}

.rzd-move-copy__operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 11px;
}

.rzd-move-copy__operation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  min-height: 80px;
  padding: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--rzd-move-copy-line);
  border-radius: 15px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.rzd-move-copy__operation:hover {
  border-color: #bcb6ae;
}

.rzd-move-copy__operation:focus-visible {
  outline: 3px solid rgba(41, 104, 168, .22);
  outline-offset: 2px;
}

.rzd-move-copy__operation.is-selected {
  background: #fff8f6;
  border-color: #e8786e;
  box-shadow: 0 0 0 1px rgba(213, 43, 30, .08);
}

.rzd-move-copy__operation-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
}

.rzd-move-copy__operation-icon--copy {
  color: var(--rzd-move-copy-blue);
  background: #edf5fd;
}

.rzd-move-copy__operation-icon--move {
  color: var(--rzd-move-copy-red);
  background: #fff0ed;
}

.rzd-move-copy__operation > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.rzd-move-copy__operation strong {
  color: #22262b;
  font-size: 15px;
}

.rzd-move-copy__operation small {
  color: var(--rzd-move-copy-muted);
  font-size: 12px;
}

.rzd-move-copy__operation-check {
  visibility: hidden;
  color: var(--rzd-move-copy-red);
}

.rzd-move-copy__operation.is-selected .rzd-move-copy__operation-check {
  visibility: visible;
}

.rzd-move-copy__section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.rzd-move-copy__section-heading p {
  margin: 5px 0 0;
  color: var(--rzd-move-copy-muted);
  font-size: 12px;
}

.rzd-move-copy__new-folder {
  flex: 0 0 auto;
  min-height: 42px;
  color: #254f78;
  background: #edf5fd;
  border: 1px solid #c7dcee;
}

.rzd-move-copy__new-folder:hover,
.rzd-move-copy__new-folder:focus-visible {
  color: #173f66;
  background: #e2f0fc;
  border-color: #9fc4e4;
}

.rzd-move-copy__current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 12px 15px;
  color: var(--rzd-move-copy-green);
  background: #f0f9f4;
  border: 1px solid #bee0ca;
  border-radius: 12px;
}

.rzd-move-copy__current span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.rzd-move-copy__current strong {
  min-width: 0;
  overflow: hidden;
  color: #1e5137;
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-move-copy__breadcrumbs {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 8px 12px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--rzd-move-copy-line);
  border-radius: 11px;
  scrollbar-width: thin;
}

.rzd-move-copy__breadcrumbs a {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #3f5368;
  font-size: 12px;
  font-weight: 650;
  border-radius: 6px;
}

.rzd-move-copy__breadcrumbs a:hover {
  color: var(--rzd-move-copy-red);
  background: #fff2ef;
}

.rzd-move-copy__breadcrumbs > i {
  flex: 0 0 auto;
  margin: 0 1px !important;
  color: #a2a5aa !important;
  font-size: 14px !important;
}

.rzd-move-copy__create-folder {
  margin-top: 10px;
  padding: 14px;
  background: #f5f8fb;
  border: 1px solid #ceddea;
  border-radius: 12px;
}

.rzd-move-copy__create-folder > label {
  display: block;
  margin-bottom: 7px;
  color: #38424c;
  font-size: 12px;
  font-weight: 700;
}

.rzd-move-copy__create-folder > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.rzd-move-copy__create-folder .form-control,
.rzd-move-copy__rename .form-control {
  min-height: 44px;
  color: #272b31;
  background: #fff;
  border: 1px solid #cbc5bd;
  border-radius: 10px;
}

.rzd-move-copy__create-confirm {
  color: #fff;
  background: var(--rzd-move-copy-blue);
}

.rzd-move-copy__create-confirm:hover {
  color: #fff;
  background: #1d568e;
}

.rzd-move-copy__create-confirm .indicator-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rzd-move-copy__create-cancel {
  color: #53575e;
  background: #fff;
  border: 1px solid #d8d3cd;
}

.rzd-move-copy__folder-list {
  max-height: 250px;
  margin-top: 10px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--rzd-move-copy-line);
  border-radius: 13px;
}

.rzd-move-copy__folder-list #dirsbrowser_list_wrapper > .row {
  display: none !important;
}

.rzd-move-copy__folder-list .dataTables_scroll,
.rzd-move-copy__folder-list .table-responsive {
  overflow: visible;
}

.rzd-move-copy__folder-list table,
.rzd-move-copy__folder-list .table {
  width: 100% !important;
  margin: 0 !important;
}

.rzd-move-copy__folder-list td {
  padding: 0 !important;
  border: 0 !important;
}

.rzd-move-copy__folder-list tr + tr td {
  border-top: 1px dashed #e4e0db !important;
}

.rzd-move-copy__folder-row {
  display: grid;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  color: #30343a;
  text-align: left;
  background: #fff;
  border: 0;
}

.rzd-move-copy__folder-row:hover,
.rzd-move-copy__folder-row:focus-visible {
  background: #f5f9fc;
  outline: none;
}

.rzd-move-copy__folder-row:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(41, 104, 168, .35);
}

.rzd-move-copy__folder-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: #fff8ed;
  border: 1px solid #e5d5bb;
  border-radius: 11px;
}

.rzd-move-copy__folder-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.rzd-move-copy__folder-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.rzd-move-copy__folder-copy strong {
  overflow: hidden;
  color: #252a31;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-move-copy__folder-copy small {
  color: var(--rzd-move-copy-muted);
  font-size: 11px;
}

.rzd-move-copy__folder-row > i {
  color: #8d9299;
}

.rzd-move-copy__rename > label {
  display: block;
  margin-bottom: 7px;
}

.rzd-move-copy__rename > small {
  display: block;
  margin-top: 6px;
  color: var(--rzd-move-copy-muted);
  font-size: 11px;
}

.rzd-move-copy-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: var(--rzd-move-copy-soft);
  border-top: 1px solid var(--rzd-move-copy-line);
}

.rzd-move-copy__summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.rzd-move-copy__summary span {
  color: var(--rzd-move-copy-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rzd-move-copy__summary strong {
  max-width: 520px;
  overflow: hidden;
  color: #30343a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-move-copy__footer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.rzd-move-copy__cancel,
.rzd-move-copy__submit {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 11px;
}

.rzd-move-copy__cancel {
  color: #4d5158;
  background: #fff;
  border: 1px solid #d7d2cc;
}

.rzd-move-copy__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 154px;
  color: #fff;
  background: var(--rzd-move-copy-red);
  box-shadow: 0 7px 18px rgba(213, 43, 30, .19);
}

.rzd-move-copy__submit:hover,
.rzd-move-copy__submit:focus-visible {
  color: #fff;
  background: var(--rzd-move-copy-red-dark);
}

@media (max-width: 767px) {
  .rzd-move-copy-modal .modal-dialog {
    width: 100%;
    height: 100dvh;
    margin: 0;
  }

  .rzd-move-copy-modal .modal-content {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .rzd-move-copy-modal .modal-header {
    padding: calc(18px + env(safe-area-inset-top)) 18px 17px;
  }

  .rzd-move-copy-modal .modal-title {
    font-size: 25px;
  }

  .rzd-move-copy-modal .modal-header p {
    max-width: 290px;
    font-size: 12px;
  }

  .rzd-move-copy-modal .modal-body {
    padding: 18px 16px 26px;
  }

  .rzd-move-copy__source {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 13px;
  }

  .rzd-move-copy__source-icon {
    width: 48px;
    height: 48px;
  }

  .rzd-move-copy__source-icon img {
    width: 34px;
    height: 34px;
  }

  .rzd-move-copy__origin {
    grid-column: 1 / -1;
    padding: 10px 0 0;
    border-top: 1px solid var(--rzd-move-copy-line);
    border-left: 0;
  }

  .rzd-move-copy__origin strong {
    display: inline;
    margin-left: 4px;
  }

  .rzd-move-copy__operation-grid {
    grid-template-columns: 1fr;
  }

  .rzd-move-copy__operation {
    min-height: 72px;
  }

  .rzd-move-copy__section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .rzd-move-copy__new-folder {
    width: 100%;
    justify-content: center;
  }

  .rzd-move-copy__current {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .rzd-move-copy__current strong {
    width: 100%;
    text-align: left;
  }

  .rzd-move-copy__create-folder > div {
    grid-template-columns: 1fr 1fr;
  }

  .rzd-move-copy__create-folder .form-control {
    grid-column: 1 / -1;
  }

  .rzd-move-copy__folder-list {
    max-height: 310px;
  }

  .rzd-move-copy__folder-copy small {
    display: none;
  }

  .rzd-move-copy-modal .modal-footer {
    position: sticky;
    z-index: 3;
    bottom: 0;
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .rzd-move-copy__summary {
    margin-bottom: 10px;
  }

  .rzd-move-copy__summary strong {
    max-width: 100%;
  }

  .rzd-move-copy__footer-actions {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  }

  .rzd-move-copy__cancel,
  .rzd-move-copy__submit {
    width: 100%;
    min-height: 48px;
    padding-inline: 12px;
  }
}

@media (max-width: 380px) {
  .rzd-move-copy__operation {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 11px;
  }

  .rzd-move-copy__operation-icon {
    width: 42px;
    height: 42px;
  }

  .rzd-move-copy__folder-row {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 9px;
    padding-inline: 10px;
  }

  .rzd-move-copy__folder-icon {
    width: 40px;
    height: 40px;
  }
}

/* v52: terminal public-link state without portal navigation or interactive controls. */
html.rzd-public-link-state-root {
  min-width: 0;
  min-height: 100%;
  background: #f6f5f3;
  color-scheme: light;
}

body.rzd-public-link-state-page {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(230, 42, 31, .07), transparent 30rem),
    #f6f5f3;
  color: #202124;
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif;
}

.rzd-public-link-state,
.rzd-public-link-state * {
  box-sizing: border-box;
}

.rzd-public-link-state {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.rzd-public-link-state__card {
  width: min(100%, 640px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #ddd9d4;
  border-radius: clamp(20px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 18px 55px rgba(24, 25, 27, .09);
}

.rzd-public-link-state__logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 0 clamp(28px, 5vw, 42px);
}

.rzd-public-link-state__rule {
  width: 42px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #e42b22;
}

.rzd-public-link-state__eyebrow {
  margin: 0 0 10px;
  color: #c9241c;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.rzd-public-link-state h1 {
  margin: 0;
  color: #171719;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.rzd-public-link-state__description {
  max-width: 34rem;
  margin: 22px 0 0;
  color: #66666b;
  font-size: clamp(16px, 2.5vw, 19px);
  line-height: 1.55;
}

.rzd-public-link-state__contact {
  display: grid;
  gap: 6px;
  margin-top: clamp(26px, 5vw, 38px);
  padding: 18px 20px;
  border-left: 4px solid #e42b22;
  border-radius: 0 14px 14px 0;
  background: #fff2f0;
  color: #55555a;
  font-size: 15px;
  line-height: 1.45;
}

.rzd-public-link-state__contact strong {
  color: #252529;
  font-size: clamp(17px, 2.8vw, 20px);
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .rzd-public-link-state {
    place-items: end center;
    padding: max(16px, env(safe-area-inset-top)) 0 0;
  }

  .rzd-public-link-state__card {
    padding: 28px 20px max(28px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 44px rgba(24, 25, 27, .08);
  }

  .rzd-public-link-state__logo {
    width: min(100%, 220px);
    margin-bottom: 30px;
  }
}

/* Employee cabinet v26 table corrections: compact rows, grouped actions and honest attribution. */
body[data-rzd-current-url="/web/client/files"] #file_manager_list thead th {
  padding-top: 11px;
  padding-bottom: 11px;
  vertical-align: middle;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;
  transition: background-color .14s ease;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody tr:hover td {
  background: #fdfbf9;
}

body[data-rzd-current-url="/web/client/files"] .rzd-empty-value {
  color: #a0a1a5;
  font-size: 10px;
  font-weight: 600;
}

body[data-rzd-current-url="/web/client/files"] .rzd-editor-value--known,
body[data-rzd-current-url="/web/client/files"] .rzd-file-row-author--known {
  color: #343539;
  font-weight: 780;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
  min-width: 288px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions {
  display: inline-flex !important;
  width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 3px !important;
  margin-left: auto;
  padding: 3px;
  border: 1px solid #e6e2dc;
  border-radius: 12px;
  background: #faf9f7;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--share {
  border-color: #f2d1cd;
  background: #fff2f0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action:focus-visible {
  border-color: #edb3ad;
  background: #fff;
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    min-width: 128px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions {
    gap: 2px !important;
    padding: 2px;
    border-radius: 10px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action {
    width: 36px;
    min-height: 36px;
  }
}

/* Employee cabinet v21 corrections: compact heading, honest columns and full-folder filters. */
.rzd-action-icon,
.rzd-storage-heading-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rzd-storage-heading-icon svg {
  width: 23px;
  height: 23px;
}

body[data-rzd-current-url="/web/client/files"] #kt_app_content_container {
  padding-top: 18px !important;
  padding-bottom: 30px !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro {
  display: block;
  margin-bottom: 12px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > span {
  gap: 7px;
  font-size: 8px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > span::before {
  width: 16px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > h1 {
  margin: 3px 0 2px;
  font-size: clamp(27px, 2.3vw, 34px);
  line-height: 1.05;
  letter-spacing: -.035em !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > p {
  max-width: none;
  color: #7f8084;
  font-size: 12px;
  line-height: 1.35;
}

body[data-rzd-current-url="/web/client/files"] .rzd-storage-overview {
  margin-bottom: 14px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-storage-heading {
  min-height: 86px;
  padding: 15px 18px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-storage-heading-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-storage-metric {
  min-height: 86px;
  padding: 15px 20px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-storage-progress {
  right: 20px;
  bottom: 11px;
  left: 20px;
}

body[data-rzd-current-url="/web/client/files"] .card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

body[data-rzd-current-url="/web/client/files"] .card-title {
  min-width: 0;
  margin: 0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(210px, 1fr) minmax(140px, 165px) minmax(142px, 165px) minmax(142px, 165px) auto;
  align-items: end;
  gap: 8px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-name-filter,
body[data-rzd-current-url="/web/client/files"] .rzd-date-filter {
  min-width: 0;
  margin: 0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-date-filter {
  display: grid;
  gap: 3px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-date-filter > span {
  padding-left: 3px;
  color: #62646a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

body[data-rzd-current-url="/web/client/files"] input[data-kt-filemanager-table-filter="search"],
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-select,
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-control,
body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear {
  width: 100% !important;
  min-height: 46px;
  border-color: #d9d5cf;
  border-radius: 11px !important;
  font-size: 12px;
}

body[data-rzd-current-url="/web/client/files"] input[data-kt-filemanager-table-filter="search"] {
  padding-left: 45px !important;
}

body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear {
  padding-inline: 14px;
  color: #55565a;
  font-weight: 750;
}

body[data-rzd-current-url="/web/client/files"] #id_create_dir_button {
  display: none !important;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn {
  min-height: 46px;
  padding-inline: 17px;
  border-radius: 11px !important;
  font-size: 12px;
}

body[data-rzd-current-url="/web/client/files"] .card-body {
  padding: 2px 16px 16px;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-nav-bar="base"] {
  padding: 7px 10px;
  font-size: 11px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list_container {
  margin-top: 12px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list thead th,
body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
  padding-top: 13px;
  padding-bottom: 13px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list thead th {
  font-size: 11px !important;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list th[data-dt-column="0"],
body[data-rzd-current-url="/web/client/files"] #file_manager_list td[data-dt-column="0"],
body[data-rzd-current-url="/web/client/files"] #file_manager_list .form-check {
  display: none !important;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-name-cell {
  min-width: 250px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-size-cell {
  width: 110px;
  min-width: 100px;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-modified-cell {
  width: 155px;
  min-width: 145px;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-editor-cell {
  width: 150px;
  min-width: 135px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-editor-value {
  color: #898a8e;
  font-size: 11px;
  font-weight: 600;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
  width: 1%;
  min-width: 268px;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
  display: none;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action {
  min-height: 38px;
  padding: 8px 11px;
}

@media (max-width: 1240px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar {
    grid-template-columns: minmax(190px, 1fr) 140px 145px 145px auto;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-editor-heading,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-editor-cell {
    display: none !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
    display: flex;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-date {
    display: none;
  }
}

/* v26 mobile storage value fit: quota labels must remain fully readable instead
   of ending with an ellipsis in the two-column phone summary. */
@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-storage-metric strong {
    overflow: visible;
    font-size: clamp(14px, 4vw, 17px);
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 991px) {
  body[data-rzd-current-url="/web/client/files"] #kt_app_content_container {
    padding: 15px 18px 28px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .card-header {
    grid-template-columns: 1fr;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar {
    grid-template-columns: minmax(190px, 1fr) minmax(130px, .45fr) repeat(2, minmax(135px, .45fr)) auto;
  }

  body[data-rzd-current-url="/web/client/files"] .card-toolbar,
  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    width: 100%;
  }

  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    justify-content: flex-end !important;
  }
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #kt_app_content_container {
    padding: 12px 10px 24px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro {
    margin-bottom: 9px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > span {
    display: none;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > h1 {
    margin: 0 0 2px;
    font-size: 25px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > p {
    font-size: 11px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-storage-overview {
    margin-bottom: 10px;
    border-radius: 14px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-storage-heading {
    padding: 11px 13px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-storage-metric {
    min-height: 78px;
    padding: 12px 13px;
  }

  body[data-rzd-current-url="/web/client/files"] .card-header {
    gap: 9px;
    padding: 11px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-name-filter,
  body[data-rzd-current-url="/web/client/files"] #rzd_file_type_filter {
    grid-column: 1 / -1;
  }

  body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear {
    grid-column: 1 / -1;
  }

  body[data-rzd-current-url="/web/client/files"] input[data-kt-filemanager-table-filter="search"],
  body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-select,
  body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-control,
  body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear {
    min-height: 43px;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] > i {
    margin-right: 6px !important;
    font-size: 18px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .card-body {
    padding: 2px 10px 11px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list thead,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-size-cell,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-modified-cell,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-editor-cell {
    display: none !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
    min-height: 62px;
    padding-block: 10px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-name-cell {
    width: auto;
    min-width: 150px;
    padding-left: 10px;
    border-left: 1px solid #e2dfda;
    border-radius: 13px 0 0 13px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    width: 1%;
    min-width: 130px;
    padding-right: 7px;
    border-right: 1px solid #e2dfda;
    border-radius: 0 13px 13px 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta,
  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-date {
    display: flex;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
    flex-direction: column;
    gap: 1px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action > span,
  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > .rzd-action-icon {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > i:first-child {
    display: none;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > .rzd-action-icon {
    position: static;
    width: 18px;
    height: 18px;
    overflow: visible;
    clip: auto;
  }
}

/* v26 cascade finalizer. */
body[data-rzd-current-url="/web/client/files"] #file_manager_list thead th {
  padding-top: 11px;
  padding-bottom: 11px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
  padding-top: 10px;
  padding-bottom: 10px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
  min-width: 288px;
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    min-width: 128px;
  }
}

@media (max-width: 420px) {
  .rzd-login-content {
    padding-inline: 20px;
  }

  .rzd-login-heading h1 {
    font-size: 34px;
  }

  .rzd-login-role-switch[data-rzd-login-mode="administrator"] + .rzd-login-heading h1 {
    font-size: clamp(25px, 8vw, 31px);
    letter-spacing: -.7px;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .rzd-recovery-heading h1 {
    font-size: 31px;
  }
}

/* Approved employee workspace: keep SFTPGo behavior, replace only its presentation. */
body[data-rzd-current-url^="/web/client/"] {
  --bs-app-sidebar-width: 307px;
  --bs-app-sidebar-width-actual: 307px;
  --bs-app-sidebar-panel-width: 307px;
  --bs-app-sidebar-panel-width-actual: 307px;
  --bs-app-header-height: 88px;
  --bs-app-header-height-actual: 88px;
  background: #fcfbfa !important;
}

body[data-rzd-current-url^="/web/client/"] .app-header {
  min-height: 88px;
  border-bottom-color: #dedbd6;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_header_container {
  padding-inline: clamp(24px, 3vw, 46px) !important;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_header_navbar {
  min-width: 0;
}

.rzd-client-header-context {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}

.rzd-client-header-context strong {
  color: var(--rzd-ink);
  font-size: 18px;
  font-weight: 750;
}

.rzd-client-header-context span {
  padding-left: 24px;
  color: var(--rzd-muted);
  border-left: 1px solid var(--rzd-line);
  font-size: 14px;
}

.rzd-client-bottom-nav {
  display: none;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar {
  border-right-color: #dedbd6;
  background: #fff !important;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar-header {
  margin-inline: 24px !important;
  padding-top: 28px !important;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar-logo img {
  width: 238px;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_sidebar_navs_wrappers {
  margin-inline: 15px !important;
  overflow: visible !important;
}

.rzd-client-sidebar-label {
  margin: 4px 18px 12px;
  color: #9a9996;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em !important;
  text-transform: uppercase;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar .menu-item {
  margin-bottom: 7px;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar .menu-link {
  min-height: 66px;
  padding: 14px 18px !important;
  border-radius: 14px !important;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar .menu-link .menu-icon {
  width: 34px;
  margin-right: 8px;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar .menu-link .menu-title {
  color: #3f3f42 !important;
  font-size: 15px;
  font-weight: 700;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar .menu-link.active {
  color: var(--rzd-red);
  background: #fff0ed !important;
  box-shadow: none;
}

body[data-rzd-current-url^="/web/client/"] .app-sidebar .menu-link.active .menu-title,
body[data-rzd-current-url^="/web/client/"] .app-sidebar .menu-link.active .menu-icon {
  color: var(--rzd-red) !important;
}

.rzd-client-sidebar-status {
  position: fixed;
  z-index: 2;
  bottom: 24px;
  left: 15px;
  display: flex;
  box-sizing: border-box;
  width: 277px;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333337;
  border: 1px solid #e2dfda;
  border-radius: 14px;
  background: #fff;
}

.rzd-client-sidebar-status > span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #24ae62;
}

.rzd-client-sidebar-status div {
  display: grid;
  gap: 1px;
}

.rzd-client-sidebar-status strong {
  font-size: 12px;
}

.rzd-client-sidebar-status small {
  color: #8b8c90;
  font-size: 10px;
}

body[data-rzd-current-url^="/web/client/"] .app-content {
  background: #fcfbfa !important;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_content_container {
  max-width: 1500px;
  margin-inline: auto;
  padding: clamp(34px, 4vw, 58px) clamp(28px, 4vw, 64px) 42px !important;
}

.rzd-client-page-intro {
  margin-bottom: 26px;
}

.rzd-client-page-intro > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--rzd-red-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

.rzd-client-page-intro > span::before {
  width: 22px;
  height: 2px;
  content: "";
  background: var(--rzd-red);
}

.rzd-client-page-intro h1 {
  margin: 8px 0 6px;
  color: var(--rzd-ink);
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.045em !important;
}

.rzd-client-page-intro p {
  margin: 0;
  color: var(--rzd-muted);
  font-size: 15px;
}

body[data-rzd-current-url^="/web/client/"] .card,
body[data-rzd-current-url^="/web/client/"] .modal-content {
  border: 1px solid #e0ddd8 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

body[data-rzd-current-url="/web/client/files"] .card-header {
  min-height: 96px;
  padding: 18px 22px;
  flex-wrap: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .card-title {
  min-width: 220px;
  flex: 1 1 auto;
}

body[data-rzd-current-url="/web/client/files"] .card-title > div {
  width: 100%;
}

body[data-rzd-current-url="/web/client/files"] input[data-kt-filemanager-table-filter="search"] {
  width: 100% !important;
  min-height: 58px;
  padding-left: 52px !important;
  border-color: #d9d5cf;
  border-radius: 15px !important;
  font-size: 15px;
}

body[data-rzd-current-url="/web/client/files"] .card-toolbar {
  flex: 0 0 auto;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn {
  min-height: 58px;
  padding-inline: 22px;
  border-radius: 15px !important;
  font-weight: 750;
}

body[data-rzd-current-url="/web/client/files"] .card-body {
  padding: 2px 22px 22px;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-nav-bar="base"] {
  padding: 9px 13px;
  color: #68696d;
  border-radius: 10px;
  background: #f6f4f1 !important;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list_container {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e2dfda;
  border-radius: 16px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list {
  margin: 0 !important;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list thead th {
  padding-top: 16px;
  padding-bottom: 16px;
  color: #444448 !important;
  border-bottom: 1px solid #e2dfda;
  background: #faf9f7;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom-color: #ece9e4;
  background: #fff;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list_body a {
  color: #222225;
  font-weight: 700;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-type-icon {
  position: relative;
  flex: 0 0 44px;
  display: grid;
  width: 44px;
  height: 48px;
  place-items: center;
  margin-right: 14px;
  padding: 5px;
  overflow: hidden;
  color: #55565b;
  border: 1px solid #ded9d2;
  border-radius: 10px;
  background: #f2efeb;
  box-shadow: 0 3px 8px rgba(28, 27, 25, .08);
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-type-icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-type-icon--application {
  border-color: #bfd3ed;
  background: #eef5ff;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-type-icon--installer {
  border-color: #edc7a7;
  background: #fff3e9;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-type-icon--script {
  border-color: #cbc3e3;
  background: #f2effa;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-type-extension {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  overflow: hidden;
  padding: 2px 1px;
  color: #3f4147;
  border: 1px solid rgba(126, 122, 115, .22);
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  font-size: 7px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .02em !important;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-row-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 4px;
  color: #77787c;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 600;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-row-date {
  display: none;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-row-author {
  color: #98999d;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-download-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding-inline: 12px;
  color: #343539;
  border: 1px solid #dedbd6;
  border-radius: 10px !important;
  background: #f7f6f3;
  font-size: 12px;
  font-weight: 750;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-download-link:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-file-download-link:focus-visible {
  color: var(--rzd-red-deep);
  border-color: #edb3ad;
  background: #fff0ed;
}

body[data-rzd-current-url^="/web/client/"] .app-footer {
  display: none !important;
}

@media (max-width: 991px) {
  body[data-rzd-current-url^="/web/client/"] {
    --bs-app-header-height: 64px;
    --bs-app-header-height-actual: 64px;
  }

  body[data-rzd-current-url^="/web/client/"] .app-header {
    min-height: 64px;
  }

  body[data-rzd-current-url^="/web/client/"] #kt_app_header_container {
    padding-inline: 16px !important;
  }

  body[data-rzd-current-url^="/web/client/"] #kt_app_content_container {
    padding: 26px 22px 96px !important;
  }

  .rzd-client-sidebar-status {
    display: none;
  }
}

@media (max-width: 767px) {
  body[data-rzd-current-url^="/web/client/"] #kt_app_sidebar_mobile_toggle {
    display: none !important;
  }

  body[data-rzd-current-url^="/web/client/"] #kt_app_header_container > .d-block.d-lg-none {
    margin-left: 0 !important;
  }

  body[data-rzd-current-url^="/web/client/"] #kt_app_header_container > .d-block.d-lg-none img {
    width: 192px;
    max-width: 54vw;
    height: auto !important;
  }

  .rzd-client-header-context {
    display: none;
  }

  .rzd-client-bottom-nav {
    position: fixed;
    z-index: 1090;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
    min-height: 64px;
    padding: 6px;
    border: 1px solid #dedbd6;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(25, 24, 22, .12);
    backdrop-filter: blur(14px);
  }

  .rzd-client-bottom-nav a {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 5px 3px;
    color: #77787c;
    border-radius: 13px;
    font-size: 9px;
    font-weight: 750;
    text-decoration: none;
  }

  .rzd-client-bottom-nav a.active {
    color: var(--rzd-red);
    background: #fff0ed;
  }

  body[data-rzd-current-url^="/web/client/"] #kt_app_content_container {
    padding: 24px 15px 102px !important;
  }

  .rzd-client-page-intro {
    margin-bottom: 20px;
  }

  .rzd-client-page-intro h1 {
    margin-top: 7px;
    font-size: 36px;
  }

  .rzd-client-page-intro p {
    font-size: 13px;
    line-height: 1.45;
  }

  body[data-rzd-current-url="/web/client/files"] .card-header {
    min-height: 0;
    padding: 15px;
    flex-direction: column;
  }

  body[data-rzd-current-url="/web/client/files"] .card-title,
  body[data-rzd-current-url="/web/client/files"] .card-toolbar,
  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    width: 100%;
  }

  body[data-rzd-current-url="/web/client/files"] input[data-kt-filemanager-table-filter="search"] {
    min-height: 52px;
  }

  body[data-rzd-current-url="/web/client/files"] #id_create_dir_button {
    width: 100%;
    min-height: 50px;
    margin-right: 0 !important;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] {
    position: fixed;
    z-index: 1100;
    right: 20px;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 76px);
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(201, 35, 24, .3) !important;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] > i {
    margin: 0 !important;
    font-size: 25px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .card-body {
    padding: 3px 15px 16px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list_container {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list {
    border-collapse: separate !important;
    border-spacing: 0 9px !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list thead,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list col[data-dt-column="0"],
  body[data-rzd-current-url="/web/client/files"] #file_manager_list th:first-child,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list td:first-child {
    display: none !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
    min-height: 64px;
    padding-block: 12px;
    border-top: 1px solid #e2dfda;
    border-bottom: 1px solid #e2dfda;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td:nth-child(2) {
    padding-left: 13px;
    border-left: 1px solid #e2dfda;
    border-radius: 15px 0 0 15px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td:last-child {
    padding-right: 9px;
    border-right: 1px solid #e2dfda;
    border-radius: 0 15px 15px 0;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list_body a {
    font-size: 13px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-type-icon {
    flex-basis: 40px;
    width: 40px;
    height: 44px;
    margin-right: 10px;
    padding: 5px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-type-icon img {
    width: 32px;
    height: 32px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-download-link {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-download-link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-date {
    display: inline;
  }
}

@media (max-width: 359px) {
  body[data-rzd-current-url="/web/admin/ip-lists"] #dataTable col:nth-child(2),
  body[data-rzd-current-url="/web/admin/ip-lists"] #dataTable th:nth-child(2),
  body[data-rzd-current-url="/web/admin/ip-lists"] #dataTable td:nth-child(2),
  body[data-rzd-current-url="/web/admin/ip-lists"] #dataTable col:nth-child(4),
  body[data-rzd-current-url="/web/admin/ip-lists"] #dataTable th:nth-child(4),
  body[data-rzd-current-url="/web/admin/ip-lists"] #dataTable td:nth-child(4) {
    display: none !important;
  }

  .rzd-client-page-intro h1 {
    font-size: 33px;
  }
}

/* v38 native-service state: a thin safety layer over SFTPGo sessions and routes. */
.rzd-service-status.is-checking {
  color: #6f7177;
}

.rzd-service-status.is-checking > span {
  background: #a3a5aa;
  box-shadow: 0 0 0 6px #f0f0f1;
}

.rzd-service-status.is-unavailable {
  color: #b3261e;
}

.rzd-service-status.is-unavailable > span {
  background: #d9271c;
  box-shadow: 0 0 0 6px #fdecea;
}

.rzd-runtime-blocker[hidden] {
  display: none !important;
}

.rzd-runtime-blocker {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(245, 243, 240, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.rzd-runtime-locked {
  overflow: hidden !important;
}

.rzd-runtime-dialog {
  width: min(620px, 100%);
  overflow: hidden;
  color: #202125;
  border: 1px solid #e3dfd9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(39, 31, 26, .18);
}

.rzd-runtime-dialog > header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 18px 24px;
  border-bottom: 1px solid #ece8e2;
}

.rzd-runtime-dialog > header svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.rzd-runtime-dialog > header span {
  color: #3d3e42;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -.035em;
}

.rzd-runtime-dialog__body {
  padding: clamp(26px, 6vw, 46px);
}

.rzd-runtime-signal {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #fff0ed;
}

.rzd-runtime-signal i {
  width: 5px;
  height: 16px;
  border-radius: 99px;
  background: #d9271c;
  animation: rzd-runtime-pulse 1.2s ease-in-out infinite;
}

.rzd-runtime-signal i:nth-child(2) {
  height: 24px;
  animation-delay: .12s;
}

.rzd-runtime-signal i:nth-child(3) {
  height: 12px;
  animation-delay: .24s;
}

.rzd-runtime-blocker[data-state="session-expired"] .rzd-runtime-signal,
.rzd-runtime-blocker[data-state="notice"] .rzd-runtime-signal,
.rzd-runtime-blocker[data-state="restored"] .rzd-runtime-signal {
  background: #edf7f1;
}

.rzd-runtime-blocker[data-state="session-expired"] .rzd-runtime-signal i,
.rzd-runtime-blocker[data-state="notice"] .rzd-runtime-signal i,
.rzd-runtime-blocker[data-state="restored"] .rzd-runtime-signal i {
  background: #24864d;
}

.rzd-runtime-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px !important;
  color: #d9271c !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .1em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.rzd-runtime-eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
}

.rzd-runtime-dialog h2 {
  margin: 0;
  color: #1f2024;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.rzd-runtime-dialog h2 + p {
  margin: 20px 0 0;
  color: #5f6167;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.55;
}

.rzd-runtime-detail {
  margin: 16px 0 0;
  padding: 14px 16px;
  color: #64666b;
  border: 1px solid #ebe7e1;
  border-radius: 12px;
  background: #f8f7f5;
  font-size: 13px;
  line-height: 1.5;
}

.rzd-runtime-detail:empty {
  display: none;
}

.rzd-runtime-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.rzd-runtime-actions:empty {
  display: none;
}

.rzd-runtime-button {
  min-height: 48px;
  padding: 0 20px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.rzd-runtime-button--primary {
  color: #fff;
  border-color: #d9271c;
  background: #d9271c;
  box-shadow: 0 8px 20px rgba(217, 39, 28, .17);
}

.rzd-runtime-button--primary:hover,
.rzd-runtime-button--primary:focus-visible {
  border-color: #b72017;
  background: #b72017;
}

.rzd-runtime-button:focus-visible {
  outline: 3px solid rgba(217, 39, 28, .22);
  outline-offset: 3px;
}

@keyframes rzd-runtime-pulse {
  0%, 100% { transform: scaleY(.65); opacity: .6; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 520px) {
  .rzd-runtime-blocker {
    align-items: center;
    justify-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .rzd-runtime-dialog {
    width: min(440px, 100%);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto;
    border: 1px solid #e3dfd9;
    border-radius: 20px;
  }

  .rzd-runtime-dialog > header {
    min-height: 66px;
    padding: 15px 20px;
  }

  .rzd-runtime-dialog > header svg {
    width: 30px;
    height: 30px;
  }

  .rzd-runtime-dialog > header span {
    font-size: 20px;
  }

  .rzd-runtime-dialog__body {
    padding: 26px 20px max(26px, env(safe-area-inset-bottom));
  }

  .rzd-runtime-signal {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
  }

  .rzd-runtime-actions {
    display: grid;
  }

  .rzd-runtime-button {
    width: 100%;
    min-height: 52px;
  }
}

/* v39 centered runtime dialog: short phones keep the complete blocking state
   visible without turning the standalone safety message into a bottom sheet. */
@media (max-width: 520px) and (max-height: 680px) {
  .rzd-runtime-dialog > header {
    min-height: 58px;
    padding: 12px 18px;
  }

  .rzd-runtime-dialog > header svg {
    width: 28px;
    height: 28px;
  }

  .rzd-runtime-dialog > header span {
    font-size: 19px;
  }

  .rzd-runtime-dialog__body {
    padding: 18px;
  }

  .rzd-runtime-signal {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 11px;
  }

  .rzd-runtime-signal i {
    width: 4px;
    height: 13px;
  }

  .rzd-runtime-signal i:nth-child(2) {
    height: 20px;
  }

  .rzd-runtime-signal i:nth-child(3) {
    height: 10px;
  }

  .rzd-runtime-eyebrow {
    margin-bottom: 9px !important;
    font-size: 10px !important;
  }

  .rzd-runtime-dialog h2 {
    font-size: 28px;
    line-height: 1;
  }

  .rzd-runtime-dialog h2 + p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.42;
  }

  .rzd-runtime-detail {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.4;
  }

  .rzd-runtime-actions {
    margin-top: 14px;
  }

  .rzd-runtime-button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rzd-runtime-signal i {
    animation: none;
  }
}

/* Approved employee cabinet v20: one focused workspace, no sidebar. */
body[data-rzd-current-url^="/web/client/"] {
  --bs-app-sidebar-width: 0px;
  --bs-app-sidebar-width-actual: 0px;
  --bs-app-sidebar-panel-width: 0px;
  --bs-app-sidebar-panel-width-actual: 0px;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_sidebar,
body[data-rzd-current-url^="/web/client/"] #kt_app_sidebar_mobile_toggle,
body[data-rzd-current-url^="/web/client/"] .rzd-stock-quota-control {
  display: none !important;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_wrapper,
body[data-rzd-current-url^="/web/client/"] #kt_app_header,
body[data-rzd-current-url^="/web/client/"] #kt_app_main {
  margin-left: 0 !important;
  left: 0 !important;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_header_container {
  max-width: 1660px;
  margin-inline: auto;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_header_navbar > .app-navbar-item {
  display: none !important;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_header_navbar > .d-flex:last-child {
  width: 100%;
  flex: 1 1 auto !important;
  justify-content: flex-start;
}

.rzd-client-header-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: 28px;
  padding-right: 28px;
  border-right: 1px solid var(--rzd-line);
}

.rzd-client-header-brand img {
  display: block;
  width: 215px;
  height: auto;
}

.rzd-client-header-context {
  flex: 1 1 auto;
  gap: 18px;
  margin-right: 24px;
}

.rzd-client-header-action {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin-right: 12px;
  padding: 10px 15px;
  color: #4d4d51;
  border: 1px solid #ddd9d3;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.rzd-client-header-action:hover,
.rzd-client-header-action:focus-visible,
.rzd-client-header-action.active {
  color: var(--rzd-red-deep);
  border-color: #efbbb5;
  background: #fff2f0;
}

body[data-rzd-current-url^="/web/client/"] #kt_app_content_container {
  max-width: 1660px;
  padding-inline: clamp(24px, 4vw, 68px) !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 24px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > span,
body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > h1 {
  grid-column: 1;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > p {
  grid-column: 1;
  max-width: 680px;
}

/* Employee cabinet: only the authenticated user's quota and personal usage. */
.rzd-storage-overview {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(0, 2.25fr);
  gap: 0;
  margin-bottom: 22px;
  overflow: hidden;
  color: #27272a;
  border: 1px solid #dfdcd7;
  border-radius: 18px;
  background: #fff;
}

.rzd-storage-heading {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid #ebe8e3;
  background: #faf8f5;
}

.rzd-storage-heading-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: var(--rzd-red);
  border-radius: 13px;
  background: #fff0ed;
}

.rzd-storage-heading-icon i {
  font-size: 24px;
}

.rzd-storage-heading > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.rzd-storage-heading strong {
  font-size: 16px;
  font-weight: 800;
}

.rzd-storage-heading small {
  color: #8a8987;
  font-size: 10px;
  line-height: 1.35;
}

.rzd-storage-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.rzd-storage-metric {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 4px;
  padding: 22px 25px;
}

.rzd-storage-metric + .rzd-storage-metric {
  border-left: 1px solid #ebe8e3;
}

.rzd-storage-metric > span:first-child {
  color: #8a8987;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em !important;
  text-transform: uppercase;
}

.rzd-storage-metric strong {
  overflow: hidden;
  color: #222225;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.15;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-storage-metric small {
  overflow: hidden;
  color: #88898d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-storage-metric--work strong,
.rzd-storage-metric--work small {
  text-overflow: clip;
  white-space: normal;
}

.rzd-storage-progress[hidden] {
  display: none;
}

.rzd-storage-progress {
  position: absolute;
  right: 25px;
  bottom: 18px;
  left: 25px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9e4;
}

.rzd-storage-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rzd-red);
  transition: width .35s ease;
}

.rzd-storage-overview.is-loading strong,
.rzd-storage-overview.is-loading .rzd-storage-metric small {
  color: transparent;
  border-radius: 5px;
  background: linear-gradient(90deg, #f0eeea, #faf9f7, #f0eeea);
  background-size: 200% 100%;
  animation: rzd-storage-loading 1.2s linear infinite;
}

.rzd-storage-overview.has-error .rzd-storage-heading-icon {
  color: #a16b16;
  background: #fff5dd;
}

@keyframes rzd-storage-loading {
  to { background-position: -200% 0; }
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td:last-child {
  width: 1%;
  min-width: 280px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td:last-child > .d-flex {
  align-items: center;
  gap: 8px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 !important;
  padding: 9px 12px;
  color: #36363a;
  border: 1px solid #ddd9d3;
  border-radius: 10px !important;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-row-action:focus-visible {
  color: var(--rzd-red-deep);
  border-color: #edb3ad;
  background: #fff0ed;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action--share {
  color: var(--rzd-red-deep);
  border-color: #efc5c0;
  background: #fff5f3;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > i:first-child {
  display: none;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > i:last-child {
  font-size: 11px !important;
}

.rzd-share-modal .modal-dialog {
  max-width: 620px;
}

.rzd-share-modal .modal-content {
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 22px !important;
}

.rzd-share-modal form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.rzd-share-modal .modal-header {
  align-items: flex-start;
  padding: 25px 28px 18px;
  border-bottom: 0;
}

.rzd-modal-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--rzd-red-deep);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em !important;
  text-transform: uppercase;
}

.rzd-share-modal .modal-title {
  color: #202023;
  font-size: 27px;
  font-weight: 820;
  letter-spacing: -.025em !important;
}

.rzd-share-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 28px 24px;
}

.rzd-share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
  padding: 13px 14px;
  border: 1px solid #e7e3dd;
  border-radius: 13px;
  background: #faf9f7;
}

.rzd-share-item-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  color: var(--rzd-red);
  border: 1px solid #e5dfd8;
  border-radius: 12px;
  background: #fff;
}

body[data-rzd-current-url="/web/client/files"] .rzd-share-item-icon .rzd-file-type-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  margin: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-rzd-current-url="/web/client/files"] .rzd-share-item-icon .rzd-file-type-icon img {
  width: 40px;
  height: 40px;
}

.rzd-share-item > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.rzd-share-item small {
  color: #8a8987;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.rzd-share-item strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-share-choice > p {
  margin: 0 0 12px;
  color: #737479;
  font-size: 12px;
  line-height: 1.45;
}

.rzd-share-choice-card {
  display: grid;
  width: 100%;
  min-height: 96px;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: #26272b;
  border: 1px solid #dedad4;
  border-radius: 15px;
  background: #fff;
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.rzd-share-choice-card + .rzd-share-choice-card {
  margin-top: 10px;
}

.rzd-share-choice-card:hover {
  transform: translateY(-1px);
}

.rzd-share-choice-card:focus-visible {
  outline: 3px solid rgba(211, 45, 31, .16);
  outline-offset: 2px;
}

.rzd-share-choice-card--link {
  border-color: #cbdceb;
  background: #f4f8fc;
}

.rzd-share-choice-card--link:hover,
.rzd-share-choice-card--link:focus-visible {
  border-color: #8cb1d1;
  background: #edf5fb;
}

.rzd-share-choice-card--email {
  border-color: #efc8c2;
  background: #fff6f4;
}

.rzd-share-choice-card--email:hover,
.rzd-share-choice-card--email:focus-visible {
  border-color: #e79b91;
  background: #fff0ed;
}

.rzd-share-choice-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
}

.rzd-share-choice-card--link .rzd-share-choice-icon {
  color: #356b94;
  background: #e2eff9;
}

.rzd-share-choice-card--email .rzd-share-choice-icon {
  color: var(--rzd-red-deep);
  background: #ffe5e0;
}

.rzd-share-choice-icon svg,
.rzd-share-choice-arrow {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rzd-share-choice-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.rzd-share-choice-card strong {
  font-size: 15px;
  font-weight: 800;
}

.rzd-share-choice-card small {
  color: #6d6e73;
  font-size: 11px;
  line-height: 1.45;
}

.rzd-share-choice-arrow {
  width: 19px;
  height: 19px;
  color: #818287;
}

.rzd-share-modal .form-label {
  margin: 0 0 7px;
  color: #39393d;
  font-size: 12px;
  font-weight: 800;
}

.rzd-share-modal .form-label:not(:first-of-type) {
  margin-top: 18px;
}

.rzd-share-modal .form-label span {
  color: #929397;
  font-size: 10px;
  font-weight: 600;
}

.rzd-share-modal .form-control {
  min-height: 48px;
  border-color: #dcd8d2;
  border-radius: 11px;
}

.rzd-share-modal textarea.form-control {
  min-height: 94px;
  resize: vertical;
  line-height: 1.45;
}

.rzd-share-email-fields {
  margin-top: 20px;
  padding-top: 2px;
  border-top: 1px solid #ece8e3;
}

.rzd-share-email-hint {
  margin: 9px 0 0;
  color: #77787c;
  font-size: 10px;
  line-height: 1.45;
}

.rzd-share-duration {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.rzd-share-duration legend {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: #39393d;
  font-size: 12px;
  font-weight: 800;
}

.rzd-share-duration input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rzd-share-duration span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 6px;
  color: #5f6064;
  border: 1px solid #ddd9d3;
  border-radius: 10px;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.rzd-share-duration input:checked + span {
  color: var(--rzd-red-deep);
  border-color: #efaaa3;
  background: #fff0ed;
  box-shadow: inset 0 0 0 1px #efaaa3;
}

.rzd-share-duration input:focus-visible + span {
  outline: 3px solid rgba(211, 45, 31, .16);
  outline-offset: 2px;
}

.rzd-share-warning {
  margin: 17px 0 0;
  padding: 12px 14px;
  color: #6d5a3a;
  border-left: 3px solid #d5a64a;
  border-radius: 0 9px 9px 0;
  background: #fff8e8;
  font-size: 10px;
  line-height: 1.5;
}

.rzd-share-error {
  margin-bottom: 15px;
  padding: 12px 14px;
  color: #8f231b;
  border: 1px solid #efc2bd;
  border-radius: 10px;
  background: #fff1ef;
  font-size: 11px;
}

.rzd-share-result {
  position: relative;
  padding: 22px;
  border: 1px solid #cde6d6;
  border-radius: 15px;
  background: #f1faf4;
}

.rzd-share-result-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #23945a;
  font-size: 19px;
  font-weight: 900;
}

.rzd-share-result > strong {
  color: #187443;
  font-size: 18px;
}

.rzd-share-result > p {
  margin: 4px 0 14px;
  color: #67736b;
  font-size: 11px;
}

.rzd-share-result > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.rzd-share-modal .modal-footer {
  flex: 0 0 auto;
  gap: 9px;
  padding: 17px 28px 24px;
  border-top: 1px solid #ece9e4;
}

.rzd-share-modal .modal-footer .btn {
  min-height: 46px;
  border-radius: 11px !important;
  font-weight: 750;
}

/* RZD share submit loading clarity v49 */
.rzd-share-modal .rzd-share-submit {
  position: relative;
  display: inline-flex;
  min-width: 254px;
  align-items: center;
  justify-content: center;
  padding-right: 42px;
  padding-left: 42px;
  white-space: nowrap;
}

.rzd-share-submit-spinner {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 24px;
  height: 22px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding-left: 8px;
  transform: translateY(-50%);
  border-left: 1px solid rgba(255, 255, 255, .42);
}

.rzd-share-submit-spinner.d-none {
  display: none !important;
}

.rzd-share-submit-spinner .spinner-border {
  width: 14px;
  height: 14px;
  margin: 0;
  border-width: 2px;
  color: #fff;
}

.rzd-share-submit[aria-busy="true"] {
  cursor: wait;
}

@media (max-width: 991px) {
  .rzd-client-header-brand {
    display: none;
  }

  .rzd-client-header-context {
    margin-left: 14px;
  }

  body[data-rzd-current-url^="/web/client/"] #kt_app_content_container {
    padding-bottom: 42px !important;
  }

  .rzd-storage-overview {
    grid-template-columns: 1fr;
  }

  .rzd-storage-heading {
    min-height: 0;
    padding: 15px 18px;
    border-right: 0;
    border-bottom: 1px solid #ebe8e3;
  }

  .rzd-storage-metric {
    padding: 18px;
  }
}

@media (max-width: 767px) {
  body[data-rzd-current-url^="/web/client/"] #kt_app_header_container > .d-block.d-lg-none {
    display: flex !important;
  }

  .rzd-client-header-context {
    display: none;
  }

  .rzd-client-header-action {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .rzd-client-header-action > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body[data-rzd-current-url^="/web/client/"] #kt_app_content_container {
    padding-bottom: 26px !important;
  }

  .rzd-storage-metrics {
    grid-template-columns: 1fr;
  }

  .rzd-storage-metric {
    min-height: 92px;
    padding: 15px;
  }

  .rzd-storage-metric strong {
    font-size: 17px;
  }

  .rzd-storage-progress {
    right: 15px;
    bottom: 12px;
    left: 15px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td:last-child {
    width: auto;
    min-width: 142px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td:last-child > .d-flex {
    gap: 5px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action > span,
  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > i:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > i:first-child {
    display: inline-block;
  }

  .rzd-share-modal .modal-dialog {
    max-width: none;
    margin: 8px;
  }

  .rzd-share-modal .modal-header {
    padding: 21px 20px 15px;
  }

  .rzd-share-modal .modal-body {
    padding: 0 20px 20px;
  }

  .rzd-share-modal .modal-footer {
    padding: 15px 20px 20px;
  }

  .rzd-share-duration {
    grid-template-columns: 1fr 1fr;
  }

  .rzd-share-result > div {
    grid-template-columns: 1fr;
  }

  .rzd-share-choice-card {
    min-height: 90px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 11px;
    padding: 13px;
  }

  .rzd-share-choice-icon {
    width: 44px;
    height: 44px;
  }

  .rzd-share-choice-card strong {
    font-size: 14px;
  }

  .rzd-share-choice-card small {
    font-size: 10px;
  }

  .rzd-share-modal .modal-footer[data-rzd-share-form-footer] {
    display: grid;
    grid-template-columns: minmax(94px, .7fr) minmax(0, 1.3fr);
  }

  .rzd-share-modal .rzd-share-submit {
    min-width: 0;
    width: 100%;
  }

  .rzd-share-modal .modal-footer[data-rzd-share-form-footer].d-none {
    display: none;
  }
}

@media (max-width: 359px) {
  .rzd-share-modal .modal-header {
    padding: 18px 16px 13px;
  }

  .rzd-share-modal .modal-body {
    padding: 0 16px 17px;
  }

  .rzd-share-modal .modal-footer {
    padding: 13px 16px 17px;
  }

  .rzd-share-modal .modal-footer[data-rzd-share-form-footer] {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .rzd-share-modal .modal-title {
    font-size: 24px;
  }

  .rzd-share-choice-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .rzd-share-choice-icon {
    width: 40px;
    height: 40px;
  }

  .rzd-share-choice-arrow {
    display: none;
  }
}

/* v21 cascade finalizer: these rules intentionally follow the retained stock-v20 layer. */
/* v26 final cascade enforcement. */
body[data-rzd-current-url="/web/client/files"] #file_manager_list thead th {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
  min-width: 288px !important;
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    min-width: 128px !important;
  }
}

body[data-rzd-current-url="/web/client/files"] #kt_app_content_container {
  padding-top: 18px !important;
  padding-bottom: 30px !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro {
  display: block;
  margin-bottom: 12px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > h1 {
  margin: 3px 0 2px;
  font-size: clamp(27px, 2.3vw, 34px);
  line-height: 1.05;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > p {
  max-width: none;
  font-size: 12px;
  line-height: 1.35;
}

body[data-rzd-current-url="/web/client/files"] .rzd-storage-overview {
  margin-bottom: 14px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-storage-heading,
body[data-rzd-current-url="/web/client/files"] .rzd-storage-metric {
  min-height: 86px;
  padding: 15px 20px;
}

body[data-rzd-current-url="/web/client/files"] .card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

body[data-rzd-current-url="/web/client/files"] .card-title {
  min-width: 0;
  margin: 0;
}

body[data-rzd-current-url="/web/client/files"] input[data-kt-filemanager-table-filter="search"],
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-select,
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-control,
body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear {
  min-height: 46px;
  border-radius: 11px !important;
  font-size: 12px;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn {
  min-height: 46px;
  padding-inline: 17px;
  border-radius: 11px !important;
}

body[data-rzd-current-url="/web/client/files"] .card-body {
  padding: 2px 16px 16px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list_container {
  margin-top: 12px;
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
  width: 1%;
  min-width: 268px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
  display: none;
}

@media (max-width: 1240px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-editor-heading,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-editor-cell {
    display: none !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
    display: flex;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-date {
    display: none;
  }
}

@media (max-width: 991px) {
  body[data-rzd-current-url="/web/client/files"] #kt_app_content_container {
    padding: 15px 18px 28px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .card-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #kt_app_content_container {
    padding: 12px 10px 24px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro {
    margin-bottom: 9px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > span {
    display: none;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > h1 {
    margin: 0 0 2px;
    font-size: 25px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > p {
    font-size: 11px;
  }

  body[data-rzd-current-url="/web/client/files"] .card-header {
    gap: 9px;
    padding: 11px;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] > i {
    margin-right: 6px !important;
    font-size: 18px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .card-body {
    padding: 2px 10px 11px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list thead,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-size-cell,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-modified-cell,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-editor-cell {
    display: none !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-name-cell {
    width: auto;
    min-width: 150px;
    padding-left: 10px;
    border-left: 1px solid #e2dfda;
    border-radius: 13px 0 0 13px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    width: 1%;
    min-width: 130px;
    padding-right: 7px;
    border-right: 1px solid #e2dfda;
    border-radius: 0 13px 13px 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta,
  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-date {
    display: flex;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
    flex-direction: column;
    gap: 1px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > i:first-child {
    display: none;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > .rzd-action-icon {
    position: static;
    width: 18px;
    height: 18px;
    overflow: visible;
    clip: auto;
  }
}

/* v26 mobile name-column safeguard: hidden DataTables columns must not make the
   first visible filename cell inherit the retired checkbox-column rule. */
@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list td.rzd-name-cell {
    display: table-cell !important;
  }
}

/* v26 wide desktop workspace: use the screen instead of squeezing five columns
   into the inherited fixed-width application container. */
@media (min-width: 1241px) {
  body[data-rzd-current-url="/web/client/files"] #kt_app_content_container {
    width: 100% !important;
    max-width: none !important;
    padding-right: clamp(22px, 2.2vw, 44px) !important;
    padding-left: clamp(22px, 2.2vw, 44px) !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list thead th,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-name-cell {
    min-width: 340px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    min-width: 320px !important;
  }
}

/* v26 compact actions menu: keep secondary operations readable and inside the
   viewport while the dedicated download and share buttons stay in the row. */
body[data-rzd-current-url="/web/client/files"] .rzd-actions-menu {
  width: 268px !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px) !important;
  padding: 8px !important;
  overflow: hidden;
  border: 1px solid #dedbd6 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(29, 27, 25, .14) !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-actions-menu .menu-item {
  padding: 0 !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-actions-menu-link {
  display: flex !important;
  width: 100%;
  min-height: 42px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px !important;
  color: #343539 !important;
  border-radius: 10px;
  font-size: 13px !important;
  line-height: 1.25;
  font-weight: 700 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

body[data-rzd-current-url="/web/client/files"] .rzd-actions-menu-link .rzd-action-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: -1px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-actions-menu-link:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-actions-menu-link:focus-visible {
  color: #b82017 !important;
  background: #fff1ef !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-actions-menu-link--delete {
  color: #c92318 !important;
}

@media (max-width: 1240px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    width: 1%;
    min-width: 142px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action {
    width: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-action--more > i:first-child {
    display: none;
  }
}

/* v28 mobile file cards: the filename, metadata and actions form one full-width
   vertical card. This final layer intentionally follows the retained stock
   table rules so mobile actions can never overlap the filename cell. */
@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list {
    display: block !important;
    width: 100% !important;
    border-spacing: 0 !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list colgroup {
    display: none;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody {
    display: block;
    width: 100%;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody tr {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 0 12px;
    overflow: visible;
    border: 1px solid #dedbd6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(30, 29, 27, .035);
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td.rzd-name-cell,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td.rzd-actions-cell {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td.rzd-name-cell {
    padding: 14px 14px 11px !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list tbody td.rzd-actions-cell {
    padding: 10px 12px 12px !important;
    border-top: 1px solid #ece9e4 !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-name-cell > .d-flex,
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-file-row-content {
    width: 100%;
    min-width: 0;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_list_body a {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-meta {
    width: 100%;
    margin-top: 6px;
    gap: 2px;
    font-size: 11px;
    line-height: 1.4;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-date,
  body[data-rzd-current-url="/web/client/files"] .rzd-file-row-author {
    display: block;
    width: 100%;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions {
    display: flex !important;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    gap: 6px !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--download,
  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--share {
    width: auto !important;
    min-width: 0;
    min-height: 42px;
    flex: 1 1 0;
    gap: 7px;
    padding: 8px 9px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--download > span,
  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--share > span {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    color: inherit;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--more {
    width: 44px !important;
    min-width: 44px;
    min-height: 42px;
    flex: 0 0 44px;
  }
}

/* v30 mobile share cards: the stock share list remains native SFTPGo, while
   each mobile row becomes a readable full-width card with labelled actions. */
.rzd-share-list-action-label {
  display: none;
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/shares"] #kt_app_content_container {
    padding-inline: 16px !important;
  }

  body[data-rzd-current-url="/web/client/shares"] .card {
    overflow: visible;
    border-radius: 16px;
  }

  body[data-rzd-current-url="/web/client/shares"] .card-header,
  body[data-rzd-current-url="/web/client/shares"] #card_body {
    padding-inline: 14px !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #card_content > .d-flex {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body[data-rzd-current-url="/web/client/shares"] #card_content > .d-flex > div,
  body[data-rzd-current-url="/web/client/shares"] #card_content input[data-table-filter="search"],
  body[data-rzd-current-url="/web/client/shares"] [data-table-toolbar="base"],
  body[data-rzd-current-url="/web/client/shares"] [data-table-toolbar="base"] .btn {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable_wrapper,
  body[data-rzd-current-url="/web/client/shares"] #dataTable_wrapper > .row,
  body[data-rzd-current-url="/web/client/shares"] #dataTable_wrapper > .row > div {
    width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable colgroup,
  body[data-rzd-current-url="/web/client/shares"] #dataTable thead {
    display: none !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody tr {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    border: 1px solid #dedbd6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(30, 29, 27, .035);
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 14px !important;
    border: 0 !important;
    color: #4f5055;
    font-size: 12px;
    line-height: 1.45;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:first-child {
    padding-top: 14px !important;
    color: #292a2f;
    font-size: 15px;
    font-weight: 800;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:nth-child(2)::before,
  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:nth-child(3)::before {
    display: block;
    margin-bottom: 2px;
    color: #8b8c91;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:nth-child(2)::before {
    content: "Доступ";
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:nth-child(3)::before {
    content: "Сведения";
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:last-child {
    padding: 10px 12px 12px !important;
    border-top: 1px solid #ece9e4 !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:last-child > .d-flex {
    display: flex !important;
    width: 100%;
    min-width: 0;
    justify-content: stretch !important;
    gap: 8px;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable tbody td:last-child .ms-2 {
    min-width: 0;
    flex: 1 1 0;
    margin: 0 !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable [data-table-action="show_link"],
  body[data-rzd-current-url="/web/client/shares"] #dataTable button[data-kt-menu-trigger="click"] {
    display: inline-flex;
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px !important;
    border: 1px solid #e2ded8;
    border-radius: 10px;
    background: #faf9f7;
  }

  body[data-rzd-current-url="/web/client/shares"] .rzd-share-list-action-label {
    display: inline;
    color: #343539;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable .menu-sub-dropdown {
    width: 180px !important;
    max-width: calc(100vw - 32px) !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #dataTable_wrapper .dataTables_info,
  body[data-rzd-current-url="/web/client/shares"] #dataTable_wrapper .dataTables_paginate {
    width: 100%;
    margin-top: 12px;
    text-align: left !important;
  }

  body[data-rzd-current-url="/web/client/shares"] #link_modal .modal-body .d-flex {
    flex-wrap: wrap;
    gap: 8px;
  }

  body[data-rzd-current-url="/web/client/shares"] #link_modal .modal-body .btn {
    min-width: 0;
    flex: 1 1 132px;
    margin: 0 !important;
  }
}

/* v33 mobile WebAdmin cards: native SFTPGo tables stay unchanged on tablet
   and desktop, while narrow screens receive readable labelled records. */
@media (max-width: 767px) {
  body[data-rzd-current-url^="/web/admin/"] #dataTable_wrapper {
    overflow: visible;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table {
    display: block;
    width: 100% !important;
    max-width: none;
    table-layout: auto;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table colgroup,
  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table thead {
    display: none;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody {
    display: grid;
    gap: 12px;
    width: 100%;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid #e2dfda;
    border-radius: 14px;
    background: #fff;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td {
    flex: 1 1 calc(50% - 7px);
    width: auto !important;
    min-width: 96px !important;
    max-width: 100%;
    padding: 0;
    border: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td:first-child {
    flex-basis: 100%;
    min-width: 0 !important;
    color: #17213c;
    font-size: 14px;
    font-weight: 700;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td:last-child {
    display: flex;
    flex: 1 1 100%;
    width: 100% !important;
    min-width: 0 !important;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid #efede9;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td[data-rzd-admin-label]::before {
    display: block;
    margin-bottom: 5px;
    color: #8b8b92;
    content: attr(data-rzd-admin-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td:last-child::before {
    display: none;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td:last-child > .d-flex,
  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td:last-child > div {
    width: 100%;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody td:last-child .btn {
    min-height: 42px;
    justify-content: center;
    white-space: normal;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody tr > td:only-child {
    flex-basis: 100%;
    padding: 18px 8px;
    border: 0;
    color: #6f7077;
    font-weight: 500;
    text-align: center;
  }

  body[data-rzd-current-url^="/web/admin/"] #dataTable.rzd-admin-mobile-table tbody tr > td:only-child::before {
    display: none;
  }
}

/* v36 separated file actions: each user action is an independent control with
   its own semantic colour, while the underlying SFTPGo actions stay native. */
body[data-rzd-current-url="/web/client/files"] .rzd-row-actions {
  display: inline-flex !important;
  width: max-content;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px !important;
  margin-left: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action {
  min-height: 40px;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(27, 37, 56, .04);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease,
    box-shadow .15s ease, transform .15s ease;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action:hover {
  transform: translateY(-1px);
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action:focus-visible {
  outline: 3px solid rgba(26, 104, 154, .22);
  outline-offset: 2px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--download {
  color: #155f96 !important;
  border-color: #b8d6e9 !important;
  background: #eef7fc !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--download:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--download:focus-visible {
  color: #104d79 !important;
  border-color: #84b9d9 !important;
  background: #def0fa !important;
  box-shadow: 0 5px 12px rgba(21, 95, 150, .13);
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--share {
  color: #c8261b !important;
  border-color: #efc3bd !important;
  background: #fff0ed !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--share:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--share:focus-visible {
  color: #aa1d15 !important;
  border-color: #e59b92 !important;
  background: #fee3de !important;
  box-shadow: 0 5px 12px rgba(200, 38, 27, .12);
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--more {
  color: #3f4147 !important;
  border-color: #d6d7db !important;
  background: #f4f5f7 !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--more:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--more:focus-visible,
body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--more.show {
  color: #25272c !important;
  border-color: #b9bbc1 !important;
  background: #e9eaed !important;
  box-shadow: 0 5px 12px rgba(63, 65, 71, .11);
}

/* RZD share archive v45: native SFTPGo shares with persistent delivery history. */
body[data-rzd-current-url="/web/client/shares"] .app-content {
  padding-top: 20px !important;
}

.rzd-share-archive {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e4e0da;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(38, 34, 30, 0.06);
}

.rzd-share-archive__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid #e8e4de;
}

.rzd-share-archive__kicker {
  display: block;
  margin-bottom: 7px;
  color: #d9271c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rzd-share-archive__header h1 {
  margin: 0;
  color: #202128;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.rzd-share-archive__header p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #73757b;
  font-size: 15px;
  line-height: 1.5;
}

.rzd-share-archive__back {
  display: inline-flex;
  min-width: 198px;
  min-height: 48px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #25314a;
  border: 1px solid #d3d8e1;
  border-radius: 12px;
  background: #f5f7fa;
  font-weight: 750;
}

.rzd-share-archive__back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.rzd-share-archive__back:hover,
.rzd-share-archive__back:focus-visible {
  color: #b91f18;
  border-color: #f0a9a3;
  background: #fff4f2;
}

.rzd-share-archive__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e8e4de;
  background: #faf9f7;
}

.rzd-share-archive__summary > div {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 28px;
  border-right: 1px solid #e8e4de;
}

.rzd-share-archive__summary > div:last-child {
  border-right: 0;
}

.rzd-share-archive__summary span {
  color: #7b7d82;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rzd-share-archive__summary strong {
  margin-top: 4px;
  color: #202128;
  font-size: 27px;
  line-height: 1;
}

.rzd-share-archive__content {
  padding: 24px 30px 30px;
}

.rzd-share-archive__toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 230px) minmax(180px, 230px) auto;
  gap: 10px;
  margin-bottom: 20px;
}

.rzd-share-archive__toolbar .form-control,
.rzd-share-archive__toolbar .form-select,
.rzd-share-archive__refresh {
  min-height: 46px;
  border: 1px solid #ddd8d1;
  border-radius: 11px;
  background-color: #fff;
}

.rzd-share-archive__refresh {
  padding: 0 18px;
  color: #3f4146;
  font-weight: 700;
}

.rzd-share-archive__refresh:hover,
.rzd-share-archive__refresh:focus-visible {
  color: #b91f18;
  border-color: #f0a9a3;
  background: #fff4f2;
}

.rzd-share-archive__state {
  padding: 46px 20px;
  color: #74767c;
  border: 1px dashed #d9d4cd;
  border-radius: 16px;
  background: #faf9f7;
  text-align: center;
}

.rzd-share-archive__table-wrap {
  overflow: hidden;
  border: 1px solid #e2ded8;
  border-radius: 16px;
}

.rzd-share-archive__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rzd-share-archive__table th,
.rzd-share-archive__table td {
  padding: 16px 14px;
  color: #33353b;
  border-bottom: 1px solid #ebe7e1;
  text-align: left;
  vertical-align: middle;
}

.rzd-share-archive__table th {
  color: #76787d;
  background: #faf9f7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rzd-share-archive__table th:nth-child(1) { width: 26%; }
.rzd-share-archive__table th:nth-child(2) { width: 18%; }
.rzd-share-archive__table th:nth-child(3) { width: 13%; }
.rzd-share-archive__table th:nth-child(4) { width: 13%; }
.rzd-share-archive__table th:nth-child(5) { width: 12%; }
.rzd-share-archive__table th:nth-child(6) { width: 18%; }

.rzd-share-archive__table tbody tr:last-child td {
  border-bottom: 0;
}

.rzd-share-archive__object {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.rzd-share-archive__object > div {
  min-width: 0;
}

.rzd-share-archive__object strong {
  display: block;
  overflow: hidden;
  color: #1e2a46;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rzd-share-archive__object small {
  display: block;
  margin-top: 4px;
  color: #8a8c91;
  font-size: 12px;
}

.rzd-share-archive__icon {
  display: grid;
  width: 46px;
  height: 52px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0dcd6;
  border-radius: 10px;
  background: #f3f1ee;
}

.rzd-share-archive__icon img {
  display: block;
  width: 38px;
  height: 44px;
  object-fit: contain;
}

.rzd-share-archive__icon--application {
  border-color: #bfd3ed;
  background: #eef5ff;
}

.rzd-share-archive__icon--installer {
  border-color: #edc7a7;
  background: #fff3e9;
}

.rzd-share-archive__icon--script {
  border-color: #cbc3e3;
  background: #f2effa;
}

.rzd-share-archive__status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1b6643;
  background: #eaf8f0;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.rzd-share-archive__status--expired {
  color: #696b70;
  background: #efedea;
}

.rzd-share-archive__status--revoked,
.rzd-share-archive__status--failed {
  color: #b6211a;
  background: #fff0ed;
}

/* RZD share archive action clarity v48: distinct, accessible copy and revoke controls. */
.rzd-share-archive__actions {
  display: flex;
  width: 100%;
  max-width: 174px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.rzd-share-archive__actions .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.rzd-share-archive__actions .btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.rzd-share-archive__actions .btn:hover {
  transform: translateY(-1px);
}

.rzd-share-archive__actions .btn:active {
  transform: translateY(0);
}

.rzd-share-archive__actions .btn:focus-visible {
  outline: 3px solid rgba(25, 112, 164, .24);
  outline-offset: 2px;
}

.rzd-share-archive__copy {
  color: #14577f;
  border: 1px solid #8dbfdd;
  background: #e8f5fc;
  box-shadow: 0 3px 10px rgba(23, 94, 135, .09);
}

.rzd-share-archive__copy:hover,
.rzd-share-archive__copy:focus-visible {
  color: #0e4669;
  border-color: #5a9fc8;
  background: #d8edf9;
  box-shadow: 0 7px 16px rgba(23, 94, 135, .15);
}

.rzd-share-archive__copy.is-success {
  color: #17613f;
  border-color: #86c7a5;
  background: #e7f7ef;
}

.rzd-share-archive__revoke {
  color: #b1221a;
  border: 1px solid #e4aaa5;
  background: #fff0ee;
  box-shadow: 0 3px 10px rgba(177, 34, 26, .07);
}

.rzd-share-archive__revoke:hover,
.rzd-share-archive__revoke:focus-visible {
  color: #961b15;
  border-color: #d7736b;
  background: #ffe2df;
  box-shadow: 0 7px 16px rgba(177, 34, 26, .13);
}

.rzd-share-archive__closed {
  color: #8b8d92;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .rzd-share-archive__toolbar {
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(165px, 210px));
  }

  .rzd-share-archive__refresh {
    grid-column: 3;
  }

  .rzd-share-archive__table th:nth-child(3),
  .rzd-share-archive__table td:nth-child(3) {
    display: none;
  }

  .rzd-share-archive__table th:nth-child(1) { width: 29%; }
  .rzd-share-archive__table th:nth-child(2) { width: 20%; }
  .rzd-share-archive__table th:nth-child(4) { width: 16%; }
  .rzd-share-archive__table th:nth-child(5) { width: 14%; }
  .rzd-share-archive__table th:nth-child(6) { width: 21%; }
}

@media (max-width: 820px) {
  body[data-rzd-current-url="/web/client/shares"] .app-content {
    padding: 12px !important;
  }

  .rzd-share-archive {
    border-radius: 18px;
  }

  .rzd-share-archive__header {
    align-items: stretch;
    padding: 22px;
  }

  .rzd-share-archive__header p {
    max-width: 520px;
  }

  .rzd-share-archive__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rzd-share-archive__summary > div:nth-child(2) {
    border-right: 0;
  }

  .rzd-share-archive__summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e8e4de;
  }

  .rzd-share-archive__content {
    padding: 20px;
  }

  .rzd-share-archive__toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rzd-share-archive__search {
    grid-column: 1 / -1;
  }

  .rzd-share-archive__refresh {
    grid-column: 2;
  }

  .rzd-share-archive__table-wrap {
    overflow: visible;
    border: 0;
  }

  .rzd-share-archive__table,
  .rzd-share-archive__table tbody,
  .rzd-share-archive__table tr,
  .rzd-share-archive__table td {
    display: block;
    width: 100%;
  }

  .rzd-share-archive__table {
    table-layout: auto;
  }

  .rzd-share-archive__table thead {
    display: none;
  }

  .rzd-share-archive__table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #e2ded8;
    border-radius: 16px;
    background: #fff;
  }

  .rzd-share-archive__table td,
  .rzd-share-archive__table td:nth-child(3) {
    display: block;
    padding: 10px 0;
    border: 0;
  }

  .rzd-share-archive__table td::before {
    display: block;
    margin-bottom: 4px;
    color: #8a8c91;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .rzd-share-archive__table td:first-child {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .rzd-share-archive__table td:first-child::before {
    display: none;
  }

  .rzd-share-archive__table td:last-child {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .rzd-share-archive__actions {
    max-width: none;
    flex-direction: row;
    justify-content: stretch;
  }

  .rzd-share-archive__actions .btn {
    min-height: 46px;
    flex: 1 1 140px;
  }
}

@media (max-width: 560px) {
  .rzd-share-archive__header {
    display: grid;
    gap: 18px;
    padding: 20px 18px;
  }

  .rzd-share-archive__back {
    width: 100%;
  }

  .rzd-share-archive__summary > div {
    min-height: 78px;
    padding: 15px 18px;
  }

  .rzd-share-archive__summary strong {
    font-size: 23px;
  }

  .rzd-share-archive__content {
    padding: 16px;
  }

  .rzd-share-archive__toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rzd-share-archive__search,
  .rzd-share-archive__refresh {
    grid-column: 1;
  }

  .rzd-share-archive__table tr {
    display: block;
    padding: 15px;
  }

  .rzd-share-archive__table td,
  .rzd-share-archive__table td:nth-child(3) {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
  }

  .rzd-share-archive__table td::before {
    margin: 0;
  }

  .rzd-share-archive__table td:first-child,
  .rzd-share-archive__table td:last-child {
    display: block;
  }

  .rzd-share-archive__object strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .rzd-share-archive__actions {
    flex-direction: column;
  }

  .rzd-share-archive__actions .btn {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions {
    width: 100%;
    justify-content: stretch;
    gap: 8px !important;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action {
    min-height: 44px;
  }
}

/* v37 compact files heading: title and explanation share one responsive row. */
body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro {
  display: flex !important;
  min-width: 0;
  align-items: baseline;
  gap: clamp(8px, 1.25vw, 18px);
  margin-bottom: 8px;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > span {
  display: none !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > h1 {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(24px, 2.25vw, 32px);
  line-height: 1;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > p {
  min-width: 0;
  flex: 0 1 auto;
  margin: 0;
  font-size: clamp(10px, .85vw, 13px);
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 359px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro {
    gap: 7px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > h1 {
    font-size: 23px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-client-page-intro > p {
    font-size: 9.5px;
  }
}

/* RZD new folder v46: restore the native permission-gated SFTPGo action. */
body[data-rzd-current-url="/web/client/files"] #id_create_dir_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 1240px) {
  body[data-rzd-current-url="/web/client/files"] .card-header {
    grid-template-columns: 1fr;
  }

  body[data-rzd-current-url="/web/client/files"] .card-toolbar,
  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    width: 100%;
  }

  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    flex-wrap: wrap;
    gap: 8px;
  }

  body[data-rzd-current-url="/web/client/files"] #id_create_dir_button {
    margin-right: 0 !important;
  }
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  body[data-rzd-current-url="/web/client/files"] #id_create_dir_button,
  body[data-rzd-current-url="/web/client/files"] button[data-bs-target="#modal_upload"] {
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_new_folder:not(.d-none) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center;
    gap: 8px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_new_folder > span:first-child {
    display: none;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_new_folder_input {
    width: 100%;
    max-width: none !important;
    min-height: 44px;
    margin: 0 !important;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_add_folder,
  body[data-rzd-current-url="/web/client/files"] #file_manager_cancel_folder {
    width: 44px;
    height: 44px;
    margin: 0 !important;
  }
}

/* v54 final cascade: protect the approved move/copy dialog from legacy modal rules. */
body[data-rzd-current-url="/web/client/files"] .rzd-move-copy-modal .modal-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
}

body[data-rzd-current-url="/web/client/files"] .rzd-move-copy-modal .modal-content {
  max-height: min(920px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid var(--rzd-move-copy-line);
  border-radius: 22px;
}

/* v56: factual, responsive loading states for native SFTPGo operations. */
.rzd-app-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: #f8f7f5;
  color: #232323;
}

.rzd-app-loader.d-none {
  display: none !important;
}

.rzd-app-loader__card {
  display: grid;
  justify-items: center;
  width: min(420px, 100%);
  padding: 32px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2dfda;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(35, 35, 35, .08);
}

.rzd-app-loader__card > img {
  width: min(250px, 80%);
  max-height: 58px;
  object-fit: contain;
}

.rzd-app-loader__card > strong {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.25;
}

.rzd-app-loader__card > span:last-child {
  margin-top: 7px;
  color: #7b7976;
  font-size: 14px;
  line-height: 1.5;
}

.rzd-app-loader__activity,
.rzd-file-list-loader__activity {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  background: #f1eeea;
  border-radius: 999px;
}

.rzd-app-loader__activity i,
.rzd-file-list-loader__activity i {
  position: absolute;
  inset-block: 0;
  left: -35%;
  width: 35%;
  background: #e22b22;
  border-radius: inherit;
  animation: rzd-loading-sweep 1.35s ease-in-out infinite;
}

.page-loader.rzd-operation-loader {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  background: rgba(244, 242, 239, .84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-loading .page-loader.rzd-operation-loader {
  display: grid !important;
}

.rzd-operation-loader__card {
  width: min(680px, 100%);
  max-height: min(820px, calc(100dvh - 36px));
  overflow: auto;
  color: #232323;
  background: #fff;
  border: 1px solid #dedad5;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(35, 35, 35, .2);
}

.rzd-operation-loader__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid #e7e3de;
}

.rzd-operation-loader__header img {
  width: min(220px, 54%);
  max-height: 50px;
  object-fit: contain;
}

.rzd-operation-loader__header span {
  color: #7e7b77;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

.rzd-operation-loader__body {
  padding: 28px;
}

.rzd-operation-loader__kicker {
  display: block;
  margin-bottom: 8px;
  color: #d8241c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rzd-operation-loader__body h2 {
  margin: 0;
  color: #1f1f21;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 750;
  line-height: 1.08;
}

.rzd-operation-loader__body > p {
  max-width: 58ch;
  margin: 12px 0 0;
  color: #6f6d6a;
  font-size: 16px;
  line-height: 1.55;
}

.rzd-operation-loader__item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 16px;
  background: #f8f7f5;
  border: 1px solid #e2dfda;
  border-radius: 18px;
}

.rzd-operation-loader__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  background: #fff;
  border: 1px solid #ddd9d4;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(35, 35, 35, .06);
}

.rzd-operation-loader__icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.rzd-operation-loader__item-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.rzd-operation-loader__item-copy small {
  color: #8a8783;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rzd-operation-loader__item-copy strong {
  overflow-wrap: anywhere;
  color: #222631;
  font-size: 17px;
  line-height: 1.3;
}

.rzd-operation-loader__item-copy span {
  overflow-wrap: anywhere;
  color: #77746f;
  font-size: 13px;
}

.rzd-operation-loader__progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  color: #474644;
  font-size: 14px;
  font-weight: 700;
}

.rzd-operation-loader__progress-head strong {
  color: #d8241c;
  font-size: 18px;
}

.rzd-operation-loader__track {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  background: #eeeae6;
  border-radius: 999px;
}

.rzd-operation-loader__track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c91f18, #ef493d);
  border-radius: inherit;
  transition: width .2s ease;
}

.rzd-operation-loader.is-indeterminate .rzd-operation-loader__track i {
  position: relative;
  left: -38%;
  animation: rzd-operation-indeterminate 1.45s ease-in-out infinite;
}

.rzd-operation-loader__progress-detail {
  margin-top: 8px !important;
  color: #77746f !important;
  font-size: 13px !important;
}

.rzd-operation-loader__notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  background: #fff6e4;
  border: 1px solid #f1d9a3;
  border-radius: 14px;
}

.rzd-operation-loader__notice > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #8b5e00;
  font-weight: 800;
  background: #ffe6a7;
  border-radius: 50%;
}

.rzd-operation-loader__notice p {
  margin: 0;
  color: #65522f;
  font-size: 13px;
  line-height: 1.45;
}

.rzd-file-list-loader {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding: 20px;
  background: #fbfaf9;
  border: 1px solid #e5e1dc;
  border-radius: 18px;
}

.rzd-file-list-loader.d-none {
  display: none !important;
}

.rzd-file-list-loader__heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.rzd-file-list-loader__activity {
  width: 46px;
  height: 4px;
  margin: 0;
}

.rzd-file-list-loader__heading > span:last-child {
  display: grid;
  gap: 3px;
}

.rzd-file-list-loader__heading strong {
  color: #292a2d;
  font-size: 15px;
}

.rzd-file-list-loader__heading small {
  color: #85827e;
  font-size: 13px;
}

.rzd-file-list-loader__rows {
  display: grid;
  gap: 9px;
}

.rzd-file-list-loader__rows i,
.rzd-share-archive__loading-rows i {
  display: block;
  height: 42px;
  background: linear-gradient(90deg, #eeeae6 25%, #f8f6f3 42%, #eeeae6 60%);
  background-size: 260% 100%;
  border-radius: 10px;
  animation: rzd-skeleton 1.45s linear infinite;
}

.rzd-share-archive__loading {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 4px 0;
  text-align: left;
}

.rzd-share-archive__loading-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.rzd-share-archive__loading-head > i {
  width: 32px;
  height: 32px;
  border: 3px solid #f4cfcb;
  border-top-color: #d8241c;
  border-radius: 50%;
  animation: rzd-spin .85s linear infinite;
}

.rzd-share-archive__loading-head > span {
  display: grid;
  gap: 2px;
}

.rzd-share-archive__loading-head strong {
  color: #27282b;
  font-size: 15px;
}

.rzd-share-archive__loading-head small {
  color: #807d79;
  font-size: 13px;
}

.rzd-share-archive__loading-rows {
  display: grid;
  gap: 9px;
}

.rzd-share-archive__refresh.is-loading,
.rzd-share-archive tr.is-loading {
  opacity: .72;
}

.rzd-share-archive__refresh.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rzd-share-archive__revoke.is-loading svg {
  animation: rzd-spin .85s linear infinite;
}

.rzd-create-folder-submit {
  min-width: 48px;
  min-height: 44px;
}

.rzd-create-folder-submit[data-kt-indicator="on"] {
  min-width: 122px;
}

.rzd-create-folder-submit .indicator-progress,
.rzd-move-copy__create-confirm .indicator-progress {
  align-items: center;
  gap: 8px;
}

@keyframes rzd-loading-sweep {
  0% { left: -35%; }
  55%, 100% { left: 100%; }
}

@keyframes rzd-operation-indeterminate {
  0% { left: -38%; }
  55%, 100% { left: 100%; }
}

@keyframes rzd-skeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

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

@media (max-width: 575px) {
  .rzd-app-loader__card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .rzd-operation-loader__card {
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    border-radius: 20px;
  }

  .rzd-operation-loader__header {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .rzd-operation-loader__header img {
    width: min(190px, 62%);
  }

  .rzd-operation-loader__header span {
    max-width: 96px;
    font-size: 9px;
  }

  .rzd-operation-loader__body {
    padding: 20px 18px;
  }

  .rzd-operation-loader__body h2 {
    font-size: clamp(26px, 9.2vw, 34px);
  }

  .rzd-operation-loader__body > p {
    font-size: 14px;
  }

  .rzd-operation-loader__item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    margin-top: 18px;
    padding: 12px;
  }

  .rzd-operation-loader__icon {
    width: 58px;
    height: 58px;
    border-radius: 13px;
  }

  .rzd-operation-loader__icon img {
    width: 43px;
    height: 43px;
  }

  .rzd-operation-loader__item-copy strong {
    font-size: 15px;
  }

  .rzd-operation-loader__progress-head {
    margin-top: 18px;
    font-size: 12px;
  }

  .rzd-operation-loader__progress-head strong {
    font-size: 15px;
  }

  .rzd-operation-loader__notice {
    margin-top: 18px;
    padding: 12px;
  }

  .rzd-file-list-loader {
    padding: 16px 14px;
  }

  .rzd-file-list-loader__heading {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .rzd-file-list-loader__activity {
    width: 34px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_new_folder:not(.d-none) {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }

  body[data-rzd-current-url="/web/client/files"] #file_manager_add_folder {
    width: auto;
    min-width: 44px;
  }
}

@media (max-height: 640px) {
  .rzd-operation-loader__header {
    padding-block: 12px;
  }

  .rzd-operation-loader__body {
    padding-block: 16px;
  }

  .rzd-operation-loader__body > p,
  .rzd-operation-loader__notice {
    margin-top: 10px;
  }

  .rzd-operation-loader__item,
  .rzd-operation-loader__progress-head {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rzd-app-loader__activity i,
  .rzd-file-list-loader__activity i,
  .rzd-operation-loader__track i,
  .rzd-file-list-loader__rows i,
  .rzd-share-archive__loading-rows i,
  .rzd-share-archive__loading-head > i,
  .rzd-share-archive__revoke.is-loading svg {
    animation-duration: 2.8s;
  }
}

body[data-rzd-current-url="/web/client/files"] .rzd-move-copy-modal .modal-header,
body[data-rzd-current-url="/web/client/files"] .rzd-move-copy-modal .modal-footer {
  border-color: var(--rzd-move-copy-line);
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-move-copy-modal .modal-dialog,
  body[data-rzd-current-url="/web/client/files"] .rzd-move-copy-modal .modal-content {
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}

/* v64: stable, high-contrast file toolbar */
body[data-rzd-current-url="/web/client/files"] .card-header {
  align-items: end;
}

body[data-rzd-current-url="/web/client/files"] .card-title,
body[data-rzd-current-url="/web/client/files"] .card-toolbar {
  width: 100%;
  min-width: 0;
  align-self: end;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
  align-items: stretch;
  gap: 10px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar input[type="search"],
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-select,
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-control,
body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear,
body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn {
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 11px !important;
  transform: none !important;
  translate: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar input[type="search"],
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-select,
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-control {
  border-color: #bdb8b0 !important;
  background: #ffffff !important;
  color: #292b30 !important;
  box-shadow: 0 1px 2px rgba(20, 27, 45, 0.04) !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar input::placeholder {
  color: #686a70 !important;
  opacity: 1;
}

body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar input:focus,
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-select:focus,
body[data-rzd-current-url="/web/client/files"] .rzd-file-filterbar .form-control:focus {
  border-color: #e42b22 !important;
  box-shadow: 0 0 0 3px rgba(228, 43, 34, 0.13) !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-date-filter > span {
  color: #4d5056;
  font-weight: 750;
}

body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear {
  padding-inline: 16px;
  border-color: #bdb8b0 !important;
  background: #efede9 !important;
  color: #36383d !important;
  box-shadow: 0 1px 2px rgba(20, 27, 45, 0.05) !important;
}

body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear:hover,
body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear:focus-visible {
  border-color: #99938b !important;
  background: #e2ded8 !important;
  color: #25272b !important;
  box-shadow: 0 0 0 3px rgba(77, 80, 86, 0.12) !important;
}

body[data-rzd-current-url="/web/client/files"] #id_create_dir_button {
  margin-right: 0 !important;
  border-color: #8fb8da !important;
  background: #e1effa !important;
  color: #155a87 !important;
  box-shadow: 0 2px 6px rgba(21, 90, 135, 0.12) !important;
}

body[data-rzd-current-url="/web/client/files"] #id_create_dir_button:hover,
body[data-rzd-current-url="/web/client/files"] #id_create_dir_button:focus-visible {
  border-color: #669fca !important;
  background: #cfe5f6 !important;
  color: #0e4c76 !important;
  box-shadow: 0 0 0 3px rgba(21, 90, 135, 0.15) !important;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn-primary {
  border-color: #ad1b14 !important;
  background: #c92319 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 9px rgba(173, 27, 20, 0.22) !important;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn-primary:hover,
body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn-primary:focus-visible {
  border-color: #94150f !important;
  background: #ad1b14 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(201, 35, 25, 0.19), 0 3px 9px rgba(173, 27, 20, 0.2) !important;
}

body[data-rzd-current-url="/web/client/files"] #rzd_filters_clear:active,
body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn:active,
body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn.active {
  top: auto !important;
  transform: none !important;
  translate: none !important;
}

body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn i,
body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn .svg-icon {
  flex: 0 0 auto;
  color: inherit !important;
}

@media (max-width: 1240px) {
  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    width: 100%;
    justify-content: flex-end !important;
  }
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  body[data-rzd-current-url="/web/client/files"] #id_create_dir_button,
  body[data-rzd-current-url="/web/client/files"] [data-kt-filemanager-table-toolbar="base"] .btn-primary {
    width: 100%;
  }
}

/* v65 final cascade: keep modal actions stable after legacy component rules. */
.rzd-create-folder-modal .rzd-create-folder__submit {
  min-width: 168px;
  min-height: 48px;
}

.rzd-create-folder-modal .rzd-create-folder__submit[data-kt-indicator="on"] {
  min-width: 168px;
}

@media (max-width: 575px) {
  .rzd-create-folder-modal .modal-header {
    padding: 18px 16px 15px;
  }

  .rzd-create-folder-modal .modal-body {
    padding: 16px;
  }

  .rzd-create-folder-modal .modal-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 8px;
    padding: 14px 16px 16px;
  }

  .rzd-create-folder-modal .rzd-create-folder__submit,
  .rzd-create-folder-modal .rzd-create-folder__cancel {
    width: 100% !important;
    min-width: 0;
    justify-self: stretch;
  }

  .rzd-create-folder-modal .rzd-create-folder__submit {
    order: 0;
  }
}

/* v68: digit-first calendar dates with clear validation */
.rzd-date-input-host .rzd-date-input-feedback {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 5px;
  color: #b42318;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.rzd-date-input-host.rzd-date-input-host--error {
  flex-wrap: wrap;
}

.rzd-date-input-host.rzd-date-input-host--error .form-control,
.rzd-date-input-host .form-control.is-invalid {
  border-color: #d92d20 !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12) !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-date-input-host .rzd-date-input-feedback {
  margin-top: 1px;
  padding-left: 3px;
}

/* Authorized inline preview v69: stock authenticated preview, visually distinct action. */
body[data-rzd-current-url="/web/client/files"] .rzd-inline-preview {
  display: inline-flex;
  margin: 0 !important;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action--open {
  color: #5a4378;
  border-color: #cdbde0;
  background: #f6f1fb;
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action--open:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-row-action--open:focus-visible {
  color: #42285f;
  border-color: #a88bc6;
  background: #ede3f7;
  box-shadow: 0 0 0 3px rgba(90, 67, 120, 0.14);
}

body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
  min-width: 376px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-media-preview-fallback {
  margin-top: 14px;
  padding: 14px;
  color: #3f4147;
  border: 1px solid #e2ded8;
  border-radius: 12px;
  background: #f8f7f5;
}

body[data-rzd-current-url="/web/client/files"] .rzd-media-preview-fallback p {
  margin: 0 0 10px;
  line-height: 1.45;
}

body[data-rzd-current-url="/web/client/files"] .rzd-media-preview-fallback .rzd-row-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] #file_manager_list .rzd-actions-cell {
    min-width: 184px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-row-actions .rzd-row-action--open {
    width: 44px !important;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }
}

/* Office collaboration presence: human-readable, server-backed working state. */
body[data-rzd-current-url="/web/client/files"] .rzd-office-presence {
  display: inline-flex;
  max-width: 100%;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  color: #725316;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-rzd-current-url="/web/client/files"] .rzd-office-presence::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #d59a25;
  box-shadow: 0 0 0 3px rgba(213, 154, 37, 0.14);
  content: "";
}

body[data-rzd-current-url="/web/client/files"] .rzd-office-presence--self {
  color: #1f6b4f;
}

body[data-rzd-current-url="/web/client/files"] .rzd-office-presence--self::before {
  background: #30946d;
  box-shadow: 0 0 0 3px rgba(48, 148, 109, 0.14);
}

body[data-rzd-current-url="/web/client/files"] .rzd-row-action--already-open,
body[data-rzd-current-url="/web/client/files"] .rzd-row-action--already-open:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-row-action--already-open:focus-visible {
  color: #1f6b4f;
  border-color: #94cdb6;
  background: #eaf7f1;
  box-shadow: 0 0 0 3px rgba(48, 148, 109, 0.12);
}

@media (max-width: 767px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-office-presence {
    margin-top: 8px;
    font-size: 12px;
  }
}

/* v112 preview: calm, review-first upload queue with per-file cancellation. */
body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__content {
  overflow: hidden;
  border: 1px solid #e3e0db;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(29, 32, 38, 0.22);
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 18px;
  border: 0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__heading {
  min-width: 0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--rzd-red-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__header .modal-title {
  margin: 0;
  color: #171a22;
  font-size: 27px;
  font-weight: 820;
  letter-spacing: -.035em;
  line-height: 1.14;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__header p {
  margin: 9px 0 0;
  color: #6c7079;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__close,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #666b75;
  border: 1px solid transparent;
  background: transparent;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__close {
  width: 40px;
  height: 40px;
  margin: -4px -6px 0 0;
  border-radius: 12px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__close svg,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__close:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__close:focus-visible,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove:focus-visible {
  color: #b6251c;
  border-color: #f0c7c2;
  background: #fff3f1;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__close:focus-visible,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove:focus-visible,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__add:focus-visible,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__clear:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(201, 35, 24, .14);
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__body {
  padding: 4px 30px 24px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e5e2dd;
  border-radius: 15px;
  background: #f8f7f5;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #a52219;
  border-radius: 13px;
  background: #ffe8e4;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__icon svg,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__mark svg,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__hint svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__icon svg {
  width: 22px;
  height: 22px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__copy strong {
  color: #262a32;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__copy small {
  color: #737780;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__add,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__clear {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__add svg,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__clear svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__add {
  color: #28577f;
  border-color: #bfd5e8;
  background: #edf5fc;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__clear {
  color: #a7271e;
  border-color: #efc2bd;
  background: #fff0ee;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__add:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__add:focus-visible {
  color: #173f62;
  border-color: #8eb5d6;
  background: #dfeefa;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__clear:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__clear:focus-visible {
  color: #8f1e17;
  border-color: #dfa29c;
  background: #ffe3df;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone.dropzone {
  min-height: 108px;
  max-height: 364px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  border: 1.5px dashed #aeb7c5 !important;
  border-radius: 17px !important;
  background: #fbfcfe !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  scrollbar-color: #c7cbd2 transparent;
  scrollbar-width: thin;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone.dropzone:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone.dropzone:focus-within,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone.dropzone.dz-drag-hover {
  border-color: #d24539 !important;
  background: #fff9f8 !important;
  box-shadow: 0 0 0 4px rgba(201, 35, 24, .07);
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__message {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 !important;
  padding: 12px;
  text-align: left;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  color: #9e2a21;
  border: 1px solid #f1d2ce;
  border-radius: 14px;
  background: #fff;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__mark svg {
  width: 24px;
  height: 24px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__message strong,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__message > div > span {
  display: block;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__message strong {
  margin-bottom: 4px;
  color: #292d35;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone__message > div > span {
  color: #727782;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone.dz-started .rzd-upload-dropzone__message {
  display: none;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  margin: 0 0 8px;
  padding: 9px 10px;
  border: 1px solid #e5e2dd;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(25, 29, 36, .035);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file:last-of-type {
  margin-bottom: 0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file:hover {
  border-color: #d6d1ca;
  box-shadow: 0 7px 20px rgba(25, 29, 36, .075);
  transform: translateY(-1px);
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__type {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 4px;
  color: #40546d;
  border: 1px solid #d9e2ed;
  border-radius: 11px;
  background: #edf3f9;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1;
  text-overflow: ellipsis;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__name {
  display: block;
  overflow: hidden;
  color: #292d35;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__size {
  color: #797d85;
  font-size: 10px;
  font-weight: 620;
  line-height: 1.2;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove {
  width: 38px;
  height: 38px;
  color: #a52219;
  border-color: #efc5c0;
  border-radius: 11px;
  background: #fff1ef;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__remove:focus-visible {
  color: #871b14;
  border-color: #dc9c96;
  background: #ffdfdb;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 11px 2px 0;
  color: #767a83;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__hint svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 0;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 30px 24px;
  border-top: 1px solid #ece9e4;
  background: #fbfaf8;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__footer .btn {
  min-height: 48px;
  margin: 0;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 780;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__cancel {
  min-width: 112px;
  color: #3e424a;
  border: 1px solid #dedbd6;
  background: #fff;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__cancel:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__cancel:focus-visible {
  color: #1d2026;
  border-color: #c7c2bb;
  background: #f6f4f1;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__submit {
  min-width: 172px;
  color: #fff;
  border-color: var(--rzd-red-deep);
  background: var(--rzd-red-deep);
  box-shadow: 0 8px 20px rgba(201, 35, 24, .18);
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__submit:hover,
body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__submit:focus-visible {
  color: #fff;
  border-color: #ab1f16;
  background: #ab1f16;
}

body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__submit:disabled {
  color: #8a8d93;
  border-color: #e1ded9;
  background: #e8e6e2;
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 575px) {
  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__dialog {
    width: calc(100vw - 20px);
    margin: 10px auto;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__content {
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__header {
    padding: 22px 20px 15px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__header .modal-title {
    font-size: 23px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__body {
    overflow-y: auto;
    padding: 3px 20px 18px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__icon {
    width: 40px;
    height: 40px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-summary__actions {
    grid-column: 2;
    justify-self: start;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: -2px 0 0 -9px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-dropzone.dropzone {
    max-height: 290px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-file {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 9px;
    padding: 8px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-file__type {
    width: 38px;
    height: 38px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 20px 20px;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__footer .btn {
    width: 100%;
  }

  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal__submit {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal *,
  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal *::before,
  body[data-rzd-current-url="/web/client/files"] .rzd-upload-modal *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
