body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f8fafc;
  /* background: red !important;*/
}

/* *{ border: 1px dashed blueviolet;

}*/
/* SIDEBAR */
.sidebar {
  width: 220px;
  height: 100vh;
  background: #0f172a;
  color: white;
  position: fixed;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  font-family: "Playfair Display", serif;
  top: 0;
  left: 0;
  justify-content: space-between;
  /* 🔥 ADD THIS */
  overflow: hidden;
}

.sidebar .sub {
  font-size: 12px;
  color: #94a3b8;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 10px 0;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 10px;
  transition: 0.2s;
}

/* Hover effect like original */
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

/* Active (selected) */
.sidebar nav a.active {
  background: #f59e0b;
  color: white;
  cursor: pointer;
}

/* PROFILE */
.profile-box {
  border-top: 1px solid #1e293b;
  padding-top: 15px;
  margin-bottom: 30px;
  /* 👈 add this */
  margin-top: auto;
  /* 🔥 KEY FIX */
  /* border-top: 1px solid rgba(255,255,255,0.08);*/
}

.profile {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 35px;
  height: 35px;
  background: orange;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logout {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: 0.2s;
}

.logout:hover {
  background: rgba(255, 255, 255, 0.08);
}

.logout i {
  font-size: 14px;
}

.avatar {
  width: 40px;
  height: 40px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
}

/* MAIN */
.main {
  margin-left: 260px;
  padding: 30px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 15px;
  flex-wrap: wrap;
    position: relative;
  z-index: 1;
}

.card {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 16px;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  /* 👈 IMPORTANT */
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.4s;
}

.card:nth-child(5) {
  animation-delay: 0.5s;
}

.card:nth-child(6) {
  animation-delay: 0.6s;
}

.card:nth-child(7) {
  animation-delay: 0.7s;
}

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

/*
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;   🔥 increase thickness 
background: linear-gradient(120deg, #3b82f6, #8b5cf6, #14b8a6);

-webkit-mask: linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}

.card:hover::before {
  background: linear-gradient(120deg, #6366f1, #ec4899, #22c55e);
}
*/
.cards .card .a1 {
  color: rgb(19, 48, 198);
  text-align: center;
}

.cards .card .a2 {
  color: rgb(160, 12, 233);
  text-align: center;
}

.cards .card .a3 {
  color: #e10e0e;
  text-align: center;
}

.cards .card .a4 {
  color: rgb(37, 153, 8);
  text-align: center;
}

.cards .card .a5 {
  color: rgb(94, 232, 232);
  text-align: center;
}

.cards .card .a6 {
  color: orange;
  text-align: center;
}

.cards .card .a7 {
  color: rgb(232, 98, 120);
  text-align: center;
}

.cards .card .a8 {
  color: black;
  text-align: center;
}

.cards .card p {
  color: #64748b;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  margin: 0 auto 10px;
}

.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 5px 0;
}

.card p {
  font-size: 14px;
  color: #64748b;
}

/* ICON COLORS */
.blue {
  background: #3b82f6;
}

.purple {
  background: #8b5cf6;
}

.red {
  background: #e10e0e;
}

.orange {
  background: orange;
}

.green {
  background: #22c55e;
}

.pink {
  background: rgb(232, 98, 120);
}

.teal {
  background: rgb(94, 232, 232);
}

.black {
  background: black;
}

/* TABLE */
.table {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 20px;
  overflow: auto;
  font-size: 16px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.5s;
}

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

.table th {
  background: #f8fafc;
  /* 👈 HEADER COLOR */
  padding: 10px;
  text-align: left;
  font-weight: 500;
  color: #475569;
}

.table td {
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 15px;
}

#recent {
  font-weight: 600;
  color: #14b8a6;
  font-family: "Playfair Display", serif;
  margin: 15px;
}

.head_dash {
  line-height: 15px;
  margin-bottom: 40px;
  /*border: 1px solid black;*/
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 900;
}

p {
  font-family: "Poppins", sans-serif;
  color: #64748b;
}

.loader {
  position: fixed;
  top: 0;
  left: 240px;
  width: calc(100% - 240px);
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #f59e0b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/*Style for customer module*/
.customer-container {
  width: 100%;
  max-width: 1100px;
  /* 👈 SAME WIDTH FOR ALL */
}

.top-bar {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.search {
  width: 60%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.btn {
  background: #0f172a;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 240px;
  width: calc(100% - 240px);
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
  justify-content: center;
  align-items: center;
    z-index: 99999; /* 🔥 VERY HIGH */

}


.modal-content {
  background: white;
  padding: 25px 30px;
  width: 550px;
  max-width: 95%;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
  position: relative;
  /* 🔥 ADD THIS */
  max-height: 90vh;
  overflow-y: auto;
  z-index: 100000; /* 🔥 */
}




/* HEADER */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin: 0;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
}

.close-btn:hover {
  color: black;
}

/* SUBTEXT */
.modal-sub {
  color: #64748b;
  font-size: 14px;
  margin: 8px 0 15px;
}

/* LABELS */
.modal-content label {
  font-size: 14px;
  color: #334155;
  display: block;
  margin-top: 10px;
  display: block;
}

/* INPUTS */
.modal-content input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  outline: none;
  transition: 0.2s;
}

.modal-content input:focus {
  border-color: #0f172a;
}

/* BUTTONS */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: space-between;
}

.submit-btn {
  flex: 1;
  background: #0f172a;
  color: white;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 70%;
}

.submit-btn:hover {
  background: #1e293b;
}

.cancel-btn {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  width: 30%;
}

/* BUTTONS */

.customer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-btn {
  background: #0f172a;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
}

.add-btn:hover {
  background: #1e293b;
}

.search-box {
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  width: 100%;
  box-sizing: border-box;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
}

/*Action btn icon*/
.actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

#action-col {
  text-align: center;
}

.icon-btn {
  background: transparent;
  /* 👈 IMPORTANT */
  border: 1px solid #e5e7eb;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.icon-btn i {
  font-size: 14px;
  color: inherit;
}
.icon-btn:hover {
    background: #f1f5f9;
  color: #0f172a;
}
.icon-btn.edite {
   color: #4d4dab;
}
.icon-btn.delete {
   color: #dc2626;
}

.icon-btn.delete:hover {
  color: #b91c1c;
  border-color: #fecaca;
}

.action-btn {
  border: 1px solid #e2e8f0;
  background: white;
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 6px;
  cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.action-btn i {
  font-size: 14px;
  color: inherit;
}

/* Default icon colors per action type (visible without hover) */
.action-btn.view {
  color: #0284c7;
}

.action-btn.edit {
  color: #24d7ee;
}

.action-btn.delete {
  color: #dc2626;
}
.action-btn.view:hover {
 background: #e0f2fe;
    color: #0369a1;
  border-color: #bae6fd;
}

.action-btn.edit:hover {
   background: #fef3c7;
  color: #0d81c4;
  border-color: #fde68a;
}

.action-btn.delete:hover {
    background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Actions column layout: keep buttons on a single row, vertically centered,
   and let the table scroll horizontally instead of each cell scrolling. */
.data-table td:last-child,
.data-table th:last-child {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.data-table td:last-child {
  min-width: 110px;
}

.data-table .actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}



/*notification*/
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #111827;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/*Delete popup*/
.modal-content.small {
  width: 350px;
  text-align: center;
}

.delete-btn {
  background: red;
  color: white;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 60%;
}

.delete-btn:hover {
  background: darkred;
}

/*SMOOTH ANIMATION*/

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
  /* 🔥 VERY IMPORTANT */
}

.badge.pending {
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 rgba(253, 230, 138, 0.7);
  animation:
    pulse 1.5s infinite,
    glow 1.5s infinite;
  background: #e10e0e;
  color: white;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 230, 138, 0.7);
  }

  70% {
    box-shadow: 0 0 10px 5px rgba(253, 230, 138, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(253, 230, 138, 0);
  }
}

.badge.inprogress {
  background: orange;
  color: white;
  animation: pulse 2s infinite;
}

.badge.completed {
  background: #22c55e;
  color: white;
}

.badge.delivered {
  background: rgb(232, 98, 120);
  color: white;
}

.badge.cancelled {
  background: black;
  color: white;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
    /* 👈 stronger effect */
  }

  100% {
    transform: scale(1);
  }
}

.fade-row {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeRow 0.4s ease forwards;
}

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

/* measurement module design*/
.measurement-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.grid input {
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.measurement-modal {
  width: 650px;
  padding: 30px;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.sub-text {
  color: gray;
  margin-bottom: 15px;
  font-size: 14px;
  margin-top: -20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
  row-gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 5px;
  width: 100%;
}

/*
.form-group:nth-child(even) {
  padding-left: 5px;
   👈 spacing from left 
}*/

.form-group input {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-grid label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: #374151;
}

.form-grid input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.2s;
}

.form-grid input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  gap: 12px;
  margin-top: 25px;
}

.form-actions button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #0f172a;
  color: white;
  padding: 12;
  border-radius: 8px;
  width: 70%;
  border: none;
}

.btn-secondary {
  background: #eee;
  padding: 10px 20px;
  border-radius: 6px;
  width: 30%;
  border: none;
}

.form-grid div {
  display: flex;
  flex-direction: column;
}

/* 🔥 FULL WIDTH FIELD */
.full-width {
  grid-column: span 2;
}

/* TEXTAREA */
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

/*mesurment History model view*/
.history-card {
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 15px;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}

.action-btn.view:hover {
  background: #e0f2fe;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.history-row span {
  font-size: 14px;
  color: #374151;
}

.history-grid span {
  background: #f9fafb;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
}

/* Notes */
.history-notes {
  margin-top: 10px;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 13px;
}

/* Fix header */
.measurement-modal h2 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
}

.history-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

/*delete history btn */
.delete-history {
  background: rgb(237, 241, 248);
  border: 12px;
  color: red;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  padding: 15px;
  transition:
    color 0.8s ease-in-out,
    background 0.8s ease-in-out,
    border-radius 0.8s ease-in-out;
}

.delete-history:hover {
  background: rgb(225, 220, 220);
  border: 12px;
  color: rgb(244, 131, 131);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}

/*Drop down btn in measurment model view or update */
.custom-dropdown {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #f9fafb;

  /* ✅ ONLY ONE ARROW */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='20' viewBox='0 0 20 20' width='20'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* Hover */
.custom-dropdown:hover {
  border-color: #6366f1;
  background: #fff;
}

/* Focus */
.custom-dropdown:focus {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236366f1' height='20' viewBox='0 0 20 20' width='20'><path d='M5 7l5 5 5-5z'/></svg>");
}



/*Mesurment Id shown */
.entry-id {
  background: indianred;
  padding: 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  font-family: "Playfair Display", serif;
  color: #eef5f4;
}

/*order status drop down*/
.status-dropdown {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
}

/* COLORS */
.status-dropdown {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
}

/* COLORS */
.status-dropdown.pending {
  background: #e10e0e;
  color: #fbfaf7;
  text-align: center;
  animation:
    pulse 1.5s infinite,
    glow 1.5s infinite;
}

.status-dropdown.in-progress {
  background: orange;
  color: #fbfaf7;
  animation:
    pulse 1.5s infinite,
    glow 1.5s infinite;
  text-align: center;
}

.status-dropdown.completed {
  background: #22c55e;
  color: #fbfaf7;
  text-align: center;
}

.status-dropdown.delivered {
  background: rgb(232, 98, 120);
  color: #fbfaf7;
  text-align: center;
}

.status-dropdown.cancelled {
  background: black;
  color: #fbfaf7;
  text-align: center;
}

/* INPUTS */
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
  /* 🔥 IMPORTANT */
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

}



/* dropdown */



/* DROPDOWN */
.dropdown {
  background: #fff;
  border: 1px solid #ddd;
  max-height: 150px;
  overflow-y: auto;
  border-radius: 8px;
  margin-top: 0px;
  border-radius: 0 0 10px 10px;
  border-top: none;
  /* 🔥 remove double border line */
}

.dropdown div {
  padding: 8px;
  cursor: pointer;
}

.dropdown div:hover {
  background: #f3f4f6;
}

.customer-item {
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.customer-item:hover {
  background: #f3f4f6;
}

#customerSearch {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  outline: none;
  margin-bottom: 5px;
}

.modal-content>* {
  margin-bottom: 12px;
}

#customerSearch:focus {
  border-color: #6366f1;
}

#total_price {
  margin-top: 10px;
  background: #f1f5f9;
  font-weight: 600;
}

.internal-container {
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fdfbfb;
}

/*Style for cart*/
.cart-icon {
  position: fixed;
  top: 20px;
  right: 30px;
  background: #111827;
  color: #fff;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

#cartCount {
  background: red;
  border-radius: 50%;
  padding: 2px 6px;
  margin-left: 5px;
}

/**/
#cartItems {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.cart-item span {
  font-size: 14px;
}

.remove-btn {
  background: #ff4d4f;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

/*Header addbtn style in add module div for heading and btn*/
.header-btn {
  display: flex;
  justify-content: space-between;
}

/*add material btn*/
.add-btn-material {
  background: rgb(243, 243, 238);
  border-radius: 5px;
  padding: 2px 2px;
  margin: 5px;
  color: black;
  text-align: center;
  border: none;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.06);
  transform: scale(0.7);
  width: 140px;
  transition: background ease-in 0.8s, transform ease-in 0.8s;
  height: 50px;
  cursor: pointer;
}

.add-btn-material:hover {
  background: orange;
  transform: scale(0.8);
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.08);
  color: white;
}

/*Cart table*/
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid #f2f2f2;
}


.cart-table th,
.cart-table td {
  border-bottom: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.cart-table th {
  text-align: left;
  font-size: 13px;
  color: #777;
  border-bottom: 1px solid #eee;
  padding: 8px;
}

.material-list {
  margin-top: 5px;
  color: gray;
  font-size: 12px;
}

/* MATERIAL ROW */
.material-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

/* PRICE + QTY GRID */
.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  width: 100%;
}

/* REMOVE BUTTON */
.remove-material {
  background: #fee2e2;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  color: red;
  font-size: 14px;
  transition: 0.2s;
}

.remove-material:hover {
  background: red;
  color: white;
}

.material-total {
  margin-top: 5px;
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
}

.material-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 12px;
}

.material-table th,
.material-table td {
  border: 1px solid #eee;
  padding: 4px;
  text-align: center;
}

.material-total-row {
  background: rgba(0, 255, 150, 0.2);
  font-weight: bold;
  color: #0a7d3b;
}

.order-card {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fafafa;
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
   align-items: center;
}
 
.inner-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.inner-table th,
.inner-table td {
  border: none;
  padding: 6px;
  text-align: center;
  font-size: 13px;
}

.material-title {
  margin-top: 10px;
  font-weight: 600;
}




.order-total {
  text-align: right;
  margin-top: 8px;
  font-weight: bold;
  font-size: 15px;
  margin-top: 10px;
}

/*
.order-box {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}*/

.order-box {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;

  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}


.material-section {
  margin-top: 10px;
}

.material-heading {
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
}

button {
  border-radius: 8px;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.05);
}

#cartModal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  color: white;
}

#cartModal .modal-content {
  width: 950px;
  max-height: 90vh;
  overflow-y: auto;

  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}


.cart-modal {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


.modal-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.modal-content button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  margin: 5px;
  cursor: pointer;
}

.modal-content button:first-child {
  background: #ff4d4f;
  color: white;
}

.modal-content button:last-child {
  background: #ddd;
}

.delete-selected-btn {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

.delete-selected-btn:hover {
  background: #d9363e;
}

.delete-box {
  text-align: center;
  padding: 30px;
  border-radius: 16px;
  width: 420px;
  animation: popupFade 0.3s ease;
}

.delete-icon {
  font-size: 30px;
  color: #ff4d4f;
  margin-bottom: 10px;
}

.delete-box h3 {
  margin-bottom: 10px;
}

.delete-box p {
  color: #777;
  margin-bottom: 20px;
}

.delete-actions button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  margin: 5px;
  cursor: pointer;
  font-weight: 500;
}

.btn-delete {
  background: #ff4d4f;
  color: white;
}

.btn-delete:hover {
  background: #d9363e;
}

.btn-cancel {
  background: #e5e5e5;
}

/*master feature design color mapping for calender*/
.green-day {
  background: green !important;
  border-radius: 50%;
}

.orange-day {
  background: orange !important;
  border-radius: 50%;
}

.red-day {
  background: red !important;
  border-radius: 50%;
}

.tooltip-box {
  position: fixed;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 999999;
  /* 🔥 INCREASE THIS */
  transform: translateY(5px) scale(0.95);
}


.tooltip-box[style*="opacity: 1"] {
  transform: translateY(0) scale(1);
}

.flatpickr-calendar {
  z-index: 100000 !important;
}

.date-input-wrapper {
  position: relative;
  width: 100%;
}

.date-input-wrapper input {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 40px 10px 12px;
}

.date-input-wrapper i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  cursor: pointer;
  font-size: 16px;
}

/* Hover effect 🔥 */
.date-input-wrapper i:hover {
  color: #000;
}


/*Billing design started from here*/
#bill-head{
  font-family:  "Playfair Display", serif;
}
.billing-search-box {
  position: relative;
  width: 100%;
  max-width: 1180;
  font-family:  "Playfair Display", serif;
  margin: 0 auto;
}

#billingSearch {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family:  "Playfair Display", serif;
}
.billing-results {
  position: absolute;
  width: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-height: 250px;
  overflow-y: auto;
  margin-top: 5px;
  z-index: 100;
  font-family:  "Playfair Display", serif;
  border: 1px solid #ddd;
}

.result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-family:  "Playfair Display", serif;
}

.result-item:hover {
  background: orange;
  font-family:  "Playfair Display", serif;
}

/* ===== INVOICE DESIGN ===== */


.invoice-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
   width: 100%;
  max-width: 800px;
   margin: 10px auto;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* HEADER */
.invoice-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 2px dashed #ddd;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.invoice-header h2 {
  font-family: "Playfair Display", serif;
}

/* STATUS BADGE */
.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.pending {
  background: red;
  color: white;
}

.status-badge.completed {
  background: green;
  color: white;
}

/* CUSTOMER */
.invoice-customer {
  margin-bottom: 15px;
}

/* SECTION TITLE */
.section-title {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 18px;
  border-left: 4px solid orange;
  padding-left: 8px;
}

/* TABLE */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2px;
}

.invoice-table th {
  background: #f8fafc;
  padding: 10px;
  text-align: left;
}

.invoice-table td {
  padding: 10px;
  border-top: 1px solid #eee;
}

/* TOTAL */
.invoice-total {
  margin-top: 20px;
  text-align: right;
}

.invoice-total h2 {
  margin-top: 10px;
  color: #0f172a;
}

@media print {
  body * {
    visibility: hidden;
  }

  body {
    margin: 0;
  }
    * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    animation: none !important;
  }
     .status-badge.pending {
    background: red !important;
    color: white !important;
    border: 1px solid red;
  }

  .status-badge.completed {
    background: green !important;
    color: white !important;
    border: 1px solid green;
  }

  .invoice-box, .invoice-box * {
    visibility: visible;
  }
  .grand-total-box {
  background: #5fe64d !important;
  color: white !important;
  border-radius: 25px !important;
  border: none !important;
}

  .invoice-header {
          display: flex !important;
  justify-content: space-around;
  }

  .invoice-badge {
    margin-top: 10px;
    display: inline-block;
    margin-right: 10px;
  }
  .invoice-box {
    position: absolute;
    left: 0;
    top: 0;
       width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    box-shadow: none;
    border: none;
    margin: 0;
  }
 
    .sidebar,
  .billing-search-box,
  .print-btn {
    display: none;
  }
}


/* CENTER BILLING CONTENT */
#billingContent {
  display: flex;
  justify-content: center;
  width: 100%;
}

.shop-header {
  text-align: center;
  border-bottom: 2px solid #ddd;
  margin-bottom: 0px;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.shop-header h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
}

.invoice-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

.print-btn {
  margin-top: 20px;
  background: #0f172a;
  color: white;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.top-left h1 {
  margin: 0;
  font-size: 32px;
}

.top-left p {
  margin: 2px 5;
}

.invoice-badge {
  background: #0f172a;
  color: white;
  padding: 8px 20px;
  border-radius: 10px;
  text-align: center;
}

.invoice-badge span {
  font-size: 8px;
  opacity: 0.8;
}

.invoice-badge h2 {
  margin: 0;
  font-size: 13px;
}

.total-box {
  width: 300px;
  margin-left: auto;
  margin-top: 20px;
  border-top: 2px dashed #ddd;
  padding-top: 10px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
   font-size: 15px;
}


.total-row.grand {
  font-size: 20px;
  font-weight: bold;
  color: #0f172a;
}

.head-bill{
  display: flex;
  justify-content: space-between;
}

**
.total-center {
  text-align: center;
  margin-top: 25px;
}

.total-center div {
  margin: 5px 0;
  font-size: 15px;
}

.grand-box {
  margin-top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #0f172a;
  border-top: 2px dashed #ddd;
  padding-top: 10px;
}

/*logo design*/
.logo-box {
  display: flex;
  justify-content: center;
    align-items: center;
  margin-bottom: 10px;
  margin-right: 90px;
}

.logo-box img {
  width: 110px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8fafc; /* fallback */
  border: none;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.12);
  transition: all ease 0.8s;
  cursor: pointer;
    transform: scale(1.2);
}
.logo-box img:hover{
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.18);
  transform: scale(1.4);

} 

.total-box-center {
  max-width: 400px;
  margin: 30px auto;
  text-align: center;
}

.grand-total-box {
  margin-top: 10px;
  padding: 12px;
  font-size: 22px;
  font-weight: bold;
  background: #5fe64d;
  color: white;
  border-radius: 8px;
}

/*Setting page*/
.settings-box {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input {
  width: 100%;
  padding: 10px;
}

/**/
.settings-container {
  max-width: 1000px;
  margin: auto;
}

.settings-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  background: white;
  padding: 25px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.save-btn {
  background: #0f172a;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

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

.logo-preview-box {
  width: 120px;
  height: 120px;
  margin: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ddd;
}

.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*Payment module design started from here*/
.payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 18px;
}

.badge {
    padding: 5px 10px;
    border-radius: 8px;
    background: orange;
    color: white;
}

button {
    margin-top: 10px;
    padding: 10px;
    background: #ff9800;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

/* =========================================
   PAYMENT MODULE - MODERN DESIGN
   ========================================= */



.invoice-btn {
  background: linear-gradient(135deg, #7ba0db, #bd9b1c);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
  margin-left: 100px;
  transition: all ease-in-out 0.8s;
}

.invoice-btn:hover {
  background: linear-gradient(135deg, #2d343d, #aa1147);
}

.payment-module {
  animation: fadeIn 0.4s ease;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.payment-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin: 0;
  color: #0f172a;
}

.payment-header p {
  margin: 4px 0 0;
  color: #64748b;
}

/* SEARCH */
.payment-search-wrapper {
  position: relative;
  margin-bottom: 28px;
}

.payment-search-box {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  gap: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.payment-search-box:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
}

.payment-search-box i {
  color: #94a3b8;
  font-size: 16px;
}

.payment-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  color: #1e293b;
  background: transparent;
}

.payment-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  display: none;
}

.payment-search-results.active {
  display: block;
}

.psr-item {
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.psr-item:last-child {
  border-bottom: none;
}

.psr-item:hover {
  background: #fffbeb;
}

.psr-item .psr-left b {
  color: #0f172a;
  font-size: 14px;
}

.psr-item .psr-left small {
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.psr-item .psr-right {
  text-align: right;
}

.psr-item .psr-price {
  font-weight: 700;
  color: #0f172a;
}

.psr-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.psr-badge.pending-badge { background: #fef2f2; color: #dc2626; }
.psr-badge.partial-badge { background: #fffbeb; color: #d97706; }
.psr-badge.paid-badge { background: #f0fdf4; color: #16a34a; }
.psr-badge.null-badge { background: #f1f5f9; color: #64748b; }

/* EMPTY STATE */
.payment-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}

.payment-empty-state .empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #d97706;
}

.payment-empty-state h3 {
  font-size: 20px;
  color: #1e293b;
  margin: 0 0 8px;
}

.payment-empty-state p {
  color: #94a3b8;
  margin: 0;
}

/* PAYMENT DASHBOARD GRID */
.payment-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ORDER INFO CARD */
.pay-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

.pay-card:nth-child(1) { animation-delay: 0.05s; }
.pay-card:nth-child(2) { animation-delay: 0.1s; }
.pay-card:nth-child(3) { animation-delay: 0.15s; }
.pay-card:nth-child(4) { animation-delay: 0.2s; }

.pay-card-header {
  padding: 18px 22px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-card-header i {
  font-size: 18px;
  color: #f59e0b;
}

.pay-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.pay-card-body {
  padding: 16px 22px 22px;
}

/* SUMMARY STATS */
.pay-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pay-stat {
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s;
}

.pay-stat:hover {
  transform: translateY(-2px);
}

.pay-stat.total-stat { background: #eff6ff; }
.pay-stat.paid-stat { background: #f0fdf4; }
.pay-stat.balance-stat { background: #fef2f2; }
.pay-stat.status-stat { background: #fffbeb; }

.pay-stat label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.pay-stat .stat-value {
  font-size: 24px;
  font-weight: 700;
}

.pay-stat.total-stat .stat-value { color: #2563eb; }
.pay-stat.paid-stat .stat-value { color: #16a34a; }
.pay-stat.balance-stat .stat-value { color: #dc2626; }

.pay-status-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pay-status-badge.ps-pending { background: #fef2f2; color: #dc2626; border: 2px solid #fecaca; }
.pay-status-badge.ps-partial { background: #fffbeb; color: #d97706; border: 2px solid #fde68a; }
.pay-status-badge.ps-paid { background: #f0fdf4; color: #16a34a; border: 2px solid #bbf7d0; }

/* ORDER DETAIL */
.pay-order-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-info-item label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.pay-info-item span {
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
}

/* PAYMENT FORM */
.pay-form-group {
  margin-bottom: 16px;
}

.pay-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.pay-form-group input,
.pay-form-group select,
.pay-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  background: #fafbfc;
  color: #1e293b;
}

.pay-form-group input:focus,
.pay-form-group select:focus,
.pay-form-group textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
  outline: none;
  background: white;
}

.pay-form-group textarea {
  height: 60px;
  resize: none;
}

.pay-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: "Poppins", sans-serif;
  margin-top: 4px;
}

.pay-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.2);
}

.pay-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pay-submit-btn i {
  margin-right: 6px;
}

/* QUICK AMOUNT BUTTONS */
.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.quick-amt-btn {
  padding: 8px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0;
}

.quick-amt-btn:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #d97706;
  transform: scale(1.0);
}

/* PAYMENT HISTORY TABLE */
.pay-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.pay-history-table thead th {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  font-weight: 600;
  border-bottom: 2px solid #f1f5f9;
}

.pay-history-table tbody tr {
  background: #f8fafc;
  border-radius: 10px;
  transition: background 0.15s;
}

.pay-history-table tbody tr:hover {
  background: #eff6ff;
}

.pay-history-table td {
  padding: 14px;
  font-size: 14px;
  color: #334155;
}

.pay-history-table td:first-child {
  border-radius: 10px 0 0 10px;
}

.pay-history-table td:last-child {
  border-radius: 0 10px 10px 0;
}

.pay-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pay-method-badge.cash { background: #f0fdf4; color: #16a34a; }
.pay-method-badge.upi { background: #eff6ff; color: #2563eb; }
.pay-method-badge.card { background: #faf5ff; color: #9333ea; }
.pay-method-badge.bank { background: #fff7ed; color: #ea580c; }
.pay-method-badge.cheque { background: #f0f9ff; color: #0284c7; }

.pay-action-btns {
  display: flex;
  gap: 6px;
}

.pay-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  margin-top: 0;

}
.pay-icon-btn.receipt-btn{
  color: cyan;
  opacity: 1;
  transition: all ease 0.8s;
}
.pay-icon-btn.delete-btn{
    color: rgb(199, 23, 23);
  opacity: 1;
   transition: all ease 0.8s;
}

.pay-icon-btn.receipt-btn:hover { background: #eff6ff; color: #2563eb; }
.pay-icon-btn.delete-btn:hover { background: #fef2f2; color: #dc2626; }

.pay-no-data {
  text-align: center;
  padding: 40px;
  color: #94a3b8;
}

.pay-no-data i {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
    color: #64748b;   /* default visible gray */
}

/* FULL WIDTH CARD */
.pay-full-width {
  grid-column: span 2;
}

/* RECEIPT MODAL */
.receipt-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.receipt-modal-overlay.active {
  display: flex;
}

.receipt-box {
  background: white;
  width: 480px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  animation: fadeUp 0.3s ease;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.receipt-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin: 0 0 4px;
  color: #0f172a;
}

.receipt-header small {
  color: #64748b;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.receipt-row b {
  color: #0f172a;
}

.receipt-divider {
  border: none;
  border-top: 1px dashed #e2e8f0;
  margin: 12px 0;
}

.receipt-grand {
  text-align: center;
  padding: 16px;
  background: #f0fdf4;
  border-radius: 12px;
  margin: 16px 0;
}

.receipt-grand h3 {
  color: #16a34a;
  font-size: 20px;
  margin: 0;
}

.receipt-footer {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  margin-top: 16px;
}

.receipt-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.receipt-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

.receipt-print-btn {
  background: #0f172a;
  color: white;
}

.receipt-close-btn {
  background: #f1f5f9;
  color: #475569;
}

/* PROGRESS BAR */
.pay-progress-wrap {
  margin-top: 16px;
}

.pay-progress-bar {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.pay-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

.pay-progress-fill.fill-pending { background: #dc2626; width: 0%; }
.pay-progress-fill.fill-partial { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pay-progress-fill.fill-paid { background: linear-gradient(90deg, #22c55e, #4ade80); width: 100%; }

.pay-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* Amount input highlight */
.amount-input-wrap {
  position: relative;
}

.amount-input-wrap input {
  padding-left: 30px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

.amount-input-wrap .currency-symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-weight: 600;
  font-size: 16px;
}


/* =========================================
   REPORTS MODULE
   ========================================= */
.reports-module { animation: fadeIn 0.4s ease; }

.rpt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.rpt-header h1 { font-family: "Playfair Display", serif; font-size: 32px; margin: 0; color: #0f172a; }
.rpt-header p { color: #64748b; margin: 4px 0 0; }
.rpt-header-actions { display: flex; gap: 10px; }

.rpt-export-dropdown { position: relative; }
.rpt-export-btn, .rpt-print-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: "Poppins", sans-serif;
  margin-top: 0;
}
.rpt-export-btn:hover, .rpt-print-btn:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #d97706;
  transform: scale(1.0);
}
.rpt-export-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  z-index: 300;
  min-width: 200px;
  overflow: hidden;
}
.rpt-export-menu.active { display: block; }
.rpt-export-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  text-decoration: none;
}
.rpt-export-menu a:hover { background: #fffbeb; color: #d97706; }

/* DATE FILTER */
.rpt-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.rpt-quick-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rpt-filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Poppins", sans-serif;
  margin-top: 0;
}
.rpt-filter-btn:hover { border-color: #cbd5e1; color: #334155; transform: scale(1.0); }
.rpt-filter-btn.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}
.rpt-custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rpt-custom-range input {
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #334155;
}
.rpt-custom-range span { color: #94a3b8; font-size: 13px; }

/* TABS */
.rpt-tabs {
  display: flex;
  gap: 4px;
  background: white;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}
.rpt-tab {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
}
.rpt-tab:hover { background: #f8fafc; color: #334155; transform: scale(1.0); }
.rpt-tab.active {
  background: #0f172a;
  color: white;
  box-shadow: 0 4px 12px rgba(15,23,42,0.15);
}

/* REPORT CARDS */
.rpt-grid { display: grid; gap: 20px; }
.rpt-grid-2 { grid-template-columns: 1fr 1fr; }
.rpt-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.rpt-grid-4 { grid-template-columns: repeat(4, 1fr); }
.rpt-full { grid-column: span 2; }

.rpt-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  overflow: hidden;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}
.rpt-card:nth-child(1) { animation-delay: 0.05s; }
.rpt-card:nth-child(2) { animation-delay: 0.1s; }
.rpt-card:nth-child(3) { animation-delay: 0.15s; }
.rpt-card:nth-child(4) { animation-delay: 0.2s; }
.rpt-card:nth-child(5) { animation-delay: 0.25s; }
.rpt-card:nth-child(6) { animation-delay: 0.3s; }

.rpt-card-head {
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rpt-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rpt-card-head h3 i { color: #f59e0b; font-size: 16px; }
.rpt-card-body { padding: 16px 20px 20px; }

/* KPI CARDS */
.rpt-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.rpt-kpi {
  background: white;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}
.rpt-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.rpt-kpi:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); animation-delay: 0.05s; }
.rpt-kpi:nth-child(2)::before { background: linear-gradient(90deg, #22c55e, #4ade80); animation-delay: 0.1s; }
.rpt-kpi:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); animation-delay: 0.15s; }
.rpt-kpi:nth-child(4)::before { background: linear-gradient(90deg, #dc2626, #f87171); animation-delay: 0.2s; }
.rpt-kpi:nth-child(5)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); animation-delay: 0.25s; }
.rpt-kpi:nth-child(6)::before { background: linear-gradient(90deg, #ec4899, #f472b6); animation-delay: 0.3s; }

.rpt-kpi:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.rpt-kpi .kpi-icon { font-size: 28px; margin-bottom: 8px; }
.rpt-kpi .kpi-value { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.rpt-kpi .kpi-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }

/* CHART CONTAINERS */
.rpt-chart-wrap { position: relative; height: 280px; width: 100%; }
.rpt-chart-wrap-sm { height: 220px; }
.rpt-chart-wrap canvas { max-height: 100%; }

/* TABLE IN REPORTS */
.rpt-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.rpt-table thead th {
  text-align: left;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  font-weight: 600;
}
.rpt-table tbody tr {
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.15s;
}
.rpt-table tbody tr:hover { background: #eff6ff; }
.rpt-table td {
  padding: 12px;
  font-size: 13px;
  color: #334155;
}
.rpt-table td:first-child { border-radius: 8px 0 0 8px; }
.rpt-table td:last-child { border-radius: 0 8px 8px 0; }

/* HEALTH SCORE */
.health-score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
}
.health-score-ring .score-num { font-size: 36px; font-weight: 800; color: #0f172a; }
.health-score-ring .score-label { font-size: 11px; color: #64748b; }

/* TREND BADGE */
.trend-up { color: #16a34a; font-weight: 600; }
.trend-down { color: #dc2626; font-weight: 600; }
.trend-stable { color: #d97706; font-weight: 600; }

/* LOADING */
.rpt-loading {
  text-align: center;
  padding: 80px 20px;
}
.rpt-loading .spinner { margin: 0 auto 16px; }

/* FORECAST CARD */
.forecast-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 10px;
}
.forecast-metric .fm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}
.forecast-metric .fm-data { flex: 1; }
.forecast-metric .fm-data .fm-label { font-size: 12px; color: #64748b; }
.forecast-metric .fm-data .fm-value { font-size: 18px; font-weight: 700; color: #0f172a; }
.forecast-metric .fm-confidence {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

/* PRINT STYLES */
@media print {
  .rpt-header-actions, .rpt-filter-bar, .rpt-tabs, .sidebar { display: none !important; }
  .reports-module { margin-left: 0 !important; }
  .rpt-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd !important; }
}

.badgess {
  padding: 5px 10px;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}

.greenn {
  background-color: #4CAF50;
}

.orangee {
  background-color: #ff9800;
}

.redd {
  background-color: #f44336;
}

/* =========================
  Expence module Design 
  ============================ */
.expense-filter-bar {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  align-items: center;
}

.expense-filter-bar input[type=\"date\"],
.expense-filter-bar select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-family: 'Poppins', sans-serif;
}

.badge.recurring {
  background: #14b8a6;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.bill-preview {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: transform 0.2s;
}

.bill-preview:hover {
  transform: scale(1.1);
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 8px;
}

.category-item.predefined {
  background: #eff6ff;
}

.category-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #f59e0b;
  color: white;
  font-weight: 600;
}


