/* ============================================================================
 * Bootstrap 4.x Complete Offline Core Stylesheet
 * Bundled locally in assets/vendor_components/bootstrap/dist/css/bootstrap.min.css
 * ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 0.925rem; font-weight: 400; line-height: 1.5; color: #1e293b; text-align: left; background-color: #f1f5f9; }
hr { box-sizing: content-box; height: 0; overflow: visible; border: 0; border-top: 1px solid #e2e8f0; margin: 1rem 0; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 600; line-height: 1.25; color: #0f172a; }
h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.65rem; }
h3, .h3 { font-size: 1.35rem; }
h4, .h4 { font-size: 1.15rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }
p { margin-top: 0; margin-bottom: 1rem; }
a { color: #2563eb; text-decoration: none; background-color: transparent; transition: color 0.15s ease, background-color 0.15s ease; }
a:hover { color: #1d4ed8; text-decoration: none; }
small, .small { font-size: 82%; font-weight: 400; }
b, strong { font-weight: 600; }
code, pre { font-family: Consolas, Monaco, "Courier New", monospace; font-size: 0.85em; }

/* Grid System */
.container, .container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
.container { max-width: 1240px; }
.row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
.no-gutters { margin-right: 0; margin-left: 0; }
.no-gutters > .col, .no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; }
[class*="col-"], .col { position: relative; width: 100%; padding-right: 12px; padding-left: 12px; }
.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 1200px) {
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Tables */
table { border-collapse: collapse; width: 100%; }
.table { width: 100%; margin-bottom: 1rem; color: #1e293b; background-color: transparent; }
.table th, .table td { padding: 0.75rem 0.85rem; vertical-align: middle; border-top: 1px solid #e2e8f0; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #cbd5e1; border-top: none; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: #475569; background: #f8fafc; }
.table-sm th, .table-sm td { padding: 0.45rem 0.65rem; }
.table-bordered { border: 1px solid #e2e8f0; }
.table-bordered th, .table-bordered td { border: 1px solid #e2e8f0; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(248, 250, 252, 0.7); }
.table-hover tbody tr:hover { background-color: #f1f5f9; }
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Forms */
label { display: inline-block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.85rem; color: #334155; }
.form-group { margin-bottom: 1rem; }
.form-control { display: block; width: 100%; height: calc(1.5em + 0.75rem + 2px); padding: 0.375rem 0.75rem; font-size: 0.9rem; font-weight: 400; line-height: 1.5; color: #0f172a; background-color: #fff; background-clip: padding-box; border: 1px solid #cbd5e1; border-radius: 0.375rem; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
textarea.form-control { height: auto; }
.form-control:focus { color: #0f172a; background-color: #fff; border-color: #3b82f6; outline: 0; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.form-control-sm { height: calc(1.5em + 0.5rem + 2px); padding: 0.25rem 0.5rem; font-size: 0.82rem; border-radius: 0.25rem; }
.form-control-lg { height: calc(1.5em + 1rem + 2px); padding: 0.5rem 1rem; font-size: 1.05rem; border-radius: 0.45rem; }
.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control { position: relative; flex: 1 1 auto; width: 1%; margin-bottom: 0; }
.input-group-prepend, .input-group-append { display: flex; }
.input-group-text { display: flex; align-items: center; padding: 0.375rem 0.75rem; margin-bottom: 0; font-size: 0.9rem; font-weight: 500; color: #475569; text-align: center; white-space: nowrap; background-color: #f8fafc; border: 1px solid #cbd5e1; border-radius: 0.375rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; font-weight: 500; color: #1e293b; text-align: center; vertical-align: middle; user-select: none; background-color: transparent; border: 1px solid transparent; padding: 0.42rem 0.9rem; font-size: 0.88rem; line-height: 1.5; border-radius: 0.375rem; cursor: pointer; transition: all 0.15s ease-in-out; }
.btn:hover { opacity: 0.94; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm, .btn-xs { padding: 0.25rem 0.55rem; font-size: 0.78rem; border-radius: 0.28rem; }
.btn-lg { padding: 0.6rem 1.25rem; font-size: 1rem; border-radius: 0.45rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { color: #fff; background-color: #2563eb; border-color: #2563eb; }
.btn-primary:hover { color: #fff; background-color: #1d4ed8; border-color: #1d4ed8; }
.btn-secondary { color: #fff; background-color: #64748b; border-color: #64748b; }
.btn-success { color: #fff; background-color: #10b981; border-color: #10b981; }
.btn-success:hover { color: #fff; background-color: #059669; }
.btn-info { color: #fff; background-color: #0ea5e9; border-color: #0ea5e9; }
.btn-warning { color: #fff; background-color: #f59e0b; border-color: #f59e0b; }
.btn-danger { color: #fff; background-color: #ef4444; border-color: #ef4444; }
.btn-dark { color: #fff; background-color: #0f172a; border-color: #0f172a; }
.btn-light { color: #1e293b; background-color: #f8fafc; border-color: #e2e8f0; }
.btn-outline-primary { color: #2563eb; border-color: #2563eb; background: #fff; }
.btn-outline-primary:hover { color: #fff; background: #2563eb; }
.btn-outline-secondary { color: #475569; border-color: #cbd5e1; background: #fff; }
.btn-outline-danger { color: #ef4444; border-color: #ef4444; background: #fff; }
.btn-outline-success { color: #10b981; border-color: #10b981; background: #fff; }

/* Cards & Boxes */
.card, .box { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid #e2e8f0; border-radius: 0.6rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); margin-bottom: 1.25rem; }
.card-header, .box-header { padding: 0.9rem 1.25rem; margin-bottom: 0; background-color: #fff; border-bottom: 1px solid #f1f5f9; border-top-left-radius: 0.6rem; border-top-right-radius: 0.6rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.box-title, .card-title { margin: 0; font-size: 1.02rem; font-weight: 600; color: #0f172a; }
.card-body, .box-body { flex: 1 1 auto; padding: 1.25rem; }
.card-footer, .box-footer { padding: 0.85rem 1.25rem; background-color: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom-left-radius: 0.6rem; border-bottom-right-radius: 0.6rem; }

/* Badges & Alerts */
.badge { display: inline-block; padding: 0.3em 0.6em; font-size: 76%; font-weight: 600; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.35rem; }
.badge-pill { border-radius: 10rem; }
.badge-primary { color: #1d4ed8; background-color: #dbeafe; }
.badge-success { color: #047857; background-color: #d1fae5; }
.badge-warning { color: #b45309; background-color: #fef3c7; }
.badge-danger { color: #b91c1c; background-color: #fee2e2; }
.badge-info { color: #0369a1; background-color: #e0f2fe; }
.badge-secondary { color: #475569; background-color: #f1f5f9; }
.badge-dark { color: #fff; background-color: #1e293b; }

.alert { position: relative; padding: 0.85rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.45rem; }
.alert-success { color: #065f46; background-color: #d1fae5; border-color: #a7f3d0; }
.alert-danger { color: #991b1b; background-color: #fee2e2; border-color: #fecaca; }
.alert-warning { color: #92400e; background-color: #fef3c7; border-color: #fde68a; }
.alert-info { color: #075985; background-color: #e0f2fe; border-color: #bae6fd; }
.alert-dismissible .close { position: absolute; top: 0; right: 0; padding: 0.75rem 1.25rem; color: inherit; background: transparent; border: 0; font-size: 1.25rem; cursor: pointer; }

/* Modals */
.modal { position: fixed; top: 0; left: 0; z-index: 1050; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.modal.show { display: flex !important; align-items: flex-start; justify-content: center; padding: 2rem 1rem; }
.modal-dialog { position: relative; width: 100%; max-width: 560px; margin: auto; pointer-events: auto; }
.modal-lg { max-width: 820px; }
.modal-xl { max-width: 1080px; }
.modal-sm { max-width: 380px; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; background-color: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 0.65rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); outline: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; }
.modal-title { margin-bottom: 0; line-height: 1.5; font-size: 1.05rem; font-weight: 600; }
.modal-header .close { padding: 0.25rem 0.5rem; margin: -0.25rem -0.5rem -0.25rem auto; background: transparent; border: 0; font-size: 1.4rem; cursor: pointer; color: #64748b; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1.25rem; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; padding: 0.85rem 1.25rem; border-top: 1px solid #e2e8f0; background: #f8fafc; border-bottom-left-radius: 0.65rem; border-bottom-right-radius: 0.65rem; }

/* Navs & Tabs */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: 0.55rem 1rem; font-weight: 500; color: #475569; border-radius: 0.375rem; cursor: pointer; }
.nav-tabs { border-bottom: 1px solid #e2e8f0; gap: 0.25rem; }
.nav-tabs .nav-link { border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 0.375rem 0.375rem 0 0; }
.nav-tabs .nav-link.active { color: #2563eb; background-color: #fff; border-bottom-color: #2563eb; font-weight: 600; }
.nav-pills .nav-link.active { color: #fff; background-color: #2563eb; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

/* Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-primary { color: #2563eb !important; }
.text-success { color: #10b981 !important; }
.text-warning { color: #f59e0b !important; }
.text-danger { color: #ef4444 !important; }
.text-info { color: #0ea5e9 !important; }
.text-muted { color: #64748b !important; }
.text-white { color: #fff !important; }
.text-dark { color: #0f172a !important; }
.bg-primary { background-color: #2563eb !important; }
.bg-success { background-color: #10b981 !important; }
.bg-warning { background-color: #f59e0b !important; }
.bg-danger { background-color: #ef4444 !important; }
.bg-info { background-color: #0ea5e9 !important; }
.bg-light { background-color: #f8fafc !important; }
.bg-white { background-color: #fff !important; }
.bg-dark { background-color: #0f172a !important; }
.font-weight-bold { font-weight: 600 !important; }
.w-100 { width: 100% !important; }
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; } .mt-2 { margin-top: 0.5rem !important; } .mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 0.25rem !important; } .mb-2 { margin-bottom: 0.5rem !important; } .mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; }
.ml-1 { margin-left: 0.25rem !important; } .ml-2 { margin-left: 0.5rem !important; } .ml-3 { margin-left: 1rem !important; } .ml-auto { margin-left: auto !important; }
.mr-1 { margin-right: 0.25rem !important; } .mr-2 { margin-right: 0.5rem !important; } .mr-3 { margin-right: 1rem !important; }
.p-0 { padding: 0 !important; } .p-2 { padding: 0.5rem !important; } .p-3 { padding: 1rem !important; } .p-4 { padding: 1.5rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; } .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; } .px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; } .py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; } .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.shadow-sm { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important; }
.shadow { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important; }
.rounded { border-radius: 0.375rem !important; }
.border { border: 1px solid #e2e8f0 !important; }
