:root {
  --bg-base: #f7f8f2;
  --bg-accent: #edf5ea;
  --surface: #ffffff;
  --surface-soft: #f9fbf6;
  --text: #183024;
  --muted: #587061;
  --brand: #0f8a4b;
  --brand-strong: #0a6f3c;
  --brand-soft: #d8f2e4;
  --focus: #ff9f1c;
  --shadow-lg: 0 16px 38px rgba(8, 42, 22, 0.13);
  --shadow-md: 0 10px 24px rgba(8, 42, 22, 0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 159, 28, 0.13) 0, rgba(255, 159, 28, 0) 34%),
    radial-gradient(circle at 14% 90%, rgba(15, 138, 75, 0.18) 0, rgba(15, 138, 75, 0) 42%),
    linear-gradient(155deg, var(--bg-base), var(--bg-accent));
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-nav {
  border-bottom: 1px solid rgba(15, 138, 75, 0.14);
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-brand {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-strong) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.navbar-brand img {
  border-radius: 10px;
  margin-right: 0.5rem;
}

.site-nav-collapse {
  align-items: center;
  gap: 1rem;
}

.site-nav-primary,
.site-nav-user {
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: #244434 !important;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-strong) !important;
  background: rgba(15, 138, 75, 0.08);
}

.nav-login-link,
.profile-dropdown-toggle {
  padding: 0.4rem 0.55rem !important;
}

.nav-login-link {
  border: 1px solid rgba(15, 138, 75, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 246, 0.96));
}

.profile-nav-item {
  margin-left: auto;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.18rem 0.2rem;
}

.profile-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), #139f59);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 138, 75, 0.2);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.profile-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c8375;
}

.profile-name {
  font-family: "Sora", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  color: #123927;
}

.profile-dropdown-menu {
  min-width: 13rem;
}

.dropdown-menu {
  border: 1px solid rgba(15, 138, 75, 0.14);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  box-shadow: var(--shadow-md);
  z-index: 1200;
}

.dropdown-item {
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
  transition: all 0.18s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.container .card {
  border: 1px solid rgba(15, 138, 75, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp 0.45s ease both;
  background: var(--surface);
}

.card-header {
  border-bottom: 1px solid rgba(15, 138, 75, 0.14);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--brand-strong);
  background: linear-gradient(95deg, #eef9f1, #f8fcf7);
}

.card-body {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #139f59);
  border-color: #139f59;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  border-color: var(--brand-strong);
}

.btn-secondary {
  background: #eff4f0;
  border-color: #c7d8cc;
  color: #1e3b2e;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #dfece4;
  border-color: #b8ccb9;
  color: #173327;
}

input.form-control,
select.form-control,
textarea.form-control {
  border: 1px solid #c8d8cd;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(15, 138, 75, 0.16);
}

table.table {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.table thead th {
  background: #e8f5ec;
  color: #1d3d2d;
  border-bottom: 1px solid #cfe5d6;
}

.table tbody tr:nth-child(even) {
  background: #f8fcf9;
}

.table-bordered td,
.table-bordered th {
  border-color: #dbe8de;
}

.site-footer {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(15, 138, 75, 0.14);
  background: linear-gradient(180deg, #173e2b, #102f21) !important;
}

.navbar_horizontal_link {
  color: #e5f5eb;
  padding: 0 5px;
  line-height: 1.7;
}

.navbar_horizontal_link a {
  color: #ffd180;
  font-weight: 600;
  text-decoration: none;
}

.navbar_horizontal_link a:hover {
  color: #ffe2aa;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .site-nav-collapse {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .site-nav .container {
    gap: 0.75rem;
  }

  .site-nav-collapse {
    width: 100%;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 138, 75, 0.12);
  }

  .site-nav-primary,
  .site-nav-user {
    align-items: stretch;
    gap: 0.2rem;
  }

  .profile-nav-item {
    margin-left: 0;
  }

  .profile-dropdown-toggle {
    width: 100%;
  }

  .profile-chip {
    width: 100%;
  }
}

.preserveLines {
  white-space: pre-wrap;
}

.menu-item {
  border-bottom: 0;
}

.taskMtable {
  table-layout: fixed;
}

.taskMtable_td {
  word-wrap: break-word;
  white-space: normal;
}

.users-filter-bar {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 138, 75, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 249, 0.95));
}

.users-filter-bar .form-label {
  font-weight: 600;
  color: #294737;
  margin-bottom: 0.4rem;
}

.voucher-filter-bar {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 138, 75, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 249, 0.95));
}

.voucher-filter-bar .form-label {
  font-weight: 600;
  color: #294737;
  margin-bottom: 0.4rem;
}

.voucher-filter-bar .form-control {
  min-height: calc(1.5em + 0.75rem + 2px);
}

.voucher-filter-actions {
  padding-top: 0.25rem;
}

.audit-feed-page {
  padding-top: 0.5rem;
}

.audit-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.audit-feed-title {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #13253c;
  margin-bottom: 0.35rem;
}

.audit-feed-subtitle {
  color: #3d4d63;
  font-size: 1.05rem;
  max-width: 980px;
}

.audit-view-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d3deeb;
  box-shadow: 0 10px 24px rgba(21, 49, 78, 0.08);
}

.audit-view-switch__link {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: #4a5e76;
  font-weight: 700;
  text-decoration: none;
}

.audit-view-switch__link:hover,
.audit-view-switch__link:focus {
  color: #1c3f66;
  text-decoration: none;
}

.audit-view-switch__link--active {
  background: linear-gradient(135deg, #147d69, #0f8a4b);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 138, 75, 0.2);
}

.audit-feed-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audit-feed-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid #d9e4f0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(21, 49, 78, 0.06);
}

.audit-feed-stat__label {
  display: block;
  margin-bottom: 0.3rem;
  color: #688098;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-feed-stat__value {
  display: block;
  color: #1a2f48;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.audit-feed-card {
  border-color: #cfdceb;
}

.audit-feed-filters {
  padding: 1rem;
  border: 1px solid #d9e4f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.audit-feed-search-wrap {
  position: relative;
}

.audit-feed-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6f7f92;
}

.audit-feed-search-input,
.audit-feed-date-input {
  min-height: 4rem;
  border-radius: 16px;
  border: 1px solid #c8d6e5;
  font-size: 1rem;
}

.audit-feed-search-input {
  padding-left: 2.8rem;
}

.audit-feed-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #c8d6e5;
  color: #34465b;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.audit-feed-chip:hover,
.audit-feed-chip:focus {
  color: #1e6752;
  background: #f2fbf6;
  text-decoration: none;
}

.audit-feed-chip--active {
  background: #147d69;
  border-color: #147d69;
  color: #fff;
}

.audit-feed-list {
  position: relative;
}

.audit-feed-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.audit-feed-item + .audit-feed-item {
  margin-top: 1.5rem;
}

.audit-feed-icon {
  width: 3.25rem;
  height: 3.25rem;
  min-width: 3.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.audit-feed-icon--default,
.audit-feed-icon--model {
  background: #f2f5f9;
  color: #526577;
}

.audit-feed-icon--auth {
  background: #e8f1ff;
  color: #2d5caa;
}

.audit-feed-icon--voucher {
  background: #e8f8ed;
  color: #177245;
}

.audit-feed-icon--investment {
  background: #fff3e6;
  color: #bc6b1c;
}

.audit-feed-icon--membership {
  background: #eef0ff;
  color: #5348bb;
}

.audit-feed-icon--gf-payment {
  background: #ecfdf7;
  color: #0f766e;
}

.audit-feed-icon--report {
  background: #f3e8ff;
  color: #7c3aed;
}

.audit-feed-icon--user {
  background: #fff1f2;
  color: #be3144;
}

.audit-feed-content {
  position: relative;
  flex: 1;
  padding-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.audit-feed-item:not(:last-child) .audit-feed-content::before {
  content: "";
  position: absolute;
  left: -1.125rem;
  top: 3.5rem;
  bottom: -0.3rem;
  width: 2px;
  background: #d7e2ef;
}

.audit-feed-line {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.audit-feed-item-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #17233c;
}

.audit-feed-time {
  color: #5a6d83;
  font-size: 1rem;
}

.audit-feed-item-detail {
  margin-top: 0.35rem;
  color: #334a62;
  font-size: 1.12rem;
}

.audit-feed-item-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.audit-feed-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #d8e2ed;
  color: #5d7188;
  font-size: 0.92rem;
}

.audit-feed-empty {
  padding: 2rem 1rem;
  border: 1px dashed #cad7e5;
  border-radius: 16px;
  text-align: center;
  color: #5d7188;
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 767.98px) {
  .audit-feed-title {
    font-size: 1.55rem;
  }

  .audit-feed-stats {
    grid-template-columns: 1fr;
  }

  .audit-feed-search-input,
  .audit-feed-date-input {
    min-height: 3.35rem;
  }

  .audit-feed-item-title {
    font-size: 1.15rem;
  }
}

.users-pagination-wrap .pagination {
  margin-bottom: 0;
}

.users-pagination-wrap .page-link {
  color: var(--brand-strong);
  border-color: #d8e6dc;
}

.users-pagination-wrap .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand), #139f59);
  border-color: #139f59;
}

.isvisible {
  display: block;
}

.ishidden {
  display: none;
}

#search_button {
  cursor: pointer;
}

.custom_btn {
  width: 100px;
  margin: 5px;
}

.dashboard-home {
  position: relative;
}

.dashboard-hero {
  background: linear-gradient(120deg, rgba(15, 138, 75, 0.95), rgba(19, 159, 89, 0.92));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem;
  color: #f4fff9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-kicker {
  margin: 0;
  opacity: 0.9;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-title {
  margin: 0.25rem 0;
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.dashboard-subtitle {
  margin: 0;
  color: #e8fff2;
  max-width: 56ch;
}

.section-card .card-header i {
  color: #147f4b;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.reports-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.employees-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

a.action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 126px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(15, 138, 75, 0.2);
  background: #fff;
  padding: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.action-tile:hover,
a.action-tile:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(12, 59, 32, 0.16);
  text-decoration: none;
}

a.action-accounts:hover,
a.action-accounts:focus {
  border-color: rgba(15, 138, 75, 0.38);
}

a.action-reports:hover,
a.action-reports:focus {
  border-color: rgba(255, 159, 28, 0.48);
}

a.action-employees:hover,
a.action-employees:focus {
  border-color: rgba(53, 97, 182, 0.38);
}

.tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22rem;
  color: #134b31;
  background: linear-gradient(130deg, #dff4e9, #ecfaf1);
  margin-bottom: 0.7rem;
}

.tile-title {
  font-family: "Sora", sans-serif;
  font-size: 0.94rem;
  line-height: 1.35;
  color: #143827;
}

.tile-image-wrap {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(15, 138, 75, 0.2);
  display: inline-flex;
}

.tile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button.print-button {
  width: 100px;
  height: 100px;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}

span.print-icon,
span.print-icon::before,
span.print-icon::after,
button.print-button:hover .print-icon::after {
  border: solid 4px #234535;
  box-sizing: border-box;
  background-color: #fff;
}

span.print-icon::after {
  border-width: 2px;
}

span.print-icon {
  position: relative;
  display: inline-block;
  padding: 0;
  margin-top: 20%;
  width: 60%;
  height: 35%;
  border-radius: 20% 20% 0 0;
}

span.print-icon::before {
  content: " ";
  position: absolute;
  bottom: 100%;
  left: 12%;
  right: 12%;
  height: 110%;
  transition: height 0.2s 0.15s;
}

span.print-icon::after {
  content: " ";
  position: absolute;
  top: 55%;
  left: 12%;
  right: 12%;
  height: 0%;
  background: #fff;
  background-repeat: no-repeat;
  background-size: 70% 90%;
  background-position: center;
  background-image: linear-gradient(
    to top,
    #fff 0,
    #fff 14%,
    #333 14%,
    #333 28%,
    #fff 28%,
    #fff 42%,
    #333 42%,
    #333 56%,
    #fff 56%,
    #fff 70%,
    #333 70%,
    #333 84%,
    #fff 84%,
    #fff 100%
  );
  transition: height 0.2s, border-width 0s 0.2s, width 0s 0.2s;
}

button.print-button:hover {
  cursor: pointer;
}

button.print-button:hover .print-icon::before {
  height: 0;
  transition: height 0.2s;
}

button.print-button:hover .print-icon::after {
  height: 120%;
  transition: height 0.2s 0.15s, border-width 0s 0.16s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    box-shadow: none;
    border: none;
    background: rgba(15, 138, 75, 0.06);
  }

  .container .card {
    border-radius: 12px;
  }

  .reports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .navbar-brand {
    font-size: 0.95rem;
  }

  .navbar-brand img {
    height: 42px !important;
  }

  .card-header,
  .card-body {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .table {
    font-size: 0.9rem;
  }

  .dashboard-hero {
    padding: 1rem;
  }

  .dashboard-title {
    font-size: 1.2rem;
  }

  .action-grid,
  .reports-grid,
  .employees-grid {
    grid-template-columns: 1fr;
  }

  .action-tile {
    min-height: 96px;
  }
}
  
