/* Local, self-contained subset of layout and component styles used by the templates. */

:root {
  --cp-ink: #0f172a;
  --cp-muted: #64748b;
  --cp-border: rgba(15, 23, 42, 0.08);
  --cp-surface: rgba(255, 255, 255, 0.92);
  --cp-primary: #0f766e;
  --cp-primary-deep: #0b4f64;
  --cp-accent: #f59e0b;
  --cp-danger: #dc2626;
  --cp-success: #16a34a;
}

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

body {
  margin: 0;
}

a {
  color: inherit;
}

.container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 992px) {
  .container-fluid {
    padding-inline: 1.5rem;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.75rem;
}

.row > * {
  width: 100%;
  padding-inline: 0.75rem;
}

.row.g-3 > * {
  padding: 0.75rem;
}

.row.g-4 > * {
  padding: 1rem;
}

.row-cols-1 > * {
  width: 100%;
}

@media (min-width: 768px) {
  .row-cols-md-2 > * {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .row-cols-xl-4 > * {
    width: 25%;
  }
}

.col {
  flex: 1 0 0%;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-6,
.col-xl-4,
.col-xl-6 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-2 { width: 16.6667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
  .col-lg-1 { width: 8.3333%; }
  .col-lg-2 { width: 16.6667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; }
  .col-lg-5 { width: 41.6667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.3333%; }
  .col-lg-8 { width: 66.6667%; }
  .col-lg-12 { width: 100%; }
  .text-lg-end { text-align: end; }
  .justify-content-lg-end { justify-content: flex-end; }
  .px-lg-4 {
    padding-inline: 1.5rem;
  }
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 1200px) {
  .col-xl-4 { width: 33.3333%; }
  .col-xl-6 { width: 50%; }
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-items-center {
  align-items: center;
}

.align-items-end {
  align-items: flex-end;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.p-3 {
  padding: 0.75rem;
}

.px-3 {
  padding-inline: 0.75rem;
}

.py-4 {
  padding-block: 1rem;
}

.py-5 {
  padding-block: 1.25rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 0.75rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.ms-1 {
  margin-left: 0.25rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-auto {
  margin-right: auto !important;
}

.mx-auto {
  margin-inline: auto !important;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.position-relative {
  position: relative;
}

.border-top {
  border-top: 1px solid var(--cp-border);
}

.border-bottom {
  border-bottom: 1px solid var(--cp-border);
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: end;
}

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

.text-danger {
  color: var(--cp-danger);
}

.text-success {
  color: var(--cp-success);
}

.text-white {
  color: #fff;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.fw-bold {
  font-weight: 800;
}

.small {
  font-size: 0.875rem;
}

.display-6 {
  font-size: clamp(2rem, 2.5vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
}

.h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
}

.rounded-pill {
  border-radius: 999px;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-dark {
  color: #fff;
}

.navbar-expand-lg {
  padding-block: 0.75rem;
}

.navbar-brand {
  text-decoration: none;
  font-size: 1.15rem;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 255, 255, 0.08);
}

.navbar-toggler {
  display: none;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background:
    linear-gradient(currentColor, currentColor) center 0.18rem / 100% 0.12rem no-repeat,
    linear-gradient(currentColor, currentColor) center 0.56rem / 100% 0.12rem no-repeat,
    linear-gradient(currentColor, currentColor) center 0.94rem / 100% 0.12rem no-repeat;
}

.navbar-collapse {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.collapse {
  display: flex;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.text-bg-light {
  background: #f8fafc;
  color: #0f172a;
}

.text-bg-secondary {
  background: #64748b;
  color: #fff;
}

.text-bg-success {
  background: rgba(22, 163, 74, 0.16);
  color: #166534;
}

.text-bg-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.text-bg-danger {
  background: rgba(220, 38, 38, 0.16);
  color: #991b1b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0.78rem 1rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.btn-lg {
  padding: 0.95rem 1.15rem;
}

.btn-sm {
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--cp-primary);
  border-color: var(--cp-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--cp-primary-deep);
  border-color: var(--cp-primary-deep);
}

.btn-light {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--cp-primary-deep);
}

.btn-dark {
  background: #111827;
  color: #fff;
}

.btn-warning {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #111827;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-primary {
  background: transparent;
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--cp-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(15, 118, 110, 0.08);
}

.btn-outline-secondary {
  background: transparent;
  border-color: rgba(100, 116, 139, 0.35);
  color: #334155;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(100, 116, 139, 0.08);
}

.btn-outline-success {
  background: transparent;
  border-color: rgba(22, 163, 74, 0.35);
  color: #166534;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background: rgba(22, 163, 74, 0.08);
}

.alert {
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
}

.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.alert-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.82rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: middle;
  text-align: left;
}

.table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  background: rgba(248, 250, 252, 0.92);
}

.table-hover tbody tr:hover {
  background: rgba(15, 118, 110, 0.04);
}

.table-sm th,
.table-sm td {
  padding: 0.5rem 0.65rem;
}

.align-middle {
  vertical-align: middle;
}

.pagination {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-sm .page-link {
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
}

.page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}

.page-item.active .page-link {
  background: var(--cp-primary);
  border-color: var(--cp-primary);
  color: #fff;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.85rem;
  text-decoration: none;
  background: #fff;
  color: var(--cp-ink);
}

.page-link:hover,
.page-link:focus {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.08);
}

.form-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.72rem 0.88rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.95rem;
  background: #fff;
  color: var(--cp-ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.form-check-label {
  font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--cp-primary);
}

.d-inline {
  display: inline !important;
}

.text-nowrap {
  white-space: nowrap;
}

.table td a,
.table th a {
  text-decoration: none;
}

.table td a:hover,
.table th a:hover {
  text-decoration: underline;
}

