:root {
  --app-sidebar-width: 14rem;
  --app-mobile-sidebar-width: min(86vw, 18rem);
  --app-page-gutter: clamp(0.65rem, 1.5vw, 1.5rem);
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.table-responsive,
.responsive-table-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.responsive-table-shell:focus {
  outline: 2px solid rgba(78, 115, 223, 0.35);
  outline-offset: 2px;
}

.admin-shell #wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: stretch;
}

.admin-shell #wrapper > .sidebar {
  flex: 0 0 var(--app-sidebar-width);
  width: var(--app-sidebar-width) !important;
  min-width: var(--app-sidebar-width);
  max-width: var(--app-sidebar-width);
}

.admin-shell #content {
  flex: 1 1 auto;
  width: calc(100% - var(--app-sidebar-width));
  max-width: 100%;
  min-width: 0;
  padding: 0 !important;
  overflow-x: clip;
}

.admin-shell #content > .topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100% !important;
  min-height: 60px;
  height: auto !important;
  margin: 0 !important;
  padding: 0.35rem var(--app-page-gutter);
}

.admin-shell #content > .topbar > .container {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.admin-shell #content > .topbar > .container > .row {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.admin-shell #content > .topbar header,
.admin-shell #content > .topbar header[style] {
  min-width: 0;
  margin-left: 0 !important;
}

.admin-shell #content > .topbar .card-header {
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
}

.admin-shell #content > .topbar h6 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.admin-shell [id$="Label244"] {
  max-width: 100%;
  font-size: clamp(1.05rem, 2.1vw, 2rem) !important;
  line-height: 1.15;
  white-space: normal;
}

.admin-shell .active-view-badge {
  max-width: 100%;
  margin-left: 0;
  white-space: normal;
}

.admin-shell #content > .container-fluid {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  margin: 0 !important;
  padding: var(--app-page-gutter) !important;
}

.admin-shell #content .container,
.admin-shell #content .container-fluid,
.admin-shell #content .row,
.admin-shell #content [class^="col-"],
.admin-shell #content [class*=" col-"],
.admin-shell #content .card,
.admin-shell #content .card-body,
.admin-shell #content .list-group-item {
  min-width: 0;
  max-width: 100%;
}

.admin-shell #content .row[style*="width:100%"],
.admin-shell #content .row[style*="width: 100%"] {
  width: auto !important;
}

.admin-shell #content .container-fluid.shadow[style*="margin-left"] {
  width: 100% !important;
  min-height: 40px;
  height: auto !important;
  margin-left: 0 !important;
  padding: 0.35rem 0.75rem;
}

.admin-shell .card,
.admin-shell .list-group,
.admin-shell .table {
  max-width: 100%;
}

.admin-shell .table {
  margin-bottom: 0;
}

.admin-shell table.responsive-data-table {
  width: 100%;
  min-width: 44rem;
}

.admin-shell table.responsive-data-table th,
.admin-shell table.responsive-data-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-shell input[type="text"],
.admin-shell input[type="password"],
.admin-shell input[type="number"],
.admin-shell input[type="email"],
.admin-shell input[type="date"],
.admin-shell input[type="month"],
.admin-shell input[type="time"],
.admin-shell select,
.admin-shell textarea,
.admin-shell [id*="ComboBox"],
.admin-shell [id*="cbSayaclar"] {
  max-width: 100% !important;
  box-sizing: border-box;
}

.admin-shell textarea {
  width: 100% !important;
}

.admin-shell .btn-style,
.admin-shell .btn-style-active,
.admin-shell .btn-style-rectangle {
  max-width: 100%;
  min-height: 30px;
  height: auto !important;
  white-space: normal;
}

.admin-shell iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

.admin-shell .dashboard-pro,
.admin-shell .dashboard-toolbar,
.admin-shell .dashboard-panel,
.admin-shell .dashboard-kpi-grid,
.admin-shell .dashboard-content-grid {
  max-width: 100%;
  min-width: 0;
}

.admin-shell .sidebar .navbar-brand,
.admin-shell .sidebar .sidebar-brand-icon,
.admin-shell .sidebar .sidebar-brand-icon > * {
  max-width: 100%;
}

.admin-shell .sidebar .sidebar-brand-icon img {
  width: min(9.375rem, 88%) !important;
  height: auto !important;
}

.admin-shell .sidebar .dropdown-menu {
  max-width: calc(100vw - 1.5rem);
}

.admin-shell .sidebar .dropdown-item,
.admin-shell .sidebar .dropdown-item input {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.mobile-sidebar-toggle {
  display: none;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #4e73df;
  background: #f3f5fb;
  border: 1px solid #e3e6f0;
  z-index: 2;
}

.mobile-sidebar-backdrop {
  display: none;
}

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

.login-page section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1rem, 4vw, 3rem) 0;
  overflow-x: hidden;
}

.login-page .lgp-hd {
  width: 100%;
  margin-top: 0;
  padding: 0 var(--app-page-gutter);
}

.login-page .lgp-hd h2 {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.25rem, 4.5vw, 2rem);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.login-page .login-cont {
  width: 100%;
  max-width: 72rem;
  margin-top: 0 !important;
  padding: clamp(0.75rem, 3vw, 2rem) !important;
}

.login-page .login-col {
  padding: clamp(0.85rem, 3vw, 1.875rem);
}

.login-page .login-cont > .row {
  justify-content: center;
  margin-right: 0;
  margin-left: 0;
}

.login-page [id$="Image1"] {
  width: min(15.625rem, 100%) !important;
  height: auto !important;
}

.login-page .login-form {
  padding: clamp(0.85rem, 3vw, 1.25rem);
}

.chart-page {
  min-height: 100vh;
  margin: 0;
  padding: var(--app-page-gutter);
  background: #f8f9fc;
}

.chart-page form {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart-page > table,
.chart-page form > table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.document-page {
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  background: #eef1f7;
}

.document-page form {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.document-page form > div {
  margin-right: auto;
  margin-left: auto;
  background: #fff;
  box-shadow: 0 0.35rem 1.25rem rgba(31, 45, 61, 0.14);
}

@media (min-width: 992px) {
  .admin-shell #wrapper > .sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .admin-shell #content > .topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

@media (max-width: 1199.98px) {
  .admin-shell .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .admin-shell #wrapper {
    display: block;
  }

  .admin-shell #wrapper > .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: block;
    width: var(--app-mobile-sidebar-width) !important;
    min-width: var(--app-mobile-sidebar-width);
    max-width: var(--app-mobile-sidebar-width);
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 0.65rem 0 1.5rem rgba(20, 28, 48, 0.22);
  }

  .admin-shell.sidebar-mobile-open #wrapper > .sidebar {
    transform: translateX(0);
  }

  .admin-shell #wrapper > .sidebar .nav-item .nav-link {
    width: 100% !important;
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.9rem;
  }

  .admin-shell #wrapper > .sidebar .nav-item .nav-link span {
    display: inline;
  }

  .admin-shell #wrapper > .sidebar .nav-item .nav-link i {
    width: 1.35rem;
    margin-right: 0.35rem;
    text-align: center;
  }

  .admin-shell #wrapper > .sidebar .dropdown-menu {
    position: static !important;
    width: calc(100% - 1rem);
    max-width: none;
    margin: 0 0.5rem 0.5rem;
    transform: none !important;
  }

  .admin-shell #content {
    width: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .admin-shell #content > .topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: block;
    visibility: hidden;
    background: rgba(19, 27, 45, 0.48);
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .admin-shell.sidebar-mobile-open .mobile-sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .admin-shell.sidebar-mobile-open {
    overflow: hidden;
  }

  .admin-shell .gw_debug_panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: min(65vh, 42rem) !important;
    max-height: 65vh !important;
  }
}

@media (max-width: 767.98px) {
  .admin-shell #content > .topbar {
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
  }

  .admin-shell #content > .topbar .topbar-divider {
    display: none !important;
  }

  .admin-shell #content > .topbar .nav-item .nav-link {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
  }

  .admin-shell #content > .container-fluid {
    padding: 0.6rem !important;
  }

  .admin-shell .row {
    --bs-gutter-x: 0.75rem;
  }

  .admin-shell .card.shadow.mb-4[style*="height:"],
  .admin-shell .card.shadow.mb-4[style*="height: "] {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .admin-shell table.responsive-data-table {
    min-width: 42rem;
  }

  .admin-shell table.responsive-form-table,
  .admin-shell table.responsive-form-table > tbody,
  .admin-shell table.responsive-form-table > tbody > tr,
  .admin-shell table.responsive-form-table > tbody > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  .admin-shell table.responsive-form-table > tbody > tr {
    padding: 0.35rem 0;
    border-bottom: 1px solid #edf0f7;
  }

  .admin-shell table.responsive-form-table > tbody > tr > td {
    padding: 0.3rem 0.4rem !important;
    border: 0;
    text-align: left !important;
  }

  .admin-shell .btn-style,
  .admin-shell .btn-style-active,
  .admin-shell .btn-style-rectangle {
    width: min(100%, 24rem) !important;
  }

  .admin-shell .dashboard-toolbar,
  .admin-shell .dashboard-date-switcher,
  .admin-shell .dashboard-refresh {
    width: 100%;
  }

  .admin-shell .dashboard-date-switcher {
    flex-wrap: wrap;
    justify-content: center;
  }

  .admin-shell .dashboard-kpi-grid,
  .admin-shell .dashboard-content-grid {
    grid-template-columns: 1fr !important;
  }

  .login-page .login-col {
    flex: 0 1 30rem;
    width: 100%;
    max-width: 30rem;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .chart-page {
    padding: 0.5rem;
  }

  .chart-page > table > tbody,
  .chart-page form > table > tbody {
    display: table;
    min-width: 45rem;
  }

  .document-page {
    padding: 0.5rem;
  }

  .document-page form > div {
    margin: 0 !important;
    box-shadow: none;
  }
}

@media (max-width: 399.98px) {
  .admin-shell [id$="Label244"] {
    font-size: 1rem !important;
  }

  .admin-shell .active-view-badge {
    display: none;
  }

  .admin-shell #content > .topbar .img-profile {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media print {
  .mobile-sidebar-toggle,
  .mobile-sidebar-backdrop {
    display: none !important;
  }

  .document-page {
    padding: 0;
    background: #fff;
    overflow: visible;
  }

  .document-page form,
  .document-page form > div {
    overflow: visible;
    box-shadow: none;
  }
}
