/* Noto Sans Lao - ຝັງໄວ້ໃນເວັບໄຊທ໌ໂດຍກົງ (self-host) 2026-08-21 ແທນການໂຫລດຈາກ Google Fonts CDN -
   ກ່ອນໜ້ານີ້ໂຫລດຜ່ານ <link> ໄປ fonts.googleapis.com ໃນ header.php, ແຕ່ຖ້າ network ຂອງຜູ້ໃຊ້ (ເຊັ່ນ
   network ຫ້ອງການ/ບ້ານ) ບໍ່ໃຫ້ເຂົ້າ Google ໄດ້ ຕົວໜັງສືຈະຕົກກັບໄປໃຊ້ font ອື່ນຂອງລະບົບແທນ (ໜ້າຕາຕ່າງກັນ
   ລະຫວ່າງເຄື່ອງ/network ຕ່າງກັນ ທັງທີ່ເປັນເວັບໄຊທ໌ດຽວກັນ). ຝັງໄວ້ໃນນີ້ເລີຍເພື່ອໃຫ້ໜ້າຕາຄືກັນສະເໝີ ບໍ່ຂຶ້ນ
   ກັບອິນເຕີເນັດພາຍນອກ. ໄຟລ໌ຢູ່ໃນ public/assets/fonts/ (License: SIL Open Font License, ເບິ່ງ OFL.txt
   ໃນໂຟນເດີດຽວກັນ). */
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSansLao-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSansLao-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSansLao-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Lao';
  src: url('../fonts/NotoSansLao-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-primary: #0d6b4f;
  --brand-dark: #094a37;
  --brand-accent: #f2b705;
}

body {
  font-family: 'Noto Sans Lao', 'Segoe UI', sans-serif;
  background: #f4f6f8;
}

.app-navbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-primary));
}

.app-navbar .container-fluid {
  position: relative;
}

.navbar-datetime {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 1rem;
}

@media (max-width: 991.98px) {
  .navbar-datetime {
    display: none;
  }
}

.online-pulse {
  font-size: .5rem;
  vertical-align: middle;
  animation: online-pulse-anim 1.6s ease-in-out infinite;
}

@keyframes online-pulse-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.app-wrapper {
  display: flex;
  min-height: calc(100vh - 56px - 48px);
}

.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--brand-dark);
  color: #fff;
}

.app-sidebar .nav-link {
  color: rgba(255,255,255,.85);
  padding: .55rem .9rem;
  border-radius: .4rem;
  margin-bottom: 2px;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.nav-section-title {
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  text-transform: uppercase;
  padding: .4rem .9rem;
}

.app-content {
  flex: 1;
  min-width: 0;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 1rem;
  padding: 2.2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.selfcheck-card {
  max-width: 480px;
}

.selfcheck-card-wide {
  max-width: 640px;
}

.selfcheck-fullscreen {
  max-width: 1400px;
  width: 96%;
}

.selfcheck-upload-card {
  max-width: 760px;
}

.dues-year-block {
  border-bottom: 1px dashed #e1e6e5;
  padding-bottom: .75rem;
}

.dues-year-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-item {
  border-bottom: 1px dashed #e1e6e5;
}

.activity-item:last-child {
  border-bottom: none;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.card {
  border: none;
  border-radius: .9rem;
  box-shadow: 0 2px 12px rgba(15,40,32,.06);
}

.card-stat {
  border: none;
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}

.card-stat .stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
}

.card-stat .stat-label {
  font-size: .85rem;
  opacity: .92;
  font-weight: 500;
}

.card-stat .stat-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bg-brand1 { background: linear-gradient(135deg,#0d6b4f,#14996f); }
.bg-brand2 { background: linear-gradient(135deg,#1a5fb4,#3584e4); }
.bg-brand3 { background: linear-gradient(135deg,#c64600,#e66100); }
.bg-brand4 { background: linear-gradient(135deg,#7c3aed,#a78bfa); }
.bg-brand5 { background: linear-gradient(135deg,#b8860b,#e8b325); }
.bg-brand6 { background: linear-gradient(135deg,#0e7490,#22b8c4); }

.chart-card {
  transition: box-shadow .18s ease;
}

.chart-card:hover {
  box-shadow: 0 6px 20px rgba(15,40,32,.1);
}

.chart-card-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 1.1rem;
}

.chart-card-title .icon-badge {
  width: 34px;
  height: 34px;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.section-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a9490;
  margin: .5rem 0 .75rem;
}

.app-footer {
  background: #fff;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-primary)) 1;
  box-shadow: 0 -4px 14px rgba(15,40,32,.05);
  padding: 1.1rem 1.5rem;
  margin-top: 1rem;
}

.app-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  text-align: center;
}

.app-footer-brand {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--brand-dark);
}

.app-footer-brand i {
  color: var(--brand-primary);
}

.app-footer-meta {
  font-size: .8rem;
  color: #9aa5a1;
}

.table thead th {
  white-space: nowrap;
  background: #eef2f1;
}

.photo-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.year-filter-form {
  align-items: center;
}

.year-filter-pill {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(#fff, #fafcfb);
  border: 1px solid #e1e6e5;
  border-radius: 50rem;
  padding: .45rem .9rem .45rem 1.1rem;
  box-shadow: 0 2px 8px rgba(13,107,79,.08);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.year-filter-pill:hover,
.year-filter-pill:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(13,107,79,.16);
}

.year-filter-pill i {
  color: var(--brand-primary);
  font-size: 1.05rem;
}

.year-filter-pill select {
  border: none;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand-dark);
  padding: 0 1.5rem 0 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d6b4f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.year-filter-pill select:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 991px) {
  .app-sidebar {
    position: fixed;
    left: -260px;
    top: 56px;
    bottom: 0;
    z-index: 1030;
    transition: left .2s ease-in-out;
  }
  .app-sidebar.show { left: 0; }
}

/* ---- ໃບຢັ້ງຢືນ/ໃບຮັບເງິນ (ພິມໄດ້) ---- */
.receipt-sheet {
  max-width: 720px;
  background: #fff;
  border: 1px solid #dfe4e2;
  border-radius: .5rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 10px rgba(15,40,32,.06);
}

.receipt-org-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.receipt-title {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand-primary);
}

.receipt-subtitle {
  color: #6b7570;
}

.receipt-meta {
  font-size: .95rem;
  border-bottom: 1px dashed #dfe4e2;
  padding-bottom: .75rem;
}

.receipt-table th {
  background: #f4f6f8;
  width: 35%;
}

.receipt-amount {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-dark);
}

.receipt-sign-line {
  margin: 2.5rem 0 .3rem;
  letter-spacing: .1em;
}

/* ---- ໃບລາຍງານແບບພິມ (ຕາຕະລາງກວ້າງ) ---- */
.print-sheet {
  max-width: 1100px;
  background: #fff;
  border: 1px solid #dfe4e2;
  border-radius: .5rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 10px rgba(15,40,32,.06);
  margin: 0 auto;
}

/* ---- ໂໝດພິມ: ເຊື່ອງ navbar/sidebar/footer/ປຸ່ມ, ສະແດງສະເພາະໃບຢັ້ງຢືນ/ລາຍງານ ---- */
@media print {
  .app-navbar, .app-sidebar, .app-footer, #sidebarToggle, .no-print {
    display: none !important;
  }
  .app-wrapper {
    display: block !important;
    min-height: 0 !important;
  }
  .app-content {
    width: 100% !important;
  }
  .receipt-sheet, .print-sheet {
    max-width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .print-sheet table {
    font-size: .8rem;
  }
  .print-sheet thead {
    display: table-header-group;
  }
  .print-sheet tr {
    page-break-inside: avoid;
  }
  body {
    background: #fff !important;
  }
}
