@font-face {
  font-family: "Vazirmatn";
  src: url("./fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pdms-persian-primary: #0f8a72;
  --pdms-persian-primary-dark: #096653;
  --pdms-persian-primary-soft: #e8f7f2;
  --pdms-persian-accent: #e0a21a;
  --pdms-persian-navy: #102a43;
  --pdms-persian-navy-deep: #071a2d;
  --pdms-persian-text: #213547;
  --pdms-persian-heading: #102a43;
  --pdms-persian-border: #dce7e3;
  --pdms-persian-border-strong: #c7d8d2;
  --pdms-persian-surface: #ffffff;
  --pdms-persian-surface-soft: #f5f9f8;
  --pdms-persian-muted: #667b75;
  --pdms-persian-danger: #b42318;
  --pdms-persian-warning: #b7791f;
  --pdms-persian-success: #087a61;
  --pdms-persian-radius-sm: 8px;
  --pdms-persian-radius: 14px;
  --pdms-persian-radius-lg: 20px;
  --pdms-persian-shadow-sm: 0 4px 16px rgb(16 42 67 / 7%);
  --pdms-persian-shadow: 0 14px 38px rgb(16 42 67 / 10%);
  --pdms-persian-focus: 0 0 0 3px rgb(15 138 114 / 16%);
}

html[dir="rtl"] body.pdms-persian {
  direction: rtl;
  min-height: 100vh;
  color: var(--pdms-persian-text);
  font-family: Vazirmatn, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  background:
    radial-gradient(circle at 8% 12%, rgb(15 138 114 / 7%), transparent 28rem),
    linear-gradient(180deg, #f6faf9 0, #f9fbfc 16rem, #f5f8fa 100%);
  text-align: right;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body.pdms-persian *,
html[dir="rtl"] body.pdms-persian *::before,
html[dir="rtl"] body.pdms-persian *::after {
  box-sizing: border-box;
}

html[dir="rtl"] body.pdms-persian a {
  color: var(--pdms-persian-primary-dark);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

html[dir="rtl"] body.pdms-persian a:hover {
  color: var(--pdms-persian-primary);
  text-decoration: none;
}

html[dir="rtl"] body.pdms-persian h1,
html[dir="rtl"] body.pdms-persian h2,
html[dir="rtl"] body.pdms-persian h3,
html[dir="rtl"] body.pdms-persian h4,
html[dir="rtl"] body.pdms-persian h5,
html[dir="rtl"] body.pdms-persian h6 {
  color: var(--pdms-persian-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

html[dir="rtl"] .pdms-ltr,
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[name*="login"],
html[dir="rtl"] input[name*="username"],
html[dir="rtl"] input[name*="filename"],
html[dir="rtl"] code,
html[dir="rtl"] pre {
  direction: ltr;
  text-align: left;
  unicode-bidi: embed;
}

html[dir="rtl"] .navbar .brand,
html[dir="rtl"] .navbar .nav,
html[dir="rtl"] .navbar .nav > li,
html[dir="rtl"] .pull-left {
  float: right;
}

html[dir="rtl"] .pull-right,
html[dir="rtl"] .navbar .btn-navbar {
  float: left;
}

html[dir="rtl"] .navbar .nav {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .navbar .brand {
  margin-right: 0;
  margin-left: 20px;
}

html[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

html[dir="rtl"] .dropdown-submenu > .dropdown-menu {
  right: 100%;
  left: auto;
  margin-right: -1px;
  margin-left: 0;
}

html[dir="rtl"] .dropdown-submenu > a::after {
  float: left;
  border-right-color: #ccc;
  border-left-color: transparent;
  transform: rotate(180deg);
}

html[dir="rtl"] .form-horizontal .control-label {
  float: right;
  text-align: left;
}

html[dir="rtl"] .form-horizontal .controls {
  margin-right: 180px;
  margin-left: 0;
}

html[dir="rtl"] .form-horizontal .form-actions {
  padding-right: 180px;
  padding-left: 20px;
}

html[dir="rtl"] .input-prepend .add-on,
html[dir="rtl"] .input-prepend .btn {
  margin-right: 0;
  margin-left: -1px;
}

html[dir="rtl"] .input-append input,
html[dir="rtl"] .input-append select,
html[dir="rtl"] .input-append .uneditable-input {
  border-radius: 0 4px 4px 0;
}

html[dir="rtl"] .input-append .add-on,
html[dir="rtl"] .input-append .btn {
  margin-right: -1px;
  margin-left: 0;
  border-radius: 4px 0 0 4px;
}

html[dir="rtl"] .breadcrumb > li > .divider {
  padding-right: 5px;
  padding-left: 5px;
}

html[dir="rtl"] .pagination ul > li > a,
html[dir="rtl"] .pagination ul > li > span {
  float: right;
}

html[dir="rtl"] .table th,
html[dir="rtl"] .table td {
  text-align: right;
}

html[dir="rtl"] .alert,
html[dir="rtl"] .well,
html[dir="rtl"] .modal,
html[dir="rtl"] .select2-results,
html[dir="rtl"] .select2-selection {
  text-align: right;
}

/* Modern Bootstrap 4 skin -------------------------------------------------- */

html[dir="rtl"] body.pdms-persian {
  padding-top: 76px;
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top {
  min-height: 64px;
  padding: 8px clamp(16px, 3vw, 42px);
  background:
    radial-gradient(circle at 15% -80%, rgb(15 138 114 / 62%), transparent 19rem),
    linear-gradient(115deg, var(--pdms-persian-navy-deep), var(--pdms-persian-navy)) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgb(7 26 45 / 22%);
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    var(--pdms-persian-primary),
    var(--pdms-persian-accent),
    transparent
  );
  opacity: 0.9;
}

html[dir="rtl"] body.pdms-persian .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  margin-right: 0;
  margin-left: clamp(18px, 3vw, 38px);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

html[dir="rtl"] body.pdms-persian .navbar-brand img,
html[dir="rtl"] body.pdms-persian #navbar-logo {
  width: auto;
  max-width: 42px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgb(0 0 0 / 18%));
}

html[dir="rtl"] body.pdms-persian img[src$="/seeddms-logo.svg"] {
  content: url("images/seeddms-logo.svg");
}

html[dir="rtl"] body.pdms-persian img[src$="/folder.svg"] {
  content: url("images/folder.svg");
}

/* Distinct, local file-type marks for the Bootstrap 4 folder list. */
html[dir="rtl"] body.pdms-persian #viewfolder-table > thead > tr > th:first-child,
html[dir="rtl"] body.pdms-persian #viewfolder-table > tbody > tr > td:first-child {
  width: 82px;
  min-width: 82px;
  text-align: center;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon-link {
  display: inline-flex;
  border-radius: 13px;
  vertical-align: middle;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon-link:hover,
html[dir="rtl"] body.pdms-persian .pdms-file-icon-link:focus {
  outline: 0;
  box-shadow: var(--pdms-persian-focus);
  transform: translateY(-2px);
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon {
  --pdms-file-color: #64748b;
  --pdms-file-color-dark: #475569;
  --pdms-file-soft: #f8fafc;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  width: 58px;
  height: 66px;
  overflow: hidden;
  color: var(--pdms-file-color-dark);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 98%), var(--pdms-file-soft));
  border: 1px solid rgb(16 42 67 / 13%);
  border-radius: 12px;
  box-shadow:
    0 7px 16px rgb(16 42 67 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 88%);
  font-family: Vazirmatn, "Segoe UI", sans-serif;
  isolation: isolate;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon::before {
  position: absolute;
  z-index: -1;
  top: -19px;
  left: -19px;
  width: 38px;
  height: 38px;
  content: "";
  background: var(--pdms-file-color);
  border-radius: 50%;
  opacity: 0.18;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  content: "";
  background: linear-gradient(
    180deg,
    var(--pdms-file-color),
    var(--pdms-file-color-dark)
  );
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon__glyph {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 8px;
  place-items: center;
  font-size: 27px;
  line-height: 1;
  text-shadow: 0 2px 0 rgb(255 255 255 / 80%);
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon__label {
  display: block;
  min-height: 18px;
  padding: 2px 4px;
  overflow: hidden;
  direction: ltr;
  color: #fff;
  background: linear-gradient(
    110deg,
    var(--pdms-file-color-dark),
    var(--pdms-file-color)
  );
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--pdf {
  --pdms-file-color: #dc2626;
  --pdms-file-color-dark: #991b1b;
  --pdms-file-soft: #fff1f2;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--word {
  --pdms-file-color: #2563eb;
  --pdms-file-color-dark: #1d4ed8;
  --pdms-file-soft: #eff6ff;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--spreadsheet {
  --pdms-file-color: #16a34a;
  --pdms-file-color-dark: #15803d;
  --pdms-file-soft: #f0fdf4;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--presentation {
  --pdms-file-color: #ea580c;
  --pdms-file-color-dark: #c2410c;
  --pdms-file-soft: #fff7ed;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--image {
  --pdms-file-color: #7c3aed;
  --pdms-file-color-dark: #6d28d9;
  --pdms-file-soft: #f5f3ff;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--audio {
  --pdms-file-color: #db2777;
  --pdms-file-color-dark: #be185d;
  --pdms-file-soft: #fdf2f8;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--video {
  --pdms-file-color: #9333ea;
  --pdms-file-color-dark: #7e22ce;
  --pdms-file-soft: #faf5ff;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--archive {
  --pdms-file-color: #d97706;
  --pdms-file-color-dark: #b45309;
  --pdms-file-soft: #fffbeb;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--text {
  --pdms-file-color: #64748b;
  --pdms-file-color-dark: #475569;
  --pdms-file-soft: #f8fafc;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--web {
  --pdms-file-color: #0d9488;
  --pdms-file-color-dark: #0f766e;
  --pdms-file-soft: #f0fdfa;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--code {
  --pdms-file-color: #0891b2;
  --pdms-file-color-dark: #0e7490;
  --pdms-file-soft: #ecfeff;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--email {
  --pdms-file-color: #6366f1;
  --pdms-file-color-dark: #4f46e5;
  --pdms-file-soft: #eef2ff;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--database {
  --pdms-file-color: #0284c7;
  --pdms-file-color-dark: #0369a1;
  --pdms-file-soft: #f0f9ff;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--drawing {
  --pdms-file-color: #06b6d4;
  --pdms-file-color-dark: #0e7490;
  --pdms-file-soft: #ecfeff;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--executable {
  --pdms-file-color: #4b5563;
  --pdms-file-color-dark: #1f2937;
  --pdms-file-soft: #f3f4f6;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon-link--detail {
  margin: 4px auto 12px;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--detail {
  width: 96px;
  height: 108px;
  border-radius: 17px;
  box-shadow:
    0 12px 28px rgb(16 42 67 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 90%);
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--detail::after {
  width: 6px;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--detail
  .pdms-file-icon__glyph {
  padding-top: 13px;
  font-size: 46px;
}

html[dir="rtl"] body.pdms-persian .pdms-file-icon--detail
  .pdms-file-icon__label {
  min-height: 27px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 19px;
}

html[dir="rtl"] body.pdms-persian .navbar-dark .navbar-nav .nav-link,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top a {
  color: rgb(255 255 255 / 78%);
  font-weight: 500;
}

html[dir="rtl"] body.pdms-persian .navbar-dark .navbar-nav .nav-link:hover,
html[dir="rtl"] body.pdms-persian .navbar-dark .navbar-nav .nav-link:focus,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top a:hover {
  color: #fff;
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .form-control,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top input[type="search"] {
  height: 40px;
  padding-inline: 16px;
  color: #fff;
  background: rgb(255 255 255 / 11%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .form-control::placeholder,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top input[type="search"]::placeholder {
  color: rgb(255 255 255 / 62%);
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .form-control:focus,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top input[type="search"]:focus {
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 42%);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 10%);
}

html[dir="rtl"] body.pdms-persian main.container-fluid {
  width: min(100%, 1680px);
  min-height: calc(100vh - 144px);
  margin: 0 auto;
  padding-right: clamp(14px, 2.5vw, 38px);
  padding-bottom: 36px !important;
  padding-left: clamp(14px, 2.5vw, 38px);
}

html[dir="rtl"] body.pdms-persian main .row {
  margin-right: -10px;
  margin-left: -10px;
}

html[dir="rtl"] body.pdms-persian main .row > [class*="col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light {
  position: relative;
  z-index: 1020;
  min-height: 54px;
  margin-bottom: 18px !important;
  padding: 7px 14px;
  overflow: visible;
  background: rgb(255 255 255 / 92%) !important;
  border: 1px solid var(--pdms-persian-border);
  border-radius: var(--pdms-persian-radius);
  box-shadow: var(--pdms-persian-shadow-sm);
  backdrop-filter: blur(14px);
}

html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light .nav-link,
html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light a {
  padding: 8px 12px;
  color: #536962;
  border-radius: var(--pdms-persian-radius-sm);
  font-size: 13px;
  font-weight: 600;
}

html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light .nav-link:hover,
html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light a:hover {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
}

html[dir="rtl"] body.pdms-persian .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 0;
  direction: rtl;
  min-height: 46px;
  margin-bottom: 18px;
  padding: 11px 16px;
  color: var(--pdms-persian-muted);
  background:
    linear-gradient(100deg, rgb(15 138 114 / 10%), rgb(16 42 67 / 4%));
  border: 1px solid rgb(15 138 114 / 11%);
  border-radius: var(--pdms-persian-radius);
}

html[dir="rtl"] body.pdms-persian .breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  float: none;
}

html[dir="rtl"] body.pdms-persian
  .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 7px;
  padding: 0;
  float: none;
  color: var(--pdms-persian-primary);
  content: "\2039";
  background: rgb(15 138 114 / 9%);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

html[dir="rtl"] body.pdms-persian .breadcrumb .breadcrumb-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 3px 7px;
  color: var(--pdms-persian-navy);
  border-radius: 8px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

html[dir="rtl"] body.pdms-persian
  .breadcrumb .breadcrumb-item > a:hover {
  color: var(--pdms-persian-primary-dark);
  background: rgb(255 255 255 / 72%);
}

html[dir="rtl"] body.pdms-persian
  .breadcrumb .breadcrumb-item.active > a {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
  font-weight: 750;
}

html[dir="rtl"] body.pdms-persian .well,
html[dir="rtl"] body.pdms-persian .card,
html[dir="rtl"] body.pdms-persian .panel,
html[dir="rtl"] body.pdms-persian .jumbotron {
  padding: clamp(16px, 2vw, 24px);
  background: rgb(255 255 255 / 94%);
  border: 1px solid var(--pdms-persian-border);
  border-radius: var(--pdms-persian-radius-lg);
  box-shadow: var(--pdms-persian-shadow-sm);
}

html[dir="rtl"] body.pdms-persian .well > :first-child,
html[dir="rtl"] body.pdms-persian .card > :first-child {
  margin-top: 0;
}

html[dir="rtl"] body.pdms-persian .well > :last-child,
html[dir="rtl"] body.pdms-persian .card > :last-child {
  margin-bottom: 0;
}

html[dir="rtl"] body.pdms-persian .nav-tabs {
  gap: 6px;
  padding-right: 0;
  border-bottom: 1px solid var(--pdms-persian-border);
}

html[dir="rtl"] body.pdms-persian .nav-tabs .nav-link {
  margin-bottom: -1px;
  padding: 10px 16px;
  color: var(--pdms-persian-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: var(--pdms-persian-radius-sm) var(--pdms-persian-radius-sm) 0 0;
  font-weight: 650;
}

html[dir="rtl"] body.pdms-persian .nav-tabs .nav-link:hover {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
}

html[dir="rtl"] body.pdms-persian .nav-tabs .nav-link.active {
  color: var(--pdms-persian-primary-dark);
  background: #fff;
  border-bottom-color: var(--pdms-persian-primary);
}

html[dir="rtl"] body.pdms-persian .table-responsive {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pdms-persian-border);
  border-radius: var(--pdms-persian-radius);
  box-shadow: var(--pdms-persian-shadow-sm);
}

html[dir="rtl"] body.pdms-persian table.table {
  margin-bottom: 0;
  color: var(--pdms-persian-text);
  background: rgb(255 255 255 / 92%);
  border-collapse: separate;
  border-spacing: 0;
}

html[dir="rtl"] body.pdms-persian table.table thead th,
html[dir="rtl"] body.pdms-persian table.table > tbody > tr:first-child > th {
  padding: 12px 14px;
  color: #526861;
  background: var(--pdms-persian-surface-soft);
  border-top: 0;
  border-bottom: 1px solid var(--pdms-persian-border-strong);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  vertical-align: middle;
}

html[dir="rtl"] body.pdms-persian table.table td {
  padding: 13px 14px;
  border-top: 1px solid #edf2f0;
  vertical-align: middle;
}

html[dir="rtl"] body.pdms-persian table.table tbody tr {
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

html[dir="rtl"] body.pdms-persian table.table tbody tr:hover {
  background: #f3faf7;
}

html[dir="rtl"] body.pdms-persian table.table tbody tr:last-child td {
  border-bottom: 0;
}

html[dir="rtl"] body.pdms-persian #folderinfotab {
  margin-bottom: 6px;
  padding-right: 16px;
}

html[dir="rtl"] body.pdms-persian #folderinfotab .nav-link {
  padding: 6px 13px;
  font-size: 13px;
  line-height: 1.45;
}

html[dir="rtl"] body.pdms-persian #folderinfo table.table td {
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.45;
}

html[dir="rtl"] body.pdms-persian #folderinfo table.table td:first-child {
  width: 38%;
  color: #526861;
  font-weight: 650;
}

html[dir="rtl"] body.pdms-persian .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgb(245 249 248 / 64%);
}

html[dir="rtl"] body.pdms-persian .form-control,
html[dir="rtl"] body.pdms-persian .custom-select,
html[dir="rtl"] body.pdms-persian select,
html[dir="rtl"] body.pdms-persian textarea,
html[dir="rtl"] body.pdms-persian .select2-selection {
  min-height: 42px;
  color: var(--pdms-persian-text);
  background-color: #fff;
  border: 1px solid var(--pdms-persian-border-strong);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgb(16 42 67 / 3%);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

html[dir="rtl"] body.pdms-persian textarea.form-control {
  min-height: 110px;
}

html[dir="rtl"] body.pdms-persian .form-control:focus,
html[dir="rtl"] body.pdms-persian .custom-select:focus,
html[dir="rtl"] body.pdms-persian select:focus,
html[dir="rtl"] body.pdms-persian textarea:focus,
html[dir="rtl"] body.pdms-persian .select2-container--focus .select2-selection {
  background-color: #fff;
  border-color: var(--pdms-persian-primary);
  outline: 0;
  box-shadow: var(--pdms-persian-focus);
}

/* RTL Select2 controls used by document create/edit forms. */
html[dir="rtl"] body.pdms-persian .select2-container {
  max-width: 100%;
  direction: rtl;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4 .select2-selection--single {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0;
  overflow: hidden;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--single .select2-selection__rendered {
  position: relative;
  width: 100%;
  height: 40px;
  padding: 0 14px 0 82px;
  overflow: hidden;
  color: #40564f;
  line-height: 40px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--single .select2-selection__arrow {
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  background: var(--pdms-persian-surface-soft);
  border-right: 1px solid var(--pdms-persian-border);
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--single .select2-selection__arrow b {
  position: static;
  width: 8px;
  height: 8px;
  margin: -4px 0 0;
  border: solid #59706a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4.select2-container--open
  .select2-selection--single .select2-selection__arrow b {
  margin-top: 4px;
  transform: rotate(-135deg);
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--single .select2-selection__clear {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: auto;
  left: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  float: none;
  color: #667b75;
  background: #eef4f2;
  border: 1px solid #d4e1dd;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--single .select2-selection__clear:hover {
  color: #fff;
  background: var(--pdms-persian-danger);
  border-color: var(--pdms-persian-danger);
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4 .select2-selection--multiple {
  height: auto;
  min-height: 42px;
  padding: 4px 8px;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--multiple .select2-selection__choice {
  margin: 0;
  padding: 4px 9px;
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
  border: 1px solid rgb(15 138 114 / 18%);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 6px;
  margin-left: 0;
  float: left;
  color: var(--pdms-persian-danger);
  font-weight: 700;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--multiple .select2-search--inline {
  flex: 1 1 140px;
  min-width: 0;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--bootstrap4
  .select2-selection--multiple .select2-search__field {
  width: 100% !important;
  min-height: 30px;
  margin: 0;
  padding: 4px 6px;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body.pdms-persian .select2-dropdown {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pdms-persian-border-strong);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgb(16 42 67 / 16%);
}

html[dir="rtl"] body.pdms-persian
  .select2-container--open .select2-dropdown--below {
  margin-top: 5px;
  border-radius: 10px;
}

html[dir="rtl"] body.pdms-persian
  .select2-container--open .select2-dropdown--above {
  margin-top: -5px;
  border-radius: 10px;
}

html[dir="rtl"] body.pdms-persian
  .select2-search--dropdown {
  padding: 8px;
  background: var(--pdms-persian-surface-soft);
  border-bottom: 1px solid var(--pdms-persian-border);
}

html[dir="rtl"] body.pdms-persian
  .select2-search--dropdown .select2-search__field {
  height: 38px;
  padding: 7px 11px;
  direction: rtl;
  color: var(--pdms-persian-text);
  background: #fff;
  border: 1px solid var(--pdms-persian-border-strong);
  border-radius: 8px;
  outline: 0;
  text-align: right;
}

html[dir="rtl"] body.pdms-persian
  .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--pdms-persian-primary);
  box-shadow: var(--pdms-persian-focus);
}

html[dir="rtl"] body.pdms-persian .select2-results__options {
  padding: 5px;
}

html[dir="rtl"] body.pdms-persian .select2-results__option {
  margin: 2px 0;
  padding: 8px 11px;
  color: #40564f;
  border-radius: 7px;
  line-height: 1.65;
}

html[dir="rtl"] body.pdms-persian
  .select2-results__option[aria-selected="true"] {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
  font-weight: 650;
}

html[dir="rtl"] body.pdms-persian
  .select2-results__option--highlighted[aria-selected] {
  color: #fff;
  background: var(--pdms-persian-primary);
}

html[dir="rtl"] body.pdms-persian label,
html[dir="rtl"] body.pdms-persian .control-label {
  color: #40564f;
  font-size: 13px;
  font-weight: 650;
}

html[dir="rtl"] body.pdms-persian .input-group-text,
html[dir="rtl"] body.pdms-persian .add-on {
  min-width: 42px;
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
  border-color: var(--pdms-persian-border-strong);
}

html[dir="rtl"] body.pdms-persian .btn {
  min-height: 39px;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 3px 10px rgb(16 42 67 / 8%);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

html[dir="rtl"] body.pdms-persian .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgb(16 42 67 / 13%);
}

html[dir="rtl"] body.pdms-persian .btn:focus {
  box-shadow: var(--pdms-persian-focus);
}

html[dir="rtl"] body.pdms-persian .btn-primary,
html[dir="rtl"] body.pdms-persian .btn-info {
  color: #fff;
  background: linear-gradient(135deg, var(--pdms-persian-primary), #0b7560);
  border-color: var(--pdms-persian-primary);
}

html[dir="rtl"] body.pdms-persian .btn-primary:hover,
html[dir="rtl"] body.pdms-persian .btn-info:hover {
  color: #fff;
  background: linear-gradient(135deg, #0b7964, var(--pdms-persian-primary-dark));
  border-color: var(--pdms-persian-primary-dark);
}

html[dir="rtl"] body.pdms-persian .btn-secondary,
html[dir="rtl"] body.pdms-persian .btn-default {
  color: #40564f;
  background: #fff;
  border-color: var(--pdms-persian-border-strong);
}

html[dir="rtl"] body.pdms-persian main .btn-light.btn-block {
  min-height: 88px;
  padding: 14px 10px;
  color: var(--pdms-persian-primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(213, 228, 223, 0.72);
  border-radius: var(--pdms-persian-radius);
  box-shadow: var(--pdms-persian-shadow-sm);
}

html[dir="rtl"] body.pdms-persian main .btn-light.btn-block:hover {
  color: var(--pdms-persian-primary-dark);
  background: #fff;
  border-color: rgba(15, 138, 114, 0.34);
  box-shadow: var(--pdms-persian-shadow);
  transform: translateY(-2px);
}

html[dir="rtl"] body.pdms-persian main .btn-light.btn-block .fa {
  color: var(--pdms-persian-primary);
  filter: drop-shadow(0 5px 10px rgba(15, 138, 114, 0.14));
}

html[dir="rtl"] body.pdms-persian .btn-danger {
  background: #c0392b;
  border-color: #ad3125;
}

html[dir="rtl"] body.pdms-persian .alert {
  padding: 13px 16px;
  border-width: 0 4px 0 0;
  border-radius: var(--pdms-persian-radius);
  box-shadow: var(--pdms-persian-shadow-sm);
}

html[dir="rtl"] body.pdms-persian .alert-info {
  color: #19556b;
  background: #ebf7fb;
  border-color: #3094b7;
}

html[dir="rtl"] body.pdms-persian .alert-success {
  color: #075d4b;
  background: #e7f8f2;
  border-color: var(--pdms-persian-success);
}

html[dir="rtl"] body.pdms-persian .alert-warning {
  color: #755013;
  background: #fff8df;
  border-color: var(--pdms-persian-accent);
}

html[dir="rtl"] body.pdms-persian .alert-danger {
  color: #8f2d24;
  background: #fff0ee;
  border-color: var(--pdms-persian-danger);
}

html[dir="rtl"] body.pdms-persian .dropdown-menu {
  min-width: 210px;
  padding: 7px;
  background: rgb(255 255 255 / 98%);
  border: 1px solid var(--pdms-persian-border);
  border-radius: 12px;
  box-shadow: var(--pdms-persian-shadow);
}

html[dir="rtl"] body.pdms-persian .dropdown-item,
html[dir="rtl"] body.pdms-persian .dropdown-menu > li > a {
  padding: 8px 11px;
  color: #40564f;
  border-radius: 8px;
}

html[dir="rtl"] body.pdms-persian .dropdown-item:hover,
html[dir="rtl"] body.pdms-persian .dropdown-menu > li > a:hover {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .dropdown-menu .dropdown-item,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .dropdown-menu > li > a {
  color: #40564f;
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .dropdown-menu .dropdown-item:hover,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .dropdown-menu .dropdown-item:focus,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .dropdown-menu > li > a:hover,
html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .dropdown-menu > li > a:focus {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
}

html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top .dropdown-menu-right {
  position: fixed;
  top: 62px;
  right: auto;
  left: 12px;
  max-width: calc(100vw - 24px);
}

html[dir="rtl"] body.pdms-persian
  #viewfolder-table .list-action .dropdown-menu-right {
  z-index: 1050;
  top: calc(100% + 4px) !important;
  right: auto !important;
  left: 0 !important;
  margin: 0;
  transform: none !important;
}

html[dir="rtl"] body.pdms-persian .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: var(--pdms-persian-radius-lg);
  box-shadow: 0 28px 80px rgb(7 26 45 / 24%);
}

html[dir="rtl"] body.pdms-persian .modal-header,
html[dir="rtl"] body.pdms-persian .modal-footer {
  background: var(--pdms-persian-surface-soft);
  border-color: var(--pdms-persian-border);
}

html[dir="rtl"] body.pdms-persian .badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 650;
}

html[dir="rtl"] body.pdms-persian #jqtreemaintree {
  margin-left: 0 !important;
  direction: rtl;
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree,
html[dir="rtl"] body.pdms-persian .jqtree-tree {
  overflow: visible;
  margin: 0;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--pdms-persian-border);
  border-radius: var(--pdms-persian-radius);
  box-shadow: var(--pdms-persian-shadow-sm);
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree ul.jqtree_common {
  position: relative;
  margin: 0 22px 0 0 !important;
  padding: 0 16px 0 0 !important;
  border-right: 1px solid #c9dbd5;
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree li.jqtree_common {
  position: relative;
  margin: 2px 0 !important;
  padding: 0;
  list-style: none;
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree ul.jqtree_common > li.jqtree_common::before {
  position: absolute;
  top: 19px;
  right: -16px;
  width: 15px;
  border-top: 1px solid #c9dbd5;
  content: "";
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree ul.jqtree_common > li.jqtree_common:last-child::after {
  position: absolute;
  top: 20px;
  right: -17px;
  bottom: -3px;
  z-index: 1;
  width: 3px;
  background: #fff;
  content: "";
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-element {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-element:hover {
  background: var(--pdms-persian-primary-soft);
  border-color: rgb(9 102 83 / 14%);
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-folder:not(.jqtree-closed) > .jqtree-element {
  color: var(--pdms-persian-primary-dark);
  background: #f7fbfa;
  font-weight: 650;
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-selected > .jqtree-element {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
  border-color: rgb(9 102 83 / 22%);
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-toggler {
  position: static !important;
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 !important;
  color: var(--pdms-persian-primary);
  background: rgb(9 102 83 / 9%);
  border-radius: 50%;
  line-height: 1;
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-toggler:hover {
  color: #fff;
  background: var(--pdms-persian-primary);
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #244b5d;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

html[dir="rtl"] body.pdms-persian ul.jqtree-tree .jqtree-title > .fa {
  margin-left: 5px;
  color: #15779a;
  font-size: 15px;
}

html[dir="rtl"] body.pdms-persian #login_wrapper {
  width: min(100%, 560px);
  margin: clamp(24px, 7vh, 72px) auto 0;
}

html[dir="rtl"] body.pdms-persian #login_wrapper > nav,
html[dir="rtl"] body.pdms-persian #login_wrapper .navbar {
  margin-bottom: 0 !important;
  border-radius: var(--pdms-persian-radius-lg) var(--pdms-persian-radius-lg) 0 0;
}

html[dir="rtl"] body.pdms-persian #login_wrapper form {
  padding: clamp(22px, 4vw, 38px);
  background: rgb(255 255 255 / 96%);
  border: 1px solid var(--pdms-persian-border);
  border-top: 0;
  border-radius: 0 0 var(--pdms-persian-radius-lg) var(--pdms-persian-radius-lg);
  box-shadow: var(--pdms-persian-shadow);
}

html[dir="rtl"] body.pdms-persian #login_wrapper .form-actions {
  padding-bottom: 0;
  background: transparent;
  border: 0;
}

html[dir="rtl"] body.pdms-persian footer.footer {
  min-height: 52px;
  padding: 15px clamp(18px, 3vw, 40px);
  color: #667b75;
  background: rgb(255 255 255 / 76%);
  border-color: var(--pdms-persian-border) !important;
  backdrop-filter: blur(12px);
}

html[dir="rtl"] body.pdms-persian .statusbar-container {
  right: auto;
  left: 20px;
}

html[dir="rtl"] body.pdms-persian ::selection {
  color: #fff;
  background: var(--pdms-persian-primary);
}

.pdms-jalali-field {
  position: relative;
  overflow: visible;
}

.pdms-jalali-input {
  direction: rtl;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pdms-jalali-input.pdms-date-invalid {
  border-color: var(--pdms-persian-danger);
  box-shadow: 0 0 0 2px rgb(180 35 24 / 12%);
}

.pdms-jalali-field > .add-on {
  cursor: pointer;
}

.pdms-jalali-picker {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 6px);
  right: 0;
  width: 286px;
  box-sizing: border-box;
  padding: 10px;
  color: #20302b;
  background: var(--pdms-persian-surface);
  border: 1px solid var(--pdms-persian-border);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgb(20 46 38 / 20%);
}

.pdms-jalali-picker[hidden] {
  display: none !important;
}

.pdms-jalali-picker__header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  text-align: center;
}

.pdms-jalali-picker__header strong {
  font-size: 14px;
}

.pdms-jalali-picker__nav,
.pdms-jalali-picker__day {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
}

.pdms-jalali-picker__nav {
  height: 34px;
  color: var(--pdms-persian-primary);
  font-size: 25px;
  line-height: 30px;
}

.pdms-jalali-picker__nav:hover,
.pdms-jalali-picker__nav:focus,
.pdms-jalali-picker__day:hover,
.pdms-jalali-picker__day:focus {
  color: var(--pdms-persian-primary-dark);
  background: #e8f4f0;
  outline: none;
}

.pdms-jalali-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  direction: rtl;
}

.pdms-jalali-picker__weekday {
  padding: 5px 0;
  color: var(--pdms-persian-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.pdms-jalali-picker__day,
.pdms-jalali-picker__blank {
  aspect-ratio: 1;
}

.pdms-jalali-picker__day {
  font-size: 12px;
  text-align: center;
}

.pdms-jalali-picker__day.is-selected {
  color: #fff;
  background: var(--pdms-persian-primary);
}

.pdms-jalali-calendar {
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--pdms-persian-surface);
  border: 1px solid var(--pdms-persian-border);
  border-radius: var(--pdms-persian-radius);
  box-shadow: var(--pdms-persian-shadow-sm);
}

.pdms-jalali-calendar__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--pdms-persian-surface-soft);
  border-bottom: 1px solid var(--pdms-persian-border);
}

.pdms-jalali-calendar__toolbar-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdms-jalali-calendar__toolbar-group:last-child {
  justify-content: flex-end;
}

.pdms-jalali-calendar__title {
  min-width: 180px;
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.pdms-jalali-calendar__button {
  min-height: 34px;
  margin: 0;
  padding: 5px 11px;
  color: var(--pdms-persian-text);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  background: var(--pdms-persian-surface);
  border: 1px solid var(--pdms-persian-border-strong);
  border-radius: 7px;
  box-shadow: none;
}

.pdms-jalali-calendar__button:hover,
.pdms-jalali-calendar__button:focus,
.pdms-jalali-calendar__button.is-active {
  color: var(--pdms-persian-primary-dark);
  background: var(--pdms-persian-primary-soft);
  border-color: var(--pdms-persian-primary);
  outline: none;
}

.pdms-jalali-calendar__button--primary {
  color: #fff;
  background: var(--pdms-persian-primary);
  border-color: var(--pdms-persian-primary);
}

.pdms-jalali-calendar__button--primary:hover,
.pdms-jalali-calendar__button--primary:focus {
  color: #fff;
  background: var(--pdms-persian-primary-dark);
}

.pdms-jalali-calendar__body {
  min-height: 360px;
}

.pdms-jalali-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  direction: rtl;
}

.pdms-jalali-calendar__weekday {
  padding: 9px 5px;
  color: var(--pdms-persian-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: #fbfdfc;
  border-bottom: 1px solid var(--pdms-persian-border);
  border-left: 1px solid var(--pdms-persian-border);
}

.pdms-jalali-calendar__weekday:nth-child(7) {
  border-left: 0;
}

.pdms-jalali-calendar__day {
  position: relative;
  min-width: 0;
  min-height: 108px;
  padding: 7px;
  background: var(--pdms-persian-surface);
  border-bottom: 1px solid var(--pdms-persian-border);
  border-left: 1px solid var(--pdms-persian-border);
}

.pdms-jalali-calendar__day:nth-child(7n) {
  border-left: 0;
}

.pdms-jalali-calendar__day.is-outside {
  background: #f7faf9;
}

.pdms-jalali-calendar__day.is-outside
  .pdms-jalali-calendar__day-number {
  color: #9aaba5;
}

.pdms-jalali-calendar__day.is-today {
  background: #f0faf7;
  box-shadow: inset 0 0 0 2px rgb(15 138 114 / 18%);
}

.pdms-jalali-calendar__day.is-selected {
  box-shadow: inset 0 0 0 2px var(--pdms-persian-accent);
}

.pdms-jalali-calendar__day-number {
  display: inline-grid;
  width: 29px;
  height: 29px;
  margin: 0 0 5px;
  padding: 0;
  place-items: center;
  color: var(--pdms-persian-heading);
  font: inherit;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.pdms-jalali-calendar__day-number:hover,
.pdms-jalali-calendar__day-number:focus {
  color: #fff;
  background: var(--pdms-persian-primary);
  outline: none;
}

.pdms-jalali-calendar__day.is-today
  .pdms-jalali-calendar__day-number {
  color: #fff;
  background: var(--pdms-persian-primary);
}

.pdms-jalali-calendar__events {
  display: grid;
  gap: 3px;
}

.pdms-jalali-calendar__event {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 8px 4px 5px;
  overflow: hidden;
  color: #fff;
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--pdms-event-color, #3a87ad);
  border: 0;
  border-radius: 5px;
  box-shadow: none;
}

.pdms-jalali-calendar__event:hover,
.pdms-jalali-calendar__event:focus {
  color: #fff;
  filter: brightness(0.92);
  outline: 2px solid rgb(255 255 255 / 75%);
  outline-offset: -3px;
}

.pdms-jalali-calendar__day--single {
  min-height: 360px;
  border: 0;
}

.pdms-jalali-calendar__day--single .pdms-jalali-calendar__event {
  max-width: 520px;
  padding: 8px 10px;
  font-size: 13px;
}

.pdms-jalali-calendar__list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.pdms-jalali-calendar__list-group {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pdms-persian-border);
}

.pdms-jalali-calendar__list-group h3 {
  grid-row: 1 / span 20;
  margin: 2px 0 0;
  font-size: 13px;
}

.pdms-jalali-calendar__list-group .pdms-jalali-calendar__event {
  padding: 7px 9px;
  font-size: 12px;
}

.pdms-jalali-calendar__loading,
.pdms-jalali-calendar__empty {
  margin: 0;
  padding: 80px 20px;
  color: var(--pdms-persian-muted);
  text-align: center;
}

.pdms-jalali-calendar__loading.is-error {
  color: var(--pdms-persian-danger);
}

/*
 * Persian labels need more room than the original English navigation.
 * Extend Bootstrap's collapsed state to the wide-desktop breakpoint.
 */
@media (min-width: 992px) and (max-width: 1399.98px) {
  html[dir="rtl"] body.pdms-persian
    > nav.navbar.fixed-top.navbar-expand-lg {
    flex-flow: row wrap;
  }

  html[dir="rtl"] body.pdms-persian
    > nav.navbar.fixed-top.navbar-expand-lg .navbar-toggler {
    display: block;
    flex: 0 0 auto;
  }

  html[dir="rtl"] body.pdms-persian
    > nav.navbar.fixed-top.navbar-expand-lg .navbar-collapse {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  html[dir="rtl"] body.pdms-persian
    > nav.navbar.fixed-top.navbar-expand-lg .navbar-collapse:not(.show) {
    display: none !important;
  }

  html[dir="rtl"] body.pdms-persian
    > nav.navbar.fixed-top.navbar-expand-lg .navbar-collapse.show {
    display: block !important;
    max-height: calc(100vh - 88px);
    margin-top: 8px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgb(7 26 45 / 98%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 32px rgb(7 26 45 / 24%);
  }

  html[dir="rtl"] body.pdms-persian
    > nav.navbar.fixed-top.navbar-expand-lg
    .navbar-collapse .navbar-nav {
    width: 100%;
    margin: 0 !important;
    flex-direction: column;
    align-items: stretch;
  }

  html[dir="rtl"] body.pdms-persian
    > nav.navbar.fixed-top.navbar-expand-lg
    .navbar-collapse .dropdown-menu {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    transform: none !important;
  }
}

@media (min-width: 992px) {
  html[dir="rtl"] body.pdms-persian
    #docinfo > .p-3 > .row > .col-lg-3 {
    display: flex;
    flex: 0 0 17%;
    align-items: flex-start;
    justify-content: center;
    max-width: 17%;
    padding-right: 6px;
    padding-left: 6px;
  }

  html[dir="rtl"] body.pdms-persian
    #docinfo > .p-3 > .row > .col-lg-5 {
    flex: 0 0 47%;
    max-width: 47%;
    min-width: 0;
  }

  html[dir="rtl"] body.pdms-persian
    #docinfo > .p-3 > .row > .col-lg-4 {
    flex: 0 0 36%;
    max-width: 36%;
    min-width: 0;
  }

  html[dir="rtl"] body.pdms-persian
    #docinfo > .p-3 > .row > .col-lg-5 .actions {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] body.pdms-persian {
    padding-top: 64px;
    font-size: 13px;
  }

  html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top {
    min-height: 56px;
    padding: 7px 12px;
  }

  html[dir="rtl"] body.pdms-persian .navbar-brand {
    max-width: calc(100vw - 76px);
    margin-left: 8px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[dir="rtl"] body.pdms-persian .navbar-brand img,
  html[dir="rtl"] body.pdms-persian #navbar-logo {
    height: 28px;
  }

  html[dir="rtl"] body.pdms-persian main.container-fluid {
    padding-right: 10px;
    padding-left: 10px;
  }

  html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light {
    align-items: stretch;
    padding: 8px;
    border-radius: 11px;
  }

  html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light .navbar-nav {
    width: 100%;
  }

  html[dir="rtl"] body.pdms-persian main nav.navbar.bg-light .nav-link {
    padding: 9px 10px;
  }

  html[dir="rtl"] body.pdms-persian .breadcrumb {
    padding: 9px 12px;
    border-radius: 10px;
  }

  html[dir="rtl"] body.pdms-persian .well,
  html[dir="rtl"] body.pdms-persian .card,
  html[dir="rtl"] body.pdms-persian .panel,
  html[dir="rtl"] body.pdms-persian .jumbotron {
    padding: 14px;
    border-radius: 14px;
  }

  html[dir="rtl"] body.pdms-persian .table-responsive {
    overflow-x: auto;
    border-radius: 11px;
  }

  html[dir="rtl"] body.pdms-persian #viewfolder-table > thead > tr > th:first-child,
  html[dir="rtl"] body.pdms-persian #viewfolder-table > tbody > tr > td:first-child {
    width: 68px;
    min-width: 68px;
    padding-right: 7px;
    padding-left: 7px;
  }

  html[dir="rtl"] body.pdms-persian .pdms-file-icon {
    width: 52px;
    height: 60px;
    border-radius: 10px;
  }

  html[dir="rtl"] body.pdms-persian .pdms-file-icon__glyph {
    padding-top: 7px;
    font-size: 24px;
  }

  html[dir="rtl"] body.pdms-persian table.table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  html[dir="rtl"] body.pdms-persian #login_wrapper {
    margin-top: 18px;
  }

  html[dir="rtl"] body.pdms-persian #login_wrapper form {
    padding: 20px 16px;
  }

  html[dir="rtl"] .form-horizontal .control-label {
    float: none;
    text-align: right;
  }

  html[dir="rtl"] .form-horizontal .controls {
    margin-right: 0;
  }

  html[dir="rtl"] .form-horizontal .form-actions {
    padding-right: 20px;
  }

  .pdms-jalali-picker {
    right: auto;
    left: 0;
    max-width: calc(100vw - 28px);
  }

  .pdms-jalali-calendar {
    overflow-x: auto;
  }

  .pdms-jalali-calendar__toolbar {
    position: sticky;
    right: 0;
    left: 0;
    grid-template-columns: 1fr;
    min-width: 680px;
  }

  .pdms-jalali-calendar__toolbar-group,
  .pdms-jalali-calendar__toolbar-group:last-child {
    justify-content: center;
  }

  .pdms-jalali-calendar__title {
    grid-row: 1;
  }

  .pdms-jalali-calendar__grid {
    min-width: 680px;
  }

  .pdms-jalali-calendar__day {
    min-height: 92px;
  }

  .pdms-jalali-calendar__list {
    min-width: 560px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  html[dir="rtl"] body.pdms-persian > nav.navbar.fixed-top {
    padding-right: 20px;
    padding-left: 20px;
  }

  html[dir="rtl"] body.pdms-persian main.container-fluid {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[dir="rtl"] body.pdms-persian *,
  html[dir="rtl"] body.pdms-persian *::before,
  html[dir="rtl"] body.pdms-persian *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
html[dir="rtl"] body.pdms-persian .pdms-help {
  color: #2f403a;
  line-height: 1.9;
}

html[dir="rtl"] body.pdms-persian .pdms-help__intro {
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid #d9e8e1;
  border-right: 4px solid var(--pdms-persian-primary);
  border-radius: 12px;
  background: linear-gradient(135deg, #f4fbf7 0%, #ffffff 100%);
}

html[dir="rtl"] body.pdms-persian .pdms-help__intro h2,
html[dir="rtl"] body.pdms-persian .pdms-help__section h3 {
  margin-top: 0;
  color: #1f5f4a;
}

html[dir="rtl"] body.pdms-persian .pdms-help__intro p:last-child,
html[dir="rtl"] body.pdms-persian .pdms-help__section > :last-child {
  margin-bottom: 0;
}

html[dir="rtl"] body.pdms-persian .pdms-help__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

html[dir="rtl"] body.pdms-persian .pdms-help__card {
  padding: 18px 20px;
  border: 1px solid #e2ebe7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(32 79 63 / 6%);
}

html[dir="rtl"] body.pdms-persian .pdms-help__card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #295f4d;
}

html[dir="rtl"] body.pdms-persian .pdms-help__card p {
  margin: 0;
}

html[dir="rtl"] body.pdms-persian .pdms-help__steps {
  margin: 0;
  padding-right: 1.5rem;
}

html[dir="rtl"] body.pdms-persian .pdms-help__steps li {
  margin-bottom: 10px;
  padding-right: 5px;
}

html[dir="rtl"] body.pdms-persian .pdms-help__section {
  margin: 0 0 24px;
}

html[dir="rtl"] body.pdms-persian .pdms-help__note {
  padding: 14px 16px;
  border-radius: 9px;
  background: #fff8e5;
  color: #634e12;
}

@media (max-width: 767.98px) {
  html[dir="rtl"] body.pdms-persian .pdms-help__grid {
    grid-template-columns: 1fr;
  }
}
