:root{
  --app-bg: #f3efff;
  --app-surface: #ffffff;
  --app-border: rgba(88, 28, 135, .16);
  --app-border-strong: rgba(88, 28, 135, .24);
  --app-text: #0f172a;
  --app-text-muted: #5b667a;
  --app-primary: #6d28d9;
  --app-primary-strong: #581c87;
  --app-accent: #8b5cf6;
  --app-shadow-sm: 0 12px 32px rgba(88, 28, 135, .09);
  --app-shadow-md: 0 24px 56px rgba(88, 28, 135, .12);
  --bs-primary: var(--app-primary);
  --bs-primary-rgb: 109, 40, 217;
  --bs-link-color: var(--app-primary-strong);
  --bs-link-hover-color: var(--app-primary);
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--app-text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, .16), transparent 30%),
    radial-gradient(circle at top right, rgba(109, 40, 217, .12), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, var(--app-bg) 100%);
}

a{
  text-decoration: none;
}

.app-shell{
  position: relative;
  z-index: 1;
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas{
  border: 1px solid var(--app-border);
  border-radius: 22px;
  box-shadow: var(--app-shadow-sm);
}

.card-header,
.card-footer{
  background: transparent;
  border-color: var(--app-border);
}

.card-header{
  padding: 1rem 1.3rem;
  font-weight: 700;
}

.card-footer{
  padding: .9rem 1.3rem;
}

.card-body{
  padding: 1.3rem 1.4rem;
}

.card-body.p-0 > .table-responsive{
  padding: .45rem .9rem .95rem;
}

.card-body.p-0 > .table-responsive .table{
  margin-bottom: 0;
}

.dropdown-menu,
.offcanvas{
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.94);
}

.btn{
  border-radius: 14px;
  font-weight: 600;
  padding: .7rem 1rem;
}

.btn-sm{
  border-radius: 12px;
}

.btn-primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-accent) 100%);
}

.btn-primary:hover,
.btn-primary:focus{
  border-color: transparent;
  background: linear-gradient(135deg, var(--app-primary-strong) 0%, #0284c7 100%);
}

.btn-outline-secondary,
.btn-light{
  border-color: var(--app-border-strong);
}

.form-control,
.form-select,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple,
.ts-wrapper.single .ts-control{
  border-radius: 14px !important;
  border-color: var(--app-border-strong) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.ts-wrapper.single.focus .ts-control{
  border-color: rgba(139,92,246,.55) !important;
  box-shadow: 0 0 0 .25rem rgba(139,92,246,.16) !important;
}

.table{
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(109, 40, 217, .03);
}

.table thead th{
  color: var(--app-text-muted);
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom-width: 1px;
}

.table > :not(caption) > * > *{
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: .85rem;
  padding-right: .85rem;
  border-color: var(--app-border);
}

.table-responsive{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(109, 40, 217, .35) transparent;
}

.badge{
  border-radius: 999px;
  font-weight: 700;
  padding: .52em .78em;
}

.navbar-toggler{
  border-radius: 12px;
}

.app-navbar{
  background: linear-gradient(120deg, rgba(88,28,135,.96) 0%, rgba(109,40,217,.96) 50%, rgba(139,92,246,.96) 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .14);
  backdrop-filter: blur(18px);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link{
  color: #f8fafc !important;
}

.app-navbar .navbar-brand{
  font-weight: 700;
}

.app-navbar .nav-link{
  border-radius: 12px;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active{
  background: rgba(255,255,255,.16);
}

.app-navbar .dropdown-menu{
  margin-top: .85rem;
}

.task-menu{
  min-width: 360px;
}

.task-list .list-group-item{
  background: transparent !important;
  border-color: rgba(15, 23, 42, .05) !important;
}

.task-list .list-group-item:hover{
  background: rgba(109, 40, 217, .05) !important;
}

.app-page-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--app-border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82)),
    linear-gradient(120deg, rgba(109,40,217,.10), rgba(139,92,246,.10));
  box-shadow: var(--app-shadow-sm);
}

.app-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .72rem;
  border-radius: 999px;
  background: rgba(109,40,217,.10);
  color: #5b21b6;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.app-page-title{
  margin: .8rem 0 .2rem;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.app-page-subtitle{
  max-width: 680px;
  margin: 0;
  color: var(--app-text-muted);
}

.app-header-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.app-section-card{
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90));
}

.app-section-card .card-body{
  padding: 1.55rem 1.6rem;
}

.app-card-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.app-card-title h2,
.app-card-title h5{
  margin: 0;
  font-weight: 700;
}

.app-chip{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, .09);
  color: var(--app-primary-strong);
  font-weight: 700;
  font-size: .86rem;
}

.app-chip.neutral{
  background: rgba(148, 163, 184, .15);
  color: #475569;
}

.app-stat-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .9rem;
}

.app-stat{
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: rgba(248, 250, 252, .9);
}

.app-stat-label{
  color: var(--app-text-muted);
  font-size: .84rem;
  margin-bottom: .25rem;
}

.app-stat-value{
  font-weight: 700;
}

.app-detail-grid{
  display: grid;
  gap: .85rem;
}

.app-detail-item{
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: .9rem;
  padding: .95rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.app-detail-item dt{
  margin: 0;
  color: var(--app-text-muted);
  font-weight: 600;
}

.app-repair-timeline{
  display: grid;
  gap: .7rem;
}

.app-repair-timeline-item{
  padding: .8rem .9rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: rgba(248, 250, 252, .78);
}

.app-detail-item dd{
  margin: 0;
  font-weight: 600;
}

.app-history-table td,
.app-history-table th{
  vertical-align: top;
}

.app-history-value{
  white-space: pre-wrap;
  word-break: break-word;
}

.app-empty-state{
  padding: 1.2rem;
  border: 1px dashed rgba(148, 163, 184, .45);
  border-radius: 18px;
  background: rgba(248, 250, 252, .86);
  color: var(--app-text-muted);
}

.app-muted{
  color: var(--app-text-muted);
}

.app-summary-card{
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--app-border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  box-shadow: var(--app-shadow-sm);
}

.app-summary-label{
  color: var(--app-text-muted);
  font-size: .84rem;
  margin-bottom: .35rem;
}

.app-summary-value{
  font-size: clamp(1.35rem, 1.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.1;
}

.app-summary-note{
  margin-top: .4rem;
  color: var(--app-text-muted);
  font-size: .82rem;
}

.app-toolbar-card{
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--app-border);
  border-radius: 20px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--app-shadow-sm);
}

.app-toolbar-card + .app-toolbar-card{
  margin-top: 1rem;
}

.app-table-card{
  overflow: hidden;
}

.app-table-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 1.45rem;
  border-bottom: 1px solid var(--app-border);
}

.app-table-toolbar-title{
  font-weight: 700;
  margin: 0;
}

.app-table-toolbar-subtitle{
  margin: .25rem 0 0;
  color: var(--app-text-muted);
  font-size: .9rem;
}

.app-check-grid{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.15rem;
}

.app-inline-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.app-data-empty{
  padding: 1.25rem;
  color: var(--app-text-muted);
}

.tap-card{
  border: 1px solid var(--app-border-strong);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90)),
    linear-gradient(120deg, rgba(109,40,217,.08), rgba(139,92,246,.06));
  box-shadow: var(--app-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.tap-card:hover,
a.tap-card:focus,
.tap-card:hover{
  border-color: rgba(109, 40, 217, .28);
  box-shadow: var(--app-shadow-md);
  transform: translateY(-2px);
}

.tap-btn{
  min-height: 48px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  border: 1px solid rgba(109, 40, 217, .18);
  border-radius: 999px;
  background: rgba(109, 40, 217, .08);
  color: var(--app-primary-strong);
  font-weight: 700;
}

.chip.green{
  border-color: rgba(22, 163, 74, .22);
  background: rgba(22, 163, 74, .10);
  color: #166534;
}

.chip.gray{
  border-color: rgba(100, 116, 139, .24);
  background: rgba(148, 163, 184, .13);
  color: #475569;
}

.dashboard-bottom-nav{
  position: sticky;
  bottom: 0;
  z-index: 1040;
  padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(243,239,255,.82), rgba(255,255,255,.96));
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--app-border);
}

.portal-body{
  min-height: 100vh;
}

.portal-shell{
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.portal-hero{
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--app-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(139,92,246,.18), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.86));
  box-shadow: var(--app-shadow-md);
}

.portal-hero-compact{
  margin-bottom: 1.2rem;
}

.portal-brand{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-brand-mark{
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: .45rem;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(109, 40, 217, .12);
}

.portal-brand-name{
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 700;
}

.portal-brand-subtitle{
  color: var(--app-text-muted);
}

.portal-status-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .85rem;
  margin-top: 1.2rem;
}

.portal-copy{
  margin-top: 1.3rem;
  max-width: 760px;
}

.portal-title{
  margin: .8rem 0 .4rem;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.04;
  font-weight: 700;
}

.portal-subtitle{
  margin: 0;
  color: var(--app-text-muted);
  font-size: 1rem;
}

.portal-continue{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(109, 40, 217, .16);
  border-radius: 20px;
  background: rgba(109, 40, 217, .05);
}

.portal-continue-label{
  font-weight: 600;
}

.portal-continue-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.portal-grid,
.manual-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portal-card,
.manual-card{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90));
  box-shadow: var(--app-shadow-sm);
}

.portal-card-icon,
.manual-card-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(109,40,217,.12), rgba(139,92,246,.18));
  color: var(--app-primary-strong);
  font-size: 1.45rem;
}

.portal-card-chip{
  display: inline-flex;
  align-items: center;
  margin-bottom: .55rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, .08);
  color: var(--app-primary-strong);
  font-size: .8rem;
  font-weight: 700;
}

.portal-card-eyebrow{
  color: var(--app-text-muted);
  font-size: .86rem;
  font-weight: 600;
}

.portal-card-title{
  margin: .45rem 0 .55rem;
  font-size: 1.45rem;
  line-height: 1.18;
  font-weight: 700;
}

.portal-card-text{
  margin: 0;
  color: var(--app-text-muted);
}

.portal-card-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: auto;
}

.portal-quicklinks{
  margin-top: 1.3rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 26px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--app-shadow-sm);
}

.portal-section-head{
  margin-bottom: 1rem;
}

.portal-section-head h2{
  margin: 0 0 .25rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.portal-section-head p{
  margin: 0;
  color: var(--app-text-muted);
}

.portal-link-grid,
.manual-links{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
}

.portal-link-card{
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  color: var(--app-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portal-link-card:hover,
.portal-link-card:focus{
  color: var(--app-primary-strong);
  border-color: rgba(109, 40, 217, .24);
  box-shadow: var(--app-shadow-sm);
  transform: translateY(-1px);
}

.portal-link-card i{
  color: var(--app-primary);
}

.manual-card-head{
  display: flex;
  align-items: center;
  gap: .85rem;
}

.manual-card-head h2{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.manual-steps{
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .75rem;
  color: var(--app-text);
}

.manual-steps li::marker{
  font-weight: 700;
  color: var(--app-primary);
}

@media (max-width: 991.98px){
  .portal-grid,
  .manual-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px){
  .portal-shell{
    width: min(100vw - 24px, 100%);
    padding-top: 16px;
  }

  .portal-hero,
  .portal-quicklinks,
  .portal-card,
  .manual-card{
    border-radius: 22px;
  }

  .portal-title{
    font-size: 1.8rem;
  }

  .portal-status-row,
  .portal-continue,
  .portal-card-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .portal-card-actions .btn,
  .portal-continue-actions .btn{
    width: 100%;
  }
}

.dashboard-bottom-nav .container{
  max-width: 100%;
}

.bottom-nav-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .55rem .35rem;
  border-radius: 16px;
  color: var(--app-text-muted);
  font-size: .78rem;
  font-weight: 600;
}

.bottom-nav-item.active,
.bottom-nav-item:hover,
.bottom-nav-item:focus{
  color: var(--app-primary-strong);
  background: rgba(109, 40, 217, .10);
}

.dashboard-section{
  margin-top: 1.35rem;
}

.dashboard-table-card .card-header{
  padding-bottom: .9rem;
}

.dashboard-table-card .table thead th{
  background: rgba(109, 40, 217, .05);
}

.dt-buttons .btn.btn-outline-secondary,
.dt-buttons .btn.btn-outline-success,
.dt-buttons .btn.btn-outline-danger,
.dt-buttons .btn.btn-outline-primary{
  background: transparent !important;
  box-shadow: none;
}

.dt-buttons .btn.btn-outline-secondary:hover,
.dt-buttons .btn.btn-outline-secondary:focus,
.dt-buttons .btn.btn-outline-secondary:active,
.dt-buttons .btn.btn-outline-secondary.active{
  color: #6c757d !important;
  background: rgba(108, 117, 125, .08) !important;
  border-color: #6c757d !important;
}

.dt-buttons .btn.btn-outline-success:hover,
.dt-buttons .btn.btn-outline-success:focus,
.dt-buttons .btn.btn-outline-success:active,
.dt-buttons .btn.btn-outline-success.active{
  color: #198754 !important;
  background: rgba(25, 135, 84, .08) !important;
  border-color: #198754 !important;
}

.dt-buttons .btn.btn-outline-danger:hover,
.dt-buttons .btn.btn-outline-danger:focus,
.dt-buttons .btn.btn-outline-danger:active,
.dt-buttons .btn.btn-outline-danger.active{
  color: #dc3545 !important;
  background: rgba(220, 53, 69, .08) !important;
  border-color: #dc3545 !important;
}

.dt-buttons .btn.btn-outline-primary:hover,
.dt-buttons .btn.btn-outline-primary:focus,
.dt-buttons .btn.btn-outline-primary:active,
.dt-buttons .btn.btn-outline-primary.active{
  color: var(--app-primary) !important;
  background: rgba(109, 40, 217, .08) !important;
  border-color: var(--app-primary) !important;
}

.share-link-list,
.module-switch-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.share-link-item,
.module-switch-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.share-link-copy{
  min-width: 0;
}

.share-link-copy-head{
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}

.share-link-url{
  font-size: .9rem;
  color: var(--app-primary-strong);
  word-break: break-all;
}

.module-switch-item{
  cursor: pointer;
}

.module-switch-item .form-check-input{
  width: 3rem;
  height: 1.5rem;
  cursor: pointer;
}

.borrow-assets-toolbar-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  height: 100%;
}

.borrow-assets-result-count{
  font-weight: 700;
  color: var(--app-text-muted);
}

.asset-image-preview{
  display: flex;
  justify-content: flex-start;
}

.asset-preview-image{
  width: min(100%, 260px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--app-border);
  background: linear-gradient(135deg, rgba(243, 232, 255, .95), rgba(245, 243, 255, .98));
  box-shadow: var(--app-shadow-sm);
}

.borrow-asset-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.borrow-asset-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--app-shadow-md);
  border-color: var(--app-border-strong);
}

.borrow-asset-media{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--app-border);
  background: linear-gradient(135deg, rgba(243, 232, 255, .92), rgba(250, 245, 255, .98));
}

.borrow-asset-thumb{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.borrow-asset-code{
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-bottom: .4rem;
  padding: .28rem .72rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, .08);
  color: var(--app-primary-strong);
  font-size: .84rem;
  font-weight: 700;
}

.borrow-asset-title{
  font-size: 1.08rem;
  line-height: 1.45;
}

.borrow-asset-meta{
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}

.borrow-asset-meta dt{
  margin-bottom: .2rem;
  color: var(--app-text-muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.borrow-asset-meta dd{
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.asset-detail-figure{
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--app-border);
  background: linear-gradient(135deg, rgba(243, 232, 255, .92), rgba(250, 245, 255, .98));
  box-shadow: var(--app-shadow-sm);
}

.asset-detail-image{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 991.98px){
  .app-page-header{
    padding: 1.25rem;
  }

  .app-header-actions{
    width: 100%;
    justify-content: flex-start;
  }

  .app-table-toolbar{
    flex-direction: column;
  }

  .share-link-item,
  .module-switch-item{
    align-items: flex-start;
    flex-direction: column;
  }

  .borrow-assets-toolbar-actions{
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 767.98px){
  html,
  body{
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-page-header{
    border-radius: 22px;
  }

  .app-section-card,
  .card,
  .dropdown-menu,
  .offcanvas{
    border-radius: 18px;
  }

  .app-detail-item{
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .task-menu{
    min-width: min(92vw, 360px);
  }

  .card-header,
  .card-footer,
  .card-body{
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .app-card-title{
    flex-direction: column;
    align-items: flex-start;
  }

  .app-chip{
    max-width: 100%;
    white-space: normal;
  }

  .app-stat-grid{
    grid-template-columns: 1fr;
  }

  .card-body.p-0 > .table-responsive{
    padding-left: .55rem;
    padding-right: .55rem;
  }

  .table > :not(caption) > * > *{
    padding-left: .65rem;
    padding-right: .65rem;
  }

  .asset-preview-image{
    width: 100%;
  }
}
