body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafb;
}

.card {
  border-radius: 16px !important;
}

.navbar small {
  font-size: 0.7rem;
}

/* Green Theme */
:root {
  --trio-green: #16a34a;
  --trio-lightgreen: #dcfce7;
}

.btn-success {
  background-color: var(--trio-green) !important;
  border-color: var(--trio-green) !important;
  color: #fff !important;
}

.btn-success:hover {
  background-color: #15803d !important;
  color: #fff !important;
}

.btn-outline-success {
  color: var(--trio-green) !important;
  border-color: var(--trio-green) !important;
}

.btn-outline-success:hover {
  background-color: var(--trio-green) !important;
  color: #fff !important;
}

/* Footer Menu */
.navbar.fixed-bottom a {
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.navbar.fixed-bottom a.active-menu i,
.navbar.fixed-bottom a.active-menu small {
  color: var(--trio-green) !important;
  font-weight: 600;
}

/* Login logo */
.login-box img {
  object-fit: contain;
}

/* Card titles and numbers */
.card-body h5 {
  font-weight: 600;
  color: var(--trio-green);
}

/* ===== Action Buttons Section ===== */
.action-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;        /* ✅ Center buttons horizontally */
  gap: 16px;                      /* Space between buttons */
  transition: max-height 0.3s ease;
 overflow: hidden;
  max-height: 210px;              /* Show ~2 rows initially */
}

.action-grid.expanded {
  max-height: 660px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22%;                     /* Adjust width to fit centered rows */
  text-align: center;
}

.action-btn {
  width: 65px;                    /* Button circle size */
  height: 65px;
  border-radius: 50%;
  background-color: #e6f4ea;
  border: none;
  color: #16a34a;
  font-size: 1.5rem;              /* Larger icon */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.action-btn:hover {
  background-color: #16a34a;
  color: #fff;
  transform: scale(1.05);
}

.label {
  font-size: 0.75rem;
  margin-top: 4px;
  color: #222;
  white-space: nowrap;
}

.more-item {
  display: none;
}

.action-grid.expanded .more-item {
  display: flex;
}

@media (max-width: 600px) {
  .action-item {
    width: 28%;  /* Slightly fewer per row for small screens */
  }
  .action-btn {
    width: 75px;
    height: 75px;
    font-size: 1.3rem;
  }
}

/* Recent Sale List */
.list-group-item {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 14px;
}

.list-group-item:last-child {
  border-bottom: none;
}
body {
    padding-bottom: 100px; /* prevent content from going behind bottom nav */
}


.summary-card-green {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
  color: #111827;
  border: 1px solid #e1ebe5;
  border-radius: 12px;
  padding: 12px;
  min-height: 118px;
  position: relative;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-card-green::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #16a34a;
}

.summary-card-green .title {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  margin: 0;
}

.summary-card-green .amount {
  font-size: 22px;
  font-weight: 850;
  color: #111827;
  margin: 8px 0 0;
  line-height: 1;
}

.summary-card-green .card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.summary-card-green .note {
  background: #eef7f1;
  color: #3f5f49;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 650;
  display: inline-block;
  border-radius: 999px;
  margin-top: 8px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: flex-start;
}

@media (max-width: 480px) {
    .om-main {
        padding: 8px;
    }
}

/* ===== Side Panel ===== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1040;
}

.side-panel {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 10px rgba(0,0,0,0.15);
  z-index: 1050;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.side-panel.open {
  right: 0;
}

.side-overlay.show {
  display: block;
}

.side-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.side-menu {
  padding: 10px;
}

.side-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
}

.side-menu a:hover {
  background: #f1f5f9;
}
/* ===== User Header ===== */
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.user-icon {
  font-size: 40px;
  color: #16a34a;
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
  font-size: 15px;
}

.user-role {
  font-size: 12px;
  color: #6b7280;
}

.close-btn {
  border-radius: 50%;
}
