/* ============================================================
   Somerset Rescue Squad — Professional EMS Theme
   ============================================================ */

:root {
  --rs-red: #c0392b;
  --rs-red-dark: #96281b;
  --rs-red-light: #e74c3c;
  --rs-blue: #2c3e50;
  --rs-blue-dark: #1a252f;
  --rs-blue-light: #34495e;
  --rs-gold: #f39c12;
  --rs-gold-light: #f5b041;
  --rs-green: #27ae60;
  --rs-gray: #7f8c8d;
  --rs-gray-light: #bdc3c7;
  --rs-bg: #f0f2f5;
  --rs-white: #ffffff;
  --rs-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --rs-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --rs-radius: 12px;
  --rs-navbar-height: 60px;
  --rs-touch-min: 44px;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--rs-bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d3436;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Login Page
   ============================================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rs-blue) 0%, var(--rs-blue-dark) 100%);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal stripe pattern behind login */
.login-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(192, 57, 43, 0.04) 40px,
    rgba(192, 57, 43, 0.04) 42px
  );
  pointer-events: none;
}

.login-card {
  background: var(--rs-white);
  border-radius: var(--rs-radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  border-top: 4px solid var(--rs-red);
}

.login-card .logo {
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-card .logo img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  max-width: 120px;
  height: auto;
}

.login-card .logo i {
  font-size: 3rem;
  color: var(--rs-red);
}

.login-card h2 {
  text-align: center;
  color: var(--rs-blue);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.login-card .subtitle {
  text-align: center;
  color: var(--rs-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.login-card .form-control {
  min-height: var(--rs-touch-min);
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .form-control:focus {
  border-color: var(--rs-red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.login-card .btn {
  min-height: var(--rs-touch-min);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ============================================================
   Navbar — EMS / Rescue Theme
   ============================================================ */
.navbar-dark {
  background: linear-gradient(180deg, var(--rs-blue) 0%, var(--rs-blue-dark) 100%) !important;
  border-bottom: 3px solid var(--rs-red);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  min-height: var(--rs-navbar-height);
  position: relative;
  z-index: 1030;
}

/* Chevron stripe accent on navbar */
.navbar-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--rs-red) 0px,
    var(--rs-red) 20px,
    var(--rs-gold) 20px,
    var(--rs-gold) 24px
  );
}

.navbar-dark .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--rs-white) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-dark .navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
  min-height: var(--rs-touch-min);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.navbar-dark .nav-link:hover {
  color: var(--rs-white) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .nav-link.active {
  background-color: rgba(192, 57, 43, 0.5);
  color: var(--rs-white) !important;
  border-radius: 6px;
  font-weight: 600;
}

.navbar-dark .nav-link i {
  margin-right: 0.35rem;
  font-size: 1rem;
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  min-width: var(--rs-touch-min);
  min-height: var(--rs-touch-min);
  padding: 0.4rem 0.65rem;
}

.navbar-dark .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.4);
}

.navbar-dark .dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: var(--rs-shadow-lg);
  border-top: 3px solid var(--rs-red);
  margin-top: 0.25rem;
}

.navbar-dark .dropdown-item {
  padding: 0.6rem 1.2rem;
  min-height: var(--rs-touch-min);
  display: flex;
  align-items: center;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
  background-color: rgba(44, 62, 80, 0.08);
}

/* ============================================================
   Cards — Stat Cards
   ============================================================ */
.stat-card {
  border: none;
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--rs-red);
  background: var(--rs-white);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rs-shadow-lg);
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rs-blue);
  line-height: 1.2;
}

.stat-card .stat-label {
  color: var(--rs-gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ============================================================
   Section Cards
   ============================================================ */
.section-card {
  border: none;
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow);
  background: var(--rs-white);
  overflow: hidden;
}

.section-card .card-header {
  background: linear-gradient(135deg, var(--rs-blue) 0%, var(--rs-blue-light) 100%);
  color: var(--rs-white);
  border-bottom: 2px solid var(--rs-red);
  border-radius: var(--rs-radius) var(--rs-radius) 0 0 !important;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section-card .card-header i {
  color: var(--rs-gold);
  margin-right: 0.4rem;
}

.section-card .card-body {
  padding: 1.25rem;
}

/* General card enhancements */
.card {
  border-radius: var(--rs-radius);
}

/* ============================================================
   Tables
   ============================================================ */
.table-container {
  border-radius: var(--rs-radius);
  overflow: hidden;
  box-shadow: var(--rs-shadow);
  background: var(--rs-white);
}

/* Responsive table wrapper */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--rs-blue);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.table tbody tr {
  transition: background-color 0.15s;
  border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
  background-color: rgba(44, 62, 80, 0.03);
}

.table tbody td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
  font-size: 0.95rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(44, 62, 80, 0.02);
}

/* ============================================================
   Status Badges
   ============================================================ */
.badge-active { background-color: #27ae60; color: white; }
.badge-inactive { background-color: #95a5a6; color: white; }
.badge-expired { background-color: #e74c3c; color: white; }
.badge-pending { background-color: #f39c12; color: white; }
.badge-present { background-color: #27ae60; color: white; }
.badge-absent { background-color: #e74c3c; color: white; }
.badge-excused { background-color: #3498db; color: white; }
.badge-late { background-color: #f39c12; color: white; }

.badge {
  font-weight: 600;
  padding: 0.35em 0.75em;
  border-radius: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* ============================================================
   Alert Colors — Cert Expiry
   ============================================================ */
.cert-expiring-soon {
  background-color: #fff3cd;
  border-left: 4px solid var(--rs-gold);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
}

.cert-expired {
  background-color: #f8d7da;
  border-left: 4px solid #e74c3c;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
  min-height: var(--rs-touch-min);
  padding: 0.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-rescue {
  background-color: var(--rs-red);
  border-color: var(--rs-red);
  color: white;
  font-weight: 600;
}

.btn-rescue:hover,
.btn-rescue:focus {
  background-color: var(--rs-red-dark);
  border-color: var(--rs-red-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-rescue:active {
  transform: scale(0.98);
}

.btn-outline-rescue {
  color: var(--rs-red);
  border: 2px solid var(--rs-red);
  background: transparent;
  font-weight: 600;
}

.btn-outline-rescue:hover,
.btn-outline-rescue:focus {
  background-color: var(--rs-red);
  border-color: var(--rs-red);
  color: white;
}

.btn-navy {
  background-color: var(--rs-blue);
  border-color: var(--rs-blue);
  color: white;
  font-weight: 600;
}

.btn-navy:hover,
.btn-navy:focus {
  background-color: var(--rs-blue-dark);
  border-color: var(--rs-blue-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Small buttons still need good touch target */
.btn-sm {
  min-height: 36px;
  padding: 0.3rem 0.85rem;
  font-size: 0.875rem;
}

/* ============================================================
   Form Inputs
   ============================================================ */
.form-control,
.form-select {
  min-height: var(--rs-touch-min);
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  padding: 0.5rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rs-blue);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.12);
}

.form-label {
  font-weight: 600;
  color: var(--rs-blue);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.2em;
}

.form-check-input:checked {
  background-color: var(--rs-red);
  border-color: var(--rs-red);
}

textarea.form-control {
  min-height: 80px;
}

/* ============================================================
   Page Headers
   ============================================================ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--rs-blue);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--rs-red);
}

.page-header h2 {
  color: var(--rs-blue);
  font-weight: 700;
  margin: 0;
  font-size: 1.5rem;
}

.page-header h2 i {
  color: var(--rs-red);
  margin-right: 0.4rem;
}

/* ============================================================
   Finance Summary
   ============================================================ */
.finance-positive { color: var(--rs-green); font-weight: 600; }
.finance-negative { color: #e74c3c; font-weight: 600; }

/* ============================================================
   Signature Pad — Attendance
   ============================================================ */
.signature-pad-wrapper {
  border: 2px solid #dee2e6;
  border-radius: var(--rs-radius);
  background: var(--rs-white);
  padding: 0.5rem;
  position: relative;
}

.signature-pad-wrapper.active,
.signature-pad-wrapper:focus-within {
  border-color: var(--rs-blue);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.signature-pad {
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 8px;
  background: #fafbfc;
  cursor: crosshair;
  touch-action: none;
}

.signature-pad-label {
  font-size: 0.8rem;
  color: var(--rs-gray);
  text-align: center;
  padding-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signature-pad-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ============================================================
   Utility — EMS Accent Elements
   ============================================================ */

/* Red top accent for any card */
.card-accent-red {
  border-top: 4px solid var(--rs-red);
}

.card-accent-blue {
  border-top: 4px solid var(--rs-blue);
}

.card-accent-gold {
  border-top: 4px solid var(--rs-gold);
}

/* Text helpers */
.text-rs-red { color: var(--rs-red) !important; }
.text-rs-blue { color: var(--rs-blue) !important; }
.text-rs-gold { color: var(--rs-gold) !important; }

/* EMS chevron divider */
.ems-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--rs-red) 0px,
    var(--rs-red) 20px,
    var(--rs-blue) 20px,
    var(--rs-blue) 40px
  );
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* Alert banner */
.alert-ems {
  background: linear-gradient(135deg, var(--rs-blue) 0%, var(--rs-blue-dark) 100%);
  color: var(--rs-white);
  border: none;
  border-left: 5px solid var(--rs-red);
  border-radius: 0 var(--rs-radius) var(--rs-radius) 0;
  font-weight: 500;
}

.alert-ems i {
  color: var(--rs-gold);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--rs-gray);
}

.empty-state i {
  font-size: 3rem;
  color: var(--rs-gray-light);
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================
   Scrollbar (WebKit)
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background: var(--rs-gray-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rs-gray);
}

/* ============================================================
   Responsive — Tablet (768px - 1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  body {
    font-size: 1rem;
  }

  .navbar-dark .nav-link {
    padding: 0.55rem 0.7rem !important;
    font-size: 0.9rem;
  }

  .stat-card .stat-value {
    font-size: 1.6rem;
  }

  .stat-card .stat-label {
    font-size: 0.8rem;
  }

  .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .section-card .card-body {
    padding: 1rem;
  }

  .table tbody td {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }

  .table thead th {
    font-size: 0.75rem;
    padding: 0.65rem 0.85rem;
  }

  .page-header h2 {
    font-size: 1.35rem;
  }

  .form-control,
  .form-select {
    min-height: 48px;
    font-size: 1rem;
  }

  .btn {
    min-height: 48px;
  }

  .signature-pad {
    height: 180px;
  }

  .container,
  .container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ============================================================
   Responsive — Mobile (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  body {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Page header */
  .page-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }

  .page-header h2 {
    font-size: 1.25rem;
  }

  .page-header .btn,
  .page-header .btn-group {
    width: 100%;
  }

  /* Login on mobile */
  .login-card {
    padding: 1.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 10px;
  }

  .login-card .logo i {
    font-size: 2.5rem;
  }

  .login-card h2 {
    font-size: 1.3rem;
  }

  /* Navbar on mobile */
  .navbar-dark {
    padding: 0.4rem 0.75rem;
  }

  .navbar-dark .navbar-brand {
    font-size: 1rem;
  }

  .navbar-dark .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
  }

  .navbar-dark .nav-link {
    padding: 0.65rem 0.85rem !important;
    font-size: 1rem;
    min-height: var(--rs-touch-min);
    border-radius: 8px;
    margin-bottom: 2px;
  }

  .navbar-dark .dropdown-item {
    padding: 0.75rem 1.2rem;
    min-height: var(--rs-touch-min);
    font-size: 1rem;
  }

  /* Stat cards on mobile — compact layout */
  .stat-card {
    border-radius: 10px;
    margin-bottom: 0.75rem;
  }

  .stat-card .card-body {
    padding: 0.85rem 1rem;
  }

  .stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
  }

  .stat-card .stat-value {
    font-size: 1.4rem;
  }

  .stat-card .stat-label {
    font-size: 0.75rem;
  }

  /* Section cards */
  .section-card {
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  .section-card .card-header {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px 10px 0 0 !important;
  }

  .section-card .card-body {
    padding: 0.85rem;
  }

  /* Tables — horizontal scroll with good readability */
  .table-container {
    border-radius: 10px;
    margin: 0 -0.25rem;
  }

  .table-responsive {
    margin: 0;
    border-radius: 10px;
  }

  /* Add fade hint for scrollable tables */
  .table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
    pointer-events: none;
    border-radius: 0 10px 10px 0;
    z-index: 1;
  }

  .table-responsive {
    position: relative;
  }

  .table thead th {
    font-size: 0.7rem;
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
  }

  .table tbody td {
    font-size: 0.88rem;
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
  }

  /* Form inputs — larger for touch */
  .form-control,
  .form-select {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
  }

  textarea.form-control {
    min-height: 100px;
  }

  .form-check {
    min-height: var(--rs-touch-min);
    display: flex;
    align-items: center;
    padding-left: 2rem;
  }

  .form-check-input {
    width: 1.4em;
    height: 1.4em;
  }

  .form-check-label {
    font-size: 0.95rem;
    padding-top: 0.1rem;
  }

  /* Buttons — full-width stacking on mobile */
  .btn {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .btn-sm {
    min-height: 40px;
    font-size: 0.875rem;
  }

  /* Better spacing */
  .container,
  .container-fluid {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

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

  /* Signature pad on mobile — taller for easier signing */
  .signature-pad {
    height: 160px;
  }

  .signature-pad-wrapper {
    padding: 0.35rem;
  }

  /* Badge adjustments */
  .badge {
    font-size: 0.75rem;
    padding: 0.3em 0.65em;
  }

  /* Modals on mobile */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  /* Alert adjustments */
  .cert-expiring-soon,
  .cert-expired {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }

  /* EMS divider thinner on mobile */
  .ems-divider {
    height: 3px;
    margin: 1rem 0;
  }

  /* Empty state */
  .empty-state {
    padding: 2rem 1rem;
  }

  .empty-state i {
    font-size: 2.5rem;
  }
}

/* ============================================================
   Responsive — Very Small (max-width: 374px)
   ============================================================ */
@media (max-width: 374px) {
  .login-card {
    padding: 1.25rem;
  }

  .login-card h2 {
    font-size: 1.15rem;
  }

  .stat-card .stat-value {
    font-size: 1.2rem;
  }

  .stat-card .stat-label {
    font-size: 0.7rem;
  }

  .page-header h2 {
    font-size: 1.1rem;
  }

  .table tbody td,
  .table thead th {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }

  .signature-pad {
    height: 140px;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .navbar-dark,
  .btn,
  .signature-pad-wrapper,
  .signature-pad-actions {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .stat-card,
  .section-card,
  .table-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .page-header {
    border-bottom-color: #000;
  }

  .page-header::after {
    display: none;
  }
}
