/*
  Domaintico — Bootstrapless compatibility layer
  الهدف: إزالة Bootstrap (CSS/JS) من الواجهة العامة بدون كسر الـ layout الحالي.
  هذا الملف يوفّر Grid + Utilities + Dropdown/Collapse/Modal أساسية.
  NOTE: Loaded AFTER custom.css and Domaintico css files.
*/

:root {
  /* keep existing bootstrap-like variables used by current CSS */
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;

  /*
    Domaintico layout token
    - Ensures consistent page horizontal padding on mobile/desktop.
    - We intentionally keep --bs-gutter-x at 1.5rem (24px) for grid spacing,
      while container padding is controlled independently.
  */
  --dm-page-pad: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

/* -----------------------------
   Grid / Containers
-------------------------------- */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  margin-inline: auto;
  /*
    Use a stable page padding (requested: 16px) and respect iOS safe areas.
    Falls back to bootstrap gutter padding when --dm-page-pad isn't defined.
  */
  padding-inline: var(--dm-page-pad, calc(var(--bs-gutter-x) / 2));
  padding-left: max(var(--dm-page-pad, calc(var(--bs-gutter-x) / 2)), env(safe-area-inset-left));
  padding-right: max(var(--dm-page-pad, calc(var(--bs-gutter-x) / 2)), env(safe-area-inset-right));
}

.container-fluid { max-width: 100%; }

/* sensible max-widths (bootstrap-ish) */
@media (min-width: 576px){ .container, .container-sm { max-width: 540px; } }
@media (min-width: 768px){ .container, .container-sm, .container-md { max-width: 720px; } }
@media (min-width: 992px){ .container, .container-sm, .container-md, .container-lg { max-width: 960px; } }
@media (min-width: 1200px){ .container, .container-sm, .container-md, .container-lg, .container-xl { max-width: 1140px; } }
@media (min-width: 1400px){ .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl { max-width: 1320px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: calc(var(--bs-gutter-x) / -2);
  margin-block-start: calc(var(--bs-gutter-y) * -1);
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: calc(var(--bs-gutter-x) / 2);
  margin-block-start: var(--bs-gutter-y);
}

.col { flex: 1 0 0%; }

/* -----------------------------
   Gutters (g- / gx- / gy-)
   Bootstrap 5 compatible subset
-------------------------------- */
.g-0{--bs-gutter-x:0;--bs-gutter-y:0;}
.g-1{--bs-gutter-x:.25rem;--bs-gutter-y:.25rem;}
.g-2{--bs-gutter-x:.5rem;--bs-gutter-y:.5rem;}
.g-3{--bs-gutter-x:1rem;--bs-gutter-y:1rem;}
.g-4{--bs-gutter-x:1.5rem;--bs-gutter-y:1.5rem;}
.g-5{--bs-gutter-x:3rem;--bs-gutter-y:3rem;}

.gx-0{--bs-gutter-x:0;}
.gx-1{--bs-gutter-x:.25rem;}
.gx-2{--bs-gutter-x:.5rem;}
.gx-3{--bs-gutter-x:1rem;}
.gx-4{--bs-gutter-x:1.5rem;}
.gx-5{--bs-gutter-x:3rem;}

.gy-0{--bs-gutter-y:0;}
.gy-1{--bs-gutter-y:.25rem;}
.gy-2{--bs-gutter-y:.5rem;}
.gy-3{--bs-gutter-y:1rem;}
.gy-4{--bs-gutter-y:1.5rem;}
.gy-5{--bs-gutter-y:3rem;}

/* col-{n} */
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* sm */
@media (min-width: 576px){
  .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100.000000%; }
}

/* md */
@media (min-width: 768px){
  .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100.000000%; }
}

/* lg */
@media (min-width: 992px){
  .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100.000000%; }
}

/* xl */
@media (min-width: 1200px){
  .col-xl-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-xl-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-xl-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100.000000%; }
}

/* -----------------------------
   Utilities (subset)
-------------------------------- */
.d-none{display:none !important;}
.d-block{display:block !important;}
.d-inline{display:inline !important;}
.d-inline-block{display:inline-block !important;}
.d-flex{display:flex !important;}
.d-inline-flex{display:inline-flex !important;}
.d-grid{display:grid !important;}

@media (min-width: 576px){
  .d-sm-none{display:none !important;}
  .d-sm-block{display:block !important;}
  .d-sm-flex{display:flex !important;}
}
@media (min-width: 768px){
  .d-md-none{display:none !important;}
  .d-md-block{display:block !important;}
  .d-md-flex{display:flex !important;}
}
@media (min-width: 992px){
  .d-lg-none{display:none !important;}
  .d-lg-block{display:block !important;}
  .d-lg-flex{display:flex !important;}
}

.flex-wrap{flex-wrap:wrap !important;}
.flex-column{flex-direction:column !important;}
.flex-row{flex-direction:row !important;}
.align-items-center{align-items:center !important;}
.align-items-start{align-items:flex-start !important;}
.align-items-end{align-items:flex-end !important;}
.justify-content-between{justify-content:space-between !important;}
.justify-content-center{justify-content:center !important;}
.justify-content-end{justify-content:flex-end !important;}
.gap-1{gap:.25rem !important;}
.gap-2{gap:.5rem !important;}
.gap-3{gap:1rem !important;}
.gap-4{gap:1.5rem !important;}

.w-100{width:100% !important;}
.h-100{height:100% !important;}
.vh-100{height:100vh !important;}

.text-start{text-align:start !important;}
.text-end{text-align:end !important;}
.text-center{text-align:center !important;}
.text-decoration-none{text-decoration:none !important;}

.small{font-size:.875em !important;}

/* Font-size helpers (Bootstrap-like) */
.fs-1{font-size:2.5rem !important;}
.fs-2{font-size:2rem !important;}
.fs-3{font-size:1.75rem !important;}
.fs-4{font-size:1.5rem !important;}
.fs-5{font-size:1.25rem !important;}
.fs-6{font-size:1rem !important;}

/* Text colors */
.text-muted{color:rgba(11,18,32,.62) !important;}
.text-primary{color:var(--dm-primary, #2563EB) !important;}
.text-success{color:rgb(5, 150, 105) !important;}
.text-warning{color:rgb(180, 83, 9) !important;}
.text-info{color:rgb(2, 132, 199) !important;}
.text-danger{color:rgb(185, 28, 28) !important;}
.text-secondary{color:rgb(51, 65, 85) !important;}
.text-dark{color:var(--dm-text, #0F172A) !important;}
.text-white{color:#fff !important;}

.fw-semibold{font-weight:600 !important;}
.fw-bold{font-weight:700 !important;}

.bg-white{background:#fff !important;}
.bg-light{background:#F8FAFC !important;}

/* Background colors (soft-tint, Domaintico design-friendly) */
.bg-primary{background:rgba(37, 99, 235, .12) !important;}
.bg-success{background:rgba(16, 185, 129, .12) !important;}
.bg-warning{background:rgba(245, 158, 11, .12) !important;}
.bg-danger{background:rgba(239, 68, 68, .12) !important;}
.bg-secondary{background:rgba(100, 116, 139, .12) !important;}

/* spacing scale (bootstrap-ish): 0..4 */
.m-0{margin:0 !important;}
.mt-0{margin-top:0 !important;}
.mb-0{margin-bottom:0 !important;}
.mt-1{margin-top:.25rem !important;}
.mt-2{margin-top:.5rem !important;}
.mt-3{margin-top:1rem !important;}
.mt-4{margin-top:1.5rem !important;}
.mb-1{margin-bottom:.25rem !important;}
.mb-2{margin-bottom:.5rem !important;}
.mb-3{margin-bottom:1rem !important;}
.mb-4{margin-bottom:1.5rem !important;}
.ms-1{margin-inline-start:.25rem !important;}
.ms-2{margin-inline-start:.5rem !important;}
.ms-3{margin-inline-start:1rem !important;}
.me-1{margin-inline-end:.25rem !important;}
.me-2{margin-inline-end:.5rem !important;}
.me-3{margin-inline-end:1rem !important;}

@media (min-width: 576px){
  .ms-sm-3{margin-inline-start:1rem !important;}
}

.p-0{padding:0 !important;}
.p-1{padding:.25rem !important;}
.p-2{padding:.5rem !important;}
.p-3{padding:1rem !important;}
.p-4{padding:1.5rem !important;}
.px-2{padding-inline:.5rem !important;}
.px-3{padding-inline:1rem !important;}
.py-2{padding-block:.5rem !important;}
.py-3{padding-block:1rem !important;}
.py-4{padding-block:1.5rem !important;}
.pt-4{padding-top:1.5rem !important;}
.ps-3{padding-inline-start:1rem !important;}

/* -----------------------------
   Dropdown (no Bootstrap)
-------------------------------- */
.dropdown{position:relative;}
.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  display:none;
  min-width: 12rem;
  padding: .5rem;
  margin-top: .5rem;
  border: 1px solid rgba(11,18,32,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 60px rgba(15,23,42,.14);
  z-index: 1050;
}
.dropdown-menu.show{display:block;}
.dropdown-menu-end{right:0; left:auto;}
.dropdown-item{
  display:flex;
  align-items:center;
  gap:.5rem;
  width:100%;
  padding: .5rem .65rem;
  border-radius: 12px;
  color: rgba(11,18,32,.92);
  text-decoration:none;
}
.dropdown-item:hover,
.dropdown-item:focus{background: rgba(11,18,32,.04);}
.dropdown-divider{
  height: 1px;
  margin: .5rem 0;
  background: rgba(11,18,32,.10);
}

/* -----------------------------
   Collapse (no Bootstrap)
-------------------------------- */
.collapse{display:none;}
.collapse.show{display:block;}

/* -----------------------------
   Modal (no Bootstrap)
-------------------------------- */
.modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
}
.modal.show{display:block;}

.modal-dialog{
  width: 100%;
  max-width: 640px;
  margin: 2rem auto;
}

.modal-dialog.modal-lg{max-width: 820px;}

.modal-dialog-centered{
  min-height: calc(100% - 2rem);
  display:flex;
  align-items:center;
}

.modal-content{
  background: #fff;
  border: 1px solid rgba(11,18,32,.12);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15,23,42,.20);
  overflow: hidden;
}

.modal-header,
.modal-footer{padding: 1rem 1.1rem;}
.modal-body{padding: 1rem 1.1rem;}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: .75rem;
  border-bottom: 1px solid rgba(11,18,32,.08);
}

.modal-title{margin:0; font-size: 1.05rem; font-weight: 800;}

.modal-footer{
  border-top: 1px solid rgba(11,18,32,.08);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.5rem;
}

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 1999;
}

body.modal-open{overflow:hidden;}

.btn-close{
  appearance: none;
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.btn-close:hover{background: rgba(11,18,32,.06);}
.btn-close::before,
.btn-close::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width: 18px;
  height: 2px;
  background: rgba(11,18,32,.72);
  transform-origin: center;
}
.btn-close::before{transform: translate(-50%,-50%) rotate(45deg);}
.btn-close::after{transform: translate(-50%,-50%) rotate(-45deg);}


/* === EXTRA UTILITIES (Bootstrap compatibility for templates) ===
   Added by Domaintico UX Pack to avoid missing classes when Bootstrap is removed.
*/

/* Typography helpers */
.small { font-size: 0.875em !important; }
.lead { font-size: 1.25rem !important; font-weight: 300 !important; }
.h1 { font-size: calc(1.375rem + 1.5vw) !important; }
.h2 { font-size: calc(1.325rem + 0.9vw) !important; }
.h3 { font-size: calc(1.3rem + 0.6vw) !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }

/* Display */
.d-inline { display: inline !important; }
.d-grid { display: grid !important; }

/* Flex */
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }
.align-self-auto { align-self: auto !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-baseline { align-self: baseline !important; }
.align-self-stretch { align-self: stretch !important; }

/* Gap (extend) */
.gap-0 { gap: 0 !important; }
.gap-5 { gap: 3rem !important; }

/* Sizing */
.w-auto { width: auto !important; }
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.mw-100 { max-width: 100% !important; }
.h-auto { height: auto !important; }
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }

/* Alignment */
.align-top { vertical-align: top !important; }
.align-middle { vertical-align: middle !important; }
.align-bottom { vertical-align: bottom !important; }

/* Overflow */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-scroll { overflow: scroll !important; }

/* Position */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.top-100 { top: 100% !important; }
.bottom-0 { bottom: 0 !important; }
.bottom-50 { bottom: 50% !important; }
.bottom-100 { bottom: 100% !important; }
.start-0 { inset-inline-start: 0 !important; }
.start-50 { inset-inline-start: 50% !important; }
.start-100 { inset-inline-start: 100% !important; }
.end-0 { inset-inline-end: 0 !important; }
.end-50 { inset-inline-end: 50% !important; }
.end-100 { inset-inline-end: 100% !important; }

.translate-middle { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }
.translate-middle-y { transform: translateY(-50%) !important; }

/* Visibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.invisible { visibility: hidden !important; }

/* Border + Radius + Shadow */
.border {
  border: 1px solid var(--dm-border-soft, rgba(2, 6, 23, 0.12)) !important;
}
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--dm-border-soft, rgba(2, 6, 23, 0.12)) !important; }
.border-bottom { border-bottom: 1px solid var(--dm-border-soft, rgba(2, 6, 23, 0.12)) !important; }
.border-start { border-inline-start: 1px solid var(--dm-border-soft, rgba(2, 6, 23, 0.12)) !important; }
.border-end { border-inline-end: 1px solid var(--dm-border-soft, rgba(2, 6, 23, 0.12)) !important; }

.rounded { border-radius: var(--dm-radius, 0.375rem) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: .2rem !important; }
.rounded-2 { border-radius: .25rem !important; }
.rounded-3 { border-radius: .3rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--dm-shadow-sm, 0 0.125rem 0.25rem rgba(2, 6, 23, 0.12)) !important; }
.shadow { box-shadow: var(--dm-shadow, 0 0.5rem 1rem rgba(2, 6, 23, 0.15)) !important; }
.shadow-lg { box-shadow: var(--dm-shadow-lg, 0 1rem 3rem rgba(2, 6, 23, 0.18)) !important; }

/* Spacing (complete Bootstrap 0-5 scale) */
.m-0 { margin: 0 !important; }
.m-1 { margin: .25rem !important; }
.m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0 { margin-inline-start: 0 !important; }
.ms-1 { margin-inline-start: .25rem !important; }
.ms-2 { margin-inline-start: .5rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.ms-4 { margin-inline-start: 1.5rem !important; }
.ms-5 { margin-inline-start: 3rem !important; }
.ms-auto { margin-inline-start: auto !important; }

.me-0 { margin-inline-end: 0 !important; }
.me-1 { margin-inline-end: .25rem !important; }
.me-2 { margin-inline-end: .5rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.me-4 { margin-inline-end: 1.5rem !important; }
.me-5 { margin-inline-end: 3rem !important; }
.me-auto { margin-inline-end: auto !important; }

.mx-0 { margin-inline: 0 !important; }
.mx-1 { margin-inline: .25rem !important; }
.mx-2 { margin-inline: .5rem !important; }
.mx-3 { margin-inline: 1rem !important; }
.mx-4 { margin-inline: 1.5rem !important; }
.mx-5 { margin-inline: 3rem !important; }
.mx-auto { margin-inline: auto !important; }

.my-0 { margin-block: 0 !important; }
.my-1 { margin-block: .25rem !important; }
.my-2 { margin-block: .5rem !important; }
.my-3 { margin-block: 1rem !important; }
.my-4 { margin-block: 1.5rem !important; }
.my-5 { margin-block: 3rem !important; }
.my-auto { margin-block: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.ps-0 { padding-inline-start: 0 !important; }
.ps-1 { padding-inline-start: .25rem !important; }
.ps-2 { padding-inline-start: .5rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }
.ps-4 { padding-inline-start: 1.5rem !important; }
.ps-5 { padding-inline-start: 3rem !important; }

.pe-0 { padding-inline-end: 0 !important; }
.pe-1 { padding-inline-end: .25rem !important; }
.pe-2 { padding-inline-end: .5rem !important; }
.pe-3 { padding-inline-end: 1rem !important; }
.pe-4 { padding-inline-end: 1.5rem !important; }
.pe-5 { padding-inline-end: 3rem !important; }

.px-0 { padding-inline: 0 !important; }
.px-1 { padding-inline: .25rem !important; }
.px-2 { padding-inline: .5rem !important; }
.px-3 { padding-inline: 1rem !important; }
.px-4 { padding-inline: 1.5rem !important; }
.px-5 { padding-inline: 3rem !important; }

.py-0 { padding-block: 0 !important; }
.py-1 { padding-block: .25rem !important; }
.py-2 { padding-block: .5rem !important; }
.py-3 { padding-block: 1rem !important; }
.py-4 { padding-block: 1.5rem !important; }
.py-5 { padding-block: 3rem !important; }

/* Grid (extend: xxl + auto) */
.col-auto { flex: 0 0 auto; width: auto; }
@media (min-width: 576px) {
  .col-sm-auto { flex: 0 0 auto; width: auto; }
}
@media (min-width: 768px) {
  .col-md-auto { flex: 0 0 auto; width: auto; }
}
@media (min-width: 992px) {
  .col-lg-auto { flex: 0 0 auto; width: auto; }
}
@media (min-width: 1200px) {
  .col-xl-auto { flex: 0 0 auto; width: auto; }
}
@media (min-width: 1400px) {
  .col-xxl { flex: 1 0 0%; }
  .col-xxl-auto { flex: 0 0 auto; width: auto; }
  .col-xxl-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-xxl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xxl-3 { flex: 0 0 auto; width: 25%; }
  .col-xxl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xxl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xxl-6 { flex: 0 0 auto; width: 50%; }
  .col-xxl-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-xxl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xxl-9 { flex: 0 0 auto; width: 75%; }
  .col-xxl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xxl-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xxl-12 { flex: 0 0 auto; width: 100%; }

  .d-xxl-none { display: none !important; }
  .d-xxl-block { display: block !important; }
  .d-xxl-inline-block { display: inline-block !important; }
  .d-xxl-flex { display: flex !important; }
  .d-xxl-inline-flex { display: inline-flex !important; }
  .d-xxl-grid { display: grid !important; }
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .75rem; border-bottom: 1px solid rgba(2,6,23,.10); }
.table thead th { font-weight: 700; text-align: left; border-bottom: 2px solid rgba(2,6,23,.12); }
.table tbody tr:last-child td { border-bottom: 0; }

/* Nav (basic) */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: .5rem 1rem; text-decoration: none; color: inherit; }
.nav-pills { gap: .5rem; }
.nav-pills .nav-link { border-radius: 999px; border: 1px solid rgba(2,6,23,.12); background: rgba(2,6,23,.03); }
.nav-pills .nav-link.active { background: rgba(37, 99, 235, 0.10); border-color: rgba(37, 99, 235, 0.22); color: rgba(37, 99, 235, 1); }

/* Alerts (basic bootstrap-like) */
.alert { padding: .75rem 1rem; border-radius: .75rem; border: 1px solid rgba(2,6,23,.12); background: rgba(2,6,23,.03); }
.alert-success { border-color: rgba(16,185,129,.22); background: rgba(16,185,129,.08); color: rgb(6,95,70); }
.alert-warning { border-color: rgba(245,158,11,.22); background: rgba(245,158,11,.08); color: rgb(146,64,14); }
.alert-danger { border-color: rgba(239,68,68,.22); background: rgba(239,68,68,.08); color: rgb(153,27,27); }
.alert-info { border-color: rgba(59,130,246,.22); background: rgba(59,130,246,.08); color: rgb(30,64,175); }
.alert-secondary { border-color: rgba(100,116,139,.22); background: rgba(100,116,139,.08); color: rgb(51,65,85); }
.alert-light { border-color: rgba(2,6,23,.10); background: rgba(255,255,255,.8); color: rgb(15,23,42); }
.alert-dark { border-color: rgba(2,6,23,.18); background: rgba(2,6,23,.06); color: rgb(2,6,23); }



/* === EXTRA UTILITIES PATCH 2 (missing helpers found in templates) === */

/* Responsive display (inline / inline-block) */
@media (min-width: 576px) {
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
}
@media (min-width: 768px) {
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
}
@media (min-width: 992px) {
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
}
@media (min-width: 1200px) {
  .d-xl-inline { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
}
@media (min-width: 1400px) {
  .d-xxl-inline { display: inline !important; }
  .d-xxl-inline-block { display: inline-block !important; }
}

/* Responsive spacing used in templates */
@media (min-width: 768px) {
  .p-md-3 { padding: 1rem !important; }
  .p-md-4 { padding: 1.5rem !important; }
}
@media (min-width: 992px) {
  .py-lg-5 { padding-block: 3rem !important; }
}

/* Text utilities */
.text-uppercase { text-transform: uppercase !important; letter-spacing: .08em; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

/* Form helper text */
.form-text { margin-top: .25rem !important; font-size: .875em !important; color: rgba(100,116,139,1) !important; }

/* Dropdown toggle caret (optional) */
.dropdown-toggle::after{
  display: inline-block;
  margin-inline-start: .3em;
  vertical-align: .15em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
  opacity: .65;
}

/* Nav item */
.nav-item { list-style: none; }

/* Table small */
.table-sm th, .table-sm td { padding: .45rem .6rem; }



/* === EXTRA UTILITIES PATCH 3 === */
.h-45 { height: 45px !important; }

