* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Cambria' !important;
  src: url('../public/fonts/Cambria.woff2') format('woff2'),
    url('../public/fonts/Cambria.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {

  font-family: 'Cambria' !important;
  min-height: 100vh;
  background: url("https://images.pexels.com/photos/3418586/pexels-photo-3418586.jpeg?auto=compress&cs=tinysrgb&w=1600") center/cover no-repeat;
  position: relative;
  color: #1f2933;
}

body.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(18, 53, 36, 0.95), rgba(12, 83, 52, 0.9)),
    url("https://images.pexels.com/photos/3418586/pexels-photo-3418586.jpeg?auto=compress&cs=tinysrgb&w=1600") center/cover no-repeat;
}

.bg-blur {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.pattern-overlay {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.2) 0, transparent 55%),
    radial-gradient(circle at 100% 100%,
      rgba(56, 239, 125, 0.25) 0,
      transparent 55%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  opacity: 0.9;
  z-index: -1;
}

.top-header {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

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

.user-info {
  font-size: 16px;
  color: #374151;
}

.user-info span {
  font-weight: 600;
}

.user-info a {
  margin-left: 16px;
  color: #111827;
  font-weight: 500;
  text-decoration: none;
}

.menu-bar {
  height: 55px;
  background: #4caf50;
  display: flex;
  align-items: center;
  padding: 0 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  overflow-x: auto;
}

.menu-bar a {
  text-decoration: none;
}

.menu-item {
  background: #66bb6a;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 14px;
  margin-right: 2px;
  cursor: pointer;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.menu-item:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.menu-item:last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-right: none;
}

.menu-item:hover {
  background: #81c784;
}

.menu-item.active {
  background: #2e7d32;
}

.content-wrap {
  padding: 20px 40px 40px;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 4px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
  border: 1px solid #d1d5db;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.topbar-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.btn {
  border: none;
  outline: none;
  padding: 7px 12px;
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
  background: #4caf50;
  color: #ffffff;
}

.btn:hover {
  background: #43a047;
}

.layout-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: 8px;
}

.search-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
}

.select-sm {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

thead {
  background: #e8f5e9;
}

th,
td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  font-weight: 600;
  /* color: #374151; */
}

tr:nth-child(even) td {
  background: #fafafa;
}

tr:hover td {
  background: #f0f7ff;
}

.pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.pill-green {
  background: #c8e6c9;
  color: #1b5e20;
}

.pill-gray {
  background: #eeeeee;
  color: #424242;
}

.actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  font-size: 11px;
}

.action-btn {
  border: none;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
}

.action-edit {
  background: #e3f2fd;
  color: #0d47a1;
}

.action-clone {
  background: #fff9c4;
  color: #f57f17;
}

.action-deactivate {
  background: #ffcdd2;
  color: #b71c1c;
}

.action-activate {
  background: #c8e6c9;
  color: #1b5e20;
}

.action-btn:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.table-footer {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  background: #ffffff;
}

.page-btn.active {
  background: #4caf50;
  color: #ffffff;
  border-color: #4caf50;
}

#pageNumbers {
  display: flex;
  gap: 4px;
}

/* Login-specific styles */
.login-wrapper {
  width: 100%;
  max-width: 500px;
  background: rgba(248, 250, 252, 0.96);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 26px 28px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.login-title {
  font-size: 19px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

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

.password-box {
  position: relative;
}

.password-box .input {
  padding-right: 40px;
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 30px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin-bottom: 4px;
}

.input.input-error {
  border: 1px solid red;
}

.error-msg {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}

.input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: all 0.18s ease;
}

.input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 14px;
}

.row-between label {
  font-weight: 400;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.row-between a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.row-between a:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.55);
  transition: all 0.18s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.7);
}

.footer-text {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 500px) {
  .login-wrapper {
    margin: 0 16px;
    padding: 22px 20px 18px;
  }
}

/*--------------------------mster work add service pop up css start here---------------------------------------

       /* Wrapper and header */
.msl-add-service-wrapper {
  padding: 20px 22px;
  background-color: #f7faf7;
  border-radius: 12px;
  border: 1px solid #e0e6e0;
}

.msl-popup-header {
  background: #e3f3e4;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.msl-popup-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #1f3b1f;
}

.msl-popup-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
}

/* Form layout */
.msl-add-service-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msl-form-row {
  display: flex;
  gap: 16px;
}

.msl-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Labels */
.msl-form-group label {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 4px;
}

/* Inputs & selects */
.msl-form-group input,
.msl-form-group select {
  height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  font-size: 13px;
  color: #111827;
  background-color: #ffffff;
  outline: none;
}

/* Prefix / suffix inputs */
.msl-input-with-prefix,
.msl-input-with-suffix {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  overflow: hidden;
}

.msl-input-with-prefix input,
.msl-input-with-suffix input {
  border: none;
  flex: 1;
  height: 32px;
  padding: 6px 10px;
}

.msl-prefix,
.msl-suffix {
  padding: 0 10px;
  font-size: 13px;
  color: #6b7280;
  background-color: #f3f4f6;
}

/* Focus state */
.msl-form-group input:focus,
.msl-form-group select:focus,
.msl-input-with-prefix:focus-within,
.msl-input-with-suffix:focus-within {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18);
}

/* Buttons */
.msl-form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.msl-btn-primary,
.msl-btn-secondary {
  min-width: 110px;
  height: 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

/* Primary = green */
.msl-btn-primary {
  background-color: #22c55e;
  color: #ffffff;
}

.msl-btn-primary:hover {
  background-color: #16a34a;
}

/* Secondary */
.msl-btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
}

.msl-btn-secondary:hover {
  background-color: #d1d5db;
}

/* Responsive */
@media (max-width: 640px) {
  .msl-form-row {
    flex-direction: column;
  }
}

/* --------------------------add company master list popup css starts here---------------------------------- */

/* Wrapper */
.cmg-shell {
  width: 100%;
  max-width: 100%;
}

/* Header (logo text + title) */
.cmg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 12px;
  max-width: 900px;
  color: #e9f7ee;
}

.cmg-header__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%,
      #e8fff3 0%,
      #2ecc71 40%,
      #168f4a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #064420;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.cmg-header__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.cmg-header__title span {
  font-weight: 400;
  opacity: 0.9;
}

.cmg-card {
  max-width: 900px;
  margin: 0 auto;
  background: #f9fafb;
  border-radius: 18px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
  padding: 24px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* Section label */
.cmg-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

/* Form layout */
.cmg-form {
  margin: 0;
}

.cmg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.cmg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmg-field--full {
  grid-column: 1 / -1;
}

/* Labels */
.cmg-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.cmg-required {
  color: #dc2626;
}

.cmg-help-text {
  margin: 4px 0 0;
  font-size: 11px;
  color: #6b7280;
}

.maxheight {
  max-height: 60px;
}

.cmg-input,
.cmg-select,
.cmg-textarea {
  width: 100%;

  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 9px 12px;
  font-size: 13px;
  color: #111827;
  background-color: #ffffff;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease;
}

.cmg-textarea {
  border-radius: 12px;
  min-height: 72px;
  resize: vertical;
}

.cmg-input::placeholder,
.cmg-textarea::placeholder {
  color: #9ca3af;
}

.cmg-input:focus,
.cmg-select:focus,
.cmg-textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.35);
}

/* Custom select arrow */
.cmg-select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 3px),
    calc(100% - 9px) calc(50% - 3px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

/* Branches block */
.cmg-branches {
  background: #edf5f0;
  border-radius: 14px;
  border: 1px solid #d1fae5;
  padding: 10px 12px;
}

.cmg-branches__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #064e3b;
}

.cmg-branches__item {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.cmg-branches__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.cmg-branches__field {
  flex: 0 0 calc(50% - 6px);
}

.cmg-branches__field .cmg-input {
  width: 100%;
}

.cmg-branches__item-actions {
  display: flex;
  align-items: center;
}

.cmg-branches__title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.cmg-branches__subtitle {
  font-size: 12px;
  color: #6b7280;
}

.cmg-branches__actions {
  display: flex;
  gap: 6px;
}

/* Upload */
.cmg-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cmg-upload__input {
  display: none;
}

.cmg-upload__text {
  font-size: 12px;
  color: #6b7280;
}

/* Buttons – green primary like login page */
.cmg-btn {
  border-radius: 999px;
  border: none;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.cmg-btn--primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(5, 122, 85, 0.45);
}

.cmg-btn--primary:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  transform: translateY(-1px);
}

.cmg-btn--ghost {
  background: #e5e7eb;
  color: #374151;
}

.cmg-btn--ghost:hover {
  background: #d1d5db;
}

.cmg-btn--outline {
  background: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
  padding-inline: 10px;
}

.cmg-btn--outline:hover {
  background: #e5e7eb;
}

.cmg-btn--danger {
  background: #ef4444;
  color: #ffffff;
  padding-inline: 10px;
}

.cmg-btn--danger:hover {
  background: #dc2626;
}

.cmg-btn--small {
  padding: 6px 12px;
  font-size: 12px;
}

.cmg-btn--tiny {
  padding: 4px 10px;
  font-size: 11px;
}

/* Footer bar */
.cmg-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .cmg-body {
    padding: 24px 12px;
    align-items: stretch;
  }

  .cmg-card {
    padding: 18px 16px 18px;
    border-radius: 14px;
  }

  .cmg-grid {
    grid-template-columns: 1fr;
  }

  .cmg-header {
    justify-content: center;
    text-align: center;
  }
}

.cmg-branches {
  background: #f5fbf7;
  border-radius: 8px;
  padding: 12px 16px;
}

.cmg-branches__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cmg-branches__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e6ea;
}

.cmg-branches__item-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmg-branches__row .cmg-input,
.cmg-branches__row .cmg-textarea {
  width: 100%;
  height: 40px;
}

.cmg-branches__title-input {
  height: 38px;
}

.cmg-branches__subtitle-input {
  min-height: 60px;
}

.cmg-branches__item-actions {
  display: flex;
  align-items: center;
}

.cmg-branches__item-actions .cmg-btn--danger {
  border-radius: 999px;
  padding: 4px 14px;
}

/* ------------------------------------add company master service list services popup css ends here---------- */

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  padding: 1rem 1rem;
  margin: -1rem -1rem -1rem auto;
  background-color: transparent;
  border: 0;
}

/*add client master css----------------*/

.clientm * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Cambria' !important;
}

.clientm {
  padding: 30px;
}

.clientm .modal {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.12);
  padding: 24px 28px 20px;
}

.clientm .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.clientm .modal-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111827;
}

.clientm .close-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
}

.clientm .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.clientm .form-row-full {
  grid-column: 1 / -1;
}

.clientm label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.clientm label span.req {
  color: #ef4444;
}

.clientm .input,
.clientm .select,
.clientm .textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  background: #fff;
}

.clientm .textarea {
  border-radius: 8px;
  min-height: 60px;
  resize: vertical;
}

.clientm .input:focus,
.clientm .select:focus,
.clientm .textarea:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.clientm .muted {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
}

.clientm .input-group {
  display: flex;
  gap: 8px;
}

.clientm .file-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clientm .file-input input[type="file"] {
  display: none;
}

.clientm .btn-upload {
  padding: 7px 14px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  background: #16a34a;
  color: #fff;
  font-weight: 500;
}

.clientm .btn-sm {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.clientm .btn-add-contact {
  background: #16a34a;
  color: #fff;
}

.clientm .footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.clientm .btn {
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.clientm .btn-cancel {
  background: #e5e7eb;
  color: #374151;
}

.clientm .btn-primary {
  background: #16a34a;
  color: #fff;
}

/* add client view css here */
.client-view-modal {
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.9rem;
}

.client-view-header {
  background: #28a745;
  color: #fff;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.client-view-header small {
  opacity: 0.8;
}

.font-weight-600 {
  font-weight: 600;
}

/* content blocks */
.cv-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}

.cv-block-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* single row (label + value) */
.cv-row {
  display: flex;
  align-items: flex-start;
  padding: 0.15rem 0;
}

.cv-label {
  flex: 0 0 42%;
  max-width: 42%;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.cv-value {
  flex: 1;
  font-size: 0.88rem;
  color: #111827;
}

.cv-row-multiline .cv-value {
  white-space: normal;
}

/* small screens: stack label above value */
@media (max-width: 575.98px) {
  .modal-dialog.modal-xl {
    margin: 0.5rem;
  }

  .cv-row {
    flex-direction: column;
  }

  .cv-label {
    max-width: 100%;
    margin-bottom: 0.15rem;
  }

  .cv-block {
    padding: 0.7rem 0.75rem;
  }
}

/* add css tootgle */
.toggle {
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background-color: #28a745;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.toggle-circle {
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 24px;
  transition: left 0.2s ease;
}

.toggle.inactive {
  background-color: #ccc;
}

.toggle.inactive .toggle-circle {
  left: 2px;
}

#statusText {
  display: none;
  margin-top: 4px;
  font-family: 'Cambria' !important;
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.toggle:hover+#statusText {
  display: block;
}

/* ----------------------------------invoice page css----------------------------------------------*/
.invoiceM-containerr {
  padding: 20px 20px 40px;
  max-width: 100%;
  margin: 0 auto;
  background: #f5f5f5;
}

.invoiceM-toolbar {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.invoiceM-toolbar-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  font-family: 'Cambria' !important;
}

.invoiceM-toolbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.invoiceM-search-input {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  font-family: 'Cambria' !important;
}

.invoiceM-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Cambria' !important;
}

.invoiceM-btn-search {
  background: #28a745;
}

.invoiceM-btn-reset {
  background: #ff9800;
}

.invoiceM-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Table Styles */
.invoiceM-table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.invoiceM-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.invoiceM-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Cambria' !important;
}

.invoiceM-table th {
  background: rgba(40, 167, 69, 0.05);

  padding: 0.8rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #e0e6ed;
  position: sticky;
  top: 0;
  z-index: 10;
}

.invoiceM-table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid #e0e6ed;
  font-size: 13.5px;
  vertical-align: middle;
  color: #333;
}

.invoiceM-table tbody tr:hover {
  background: rgba(40, 167, 69, 0.02);
}

.invoiceM-sno {
  width: 70px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.invoiceM-client-name {
  font-weight: 500;
  padding-left: 0.25rem;
}

.invoiceM-actions {
  width: 420px;
  padding-right: 0.25rem;
  text-align: right;
}

.invoiceM-action-group {
  display: flex;
  gap: 0.3rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.invoiceM-action-group a {
  text-decoration: none;
}

.invoiceM-action-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 500;
  color: white;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1;
  min-width: 90px;
  justify-content: center;
  font-family: 'Cambria' !important;
}

.invoiceM-btn-manage {
  background: #28a745;
}

.invoiceM-btn-generate {
  background: #20c997;
}

.invoiceM-btn-list {
  background: #218838;
}

.invoiceM-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Mobile Responsive - Self-contained */
@media (max-width: 768px) {
  .invoiceM-containerr {
    padding: 15px 10px 30px;
  }

  .invoiceM-toolbar {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
  }

  .invoiceM-toolbar-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .invoiceM-search-input {
    width: 100% !important;
    min-width: auto;
    margin-bottom: 0.5rem;
  }

  .invoiceM-btn {
    width: 100%;
  }

  .invoiceM-table-container {
    border-radius: 6px;
  }

  .invoiceM-table th,
  .invoiceM-table td {
    padding: 0.6rem 0.5rem;
    font-size: 13px;
  }

  .invoiceM-sno {
    width: 60px;
    min-width: 60px;
  }

  .invoiceM-actions {
    width: 300px !important;
    min-width: 300px;
    padding-right: 0;
  }

  .invoiceM-action-group {
    gap: 0.25rem;
  }

  .invoiceM-action-btn {
    padding: 0.4rem 0.6rem;
    font-size: 11px;
    min-width: 85px;
  }
}

@media (max-width: 480px) {
  .invoiceM-containerr {
    padding: 10px 5px 20px;
  }

  .invoiceM-toolbar-title {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .invoiceM-table {
    min-width: 650px;
  }

  .invoiceM-table th,
  .invoiceM-table td {
    padding: 0.55rem 0.4rem;
    font-size: 12.5px;
  }

  .invoiceM-action-group {
    gap: 0.2rem;
  }

  .invoiceM-action-btn {
    font-size: 10.5px;
    padding: 0.35rem 0.45rem;
    min-width: 75px;
    gap: 0.15rem;
  }
}

/*----------------------------------manage invoice page css-------------------------------------------------*/

.Minvoice-wrapper {
  padding: 20px 20px 40px;
}

/* Header bar */
.Minvoice-header {
  background: #0a6fb5;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 600;
}

/* Top action buttons */
.Minvoice-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px 5px;
}

.Minvoice-btn {
  border: none;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.Minvoice-btn-green {
  background: #10a64a;
}

.Minvoice-btn-green:hover {
  background: #0b7a36;
}

.Minvoice-btn-primary {
  background: #0a6fb5;
}

.Minvoice-btn-primary:hover {
  background: #075588;
}

.Minvoice-btn-warning {
  background: #f39c12;
}

/* Filter row */
.Minvoice-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 5px 20px 15px;
}

.Minvoice-filter-group {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.Minvoice-filter-group label {
  margin-bottom: 2px;
  color: #777777;
}

.Minvoice-filter-row select,
.Minvoice-filter-row input[type="date"],
.Minvoice-filter-row input[type="text"] {
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #dcdcdc;
  min-width: 150px;
  font-size: 13px;
}

.Minvoice-filter-buttons {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.Minvoice-btn-search {
  background: #0a6fb5;
}

.Minvoice-btn-reset {
  background: #f39c12;
}

/* Table */
.Minvoice-table-wrapper {
  padding: 0 10px 20px;
  overflow-x: auto;
}

.Minvoice-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: #f4f6f9;
}

.Minvoice-table thead {
  background: #005b8f;
  color: #ffffff;
}

.Minvoice-table th,
.Minvoice-table td {
  padding: 10px;
  font-size: 13px;
  border-right: 1px solid #ffffff;
  vertical-align: top;
}

.Minvoice-table th:last-child,
.Minvoice-table td:last-child {
  border-right: none;
}

.Minvoice-table th {
  text-align: left;
}

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

.Minvoice-opening-row {
  background: #e6f2fb;
  font-weight: 600;
}

.Minvoice-opening-label {
  font-weight: 700;
}

.Minvoice-works-text {
  line-height: 1.4;
}

.Minvoice-text-right {
  text-align: right;
}

.Minvoice-text-center {
  text-align: center;
}

/* Total row */
.Minvoice-total-row {
  background: #f5f5f5;
  font-weight: 600;
}

.Minvoice-closing-balance {
  color: #c0392b;
  font-weight: 700;
}

.Minvoice-amount-bold {
  font-weight: 700;
  font-size: 14px;
}

/* Pagination */
.Minvoice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px 0 20px;
}

.Minvoice-pagination button {
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.Minvoice-pagination button.Minvoice-active {
  background: #0a6fb5;
  color: #ffffff;
  border-color: #0a6fb5;
}

/* Search input for company selection */
.Gvoice-search-input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .Minvoice-top-actions {
    justify-content: center;
  }

  .Minvoice-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .Minvoice-filter-buttons {
    margin-left: 0;
    align-self: stretch;
    justify-content: flex-start;
  }

  .Minvoice-filter-row select,
  .Minvoice-filter-row input[type="date"],
  .Minvoice-filter-row input[type="text"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .Minvoice-header {
    font-size: 16px;
    text-align: center;
  }

  .Minvoice-btn {
    width: 100%;
    text-align: center;
  }

  .Minvoice-top-actions {
    padding-inline: 10px;
  }

  .Minvoice-table-wrapper {
    padding-inline: 0;
  }
}

/*-----------------------------------Genrate Invoice Modal css--------------------------------------------*/

.Gvoice-wrapper {
  /* max-width: 1200px;
  margin: 0 auto;
  background: #ffffff; */
  /* min-height: 100vh;
  padding: 15px 20px 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.Gvoice-title {
  font-size: 22px;
  font-weight: 600;
  color: #e26537;
  /* orange heading */
  margin-bottom: 20px;
}

.Gvoice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 15px;
}

.Gvoice-label {
  font-size: 14px;
  margin-right: 10px;
}

.Gvoice-label .Gvoice-required {
  color: #ff0000;
}

.Gvoice-select {
  min-width: 260px;
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #cccccc;
  font-size: 14px;
}

/* Section headings */
.Gvoice-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

/* Box for list (works, companies, tax) */
.Gvoice-box {
  border: 1px solid #e0e0e0;
  background: #fbfbfb;
  padding: 10px 15px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.Gvoice-option-row {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.Gvoice-option-row input[type="checkbox"],
.Gvoice-option-row input[type="radio"] {
  margin-right: 8px;
}

.Gvoice-option-text {
  flex: 1;
  white-space: normal;
}

.Gvoice-option-status {
  margin-left: 10px;
  color: #555555;
}

/* Buttons bottom */
.Gvoice-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.Gvoice-btn {
  border: none;
  border-radius: 3px;
  padding: 8px 22px;
  font-size: 14px;
  cursor: pointer;
  color: #ffffff;
}

.Gvoice-btn-success {
  background: #1f9d45;
}

.Gvoice-btn-success:hover {
  background: #167536;
}

.Gvoice-btn-danger {
  background: #e74c3c;

}

.Gvoice-btn-danger:hover {
  background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
  .Gvoice-wrapper {
    padding: 10px 12px 20px;
  }

  .Gvoice-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .Gvoice-select {
    width: 100%;
    margin-top: 5px;
  }
}

/*----------------------------------------------invoice preview css --------------------------------------*/

.invoiceM-containerr {
  width: 95%;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #cfd8dc;
  font-family: 'Cambria' !important;
  font-size: 13px;
}

.inv-header-main {
  background: #083f5b;
  color: #fff;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inv-title-main {
  margin: 0;
  font-size: 18px;
}

.inv-back-btn-main {
  background: #8bc34a;
  border: none;
  padding: 6px 14px;
  font-weight: bold;
  cursor: pointer;
}

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

.invoiceM-containerr hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

.invoice-title-bar {
  text-align: center;
  font-weight: bold;
  background: #000;
  color: #fff;
  padding: 6px;
  margin-bottom: 10px;
}

.invoice-table th {
  background: #0b5c7d;
  color: #fff;
  padding: 8px;
  border: 1px solid #ccc;
}

.invoice-table td {
  padding: 8px;
  border: 1px solid #ccc;
}

.invoice-table input,
textarea {
  width: 100%;
  padding: 6px;
  border: 1px solid #bbb;
  box-sizing: border-box;
}

.section-row td {
  background: #0b5c7d;
  color: #fff;
  font-weight: bold;
}

.light-row td {
  background: #e9f5fb;
}

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

.bank-details {
  background: #eaf6fb;
  padding: 12px;
  margin-top: 10px;
}

.Gvoice-btn {
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.Gvoice-btn-success {
  background: #4caf50;
  color: #fff;
}

.Gvoice-btn-danger {
  background: #f44336;
  color: #fff;

}

@media print {

  .inv-back-btn-main,
  .Gvoice-btn {
    display: none;
  }

  .invoiceM-containerr {
    border: none;
    width: 100%;
  }
}

/*-------------------------------------Debit Note Css ----------------------------------------*/
.debitP {
  /* background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 100%; */
}

.debitP .header {
  color: #f05a28;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 15px;
  border-bottom: 1px dotted #ccc;
}

.debitP .content {
  padding: 15px;
}

.debitP .title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
}

.debitP .radio-box {
  border: 1px solid #ccc;
  padding: 15px;
  background: #fafafa;
}

.debitP .radio-box label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.debitP .buttons {
  margin-top: 15px;
}

.debitP .btn {
  border: none;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  border-radius: 2px;
}

.debitP .btn-proceed {
  background-color: #5cb85c;
}

.debitP .btn-cancel {
  background-color: #d9534f;
  margin-left: 10px;
}

.debitP .btn:hover {
  opacity: 0.9;
}

/*---------------------------------------Genrate ReciptNote popup Css here-----------------------------*/

/* .reciptnote {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  width: 100%;
} */

.reciptnote .header {
  padding: 10px 15px;
  font-size: 20px;
  font-weight: bold;
  color: #f05a28;
  border-bottom: 1px dotted #ccc;
  position: relative;
}

.reciptnote .add-btn {
  position: absolute;
  right: 15px;
  top: 8px;
  background: #6fb64a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.reciptnote table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.reciptnote thead th {
  background: #0b5d7d;
  color: #fff;
  font-size: 14px;
  padding: 10px;
  border-right: 1px solid #fff;
  text-align: left;
}

.reciptnote thead th:last-child {
  border-right: none;
  text-align: center;
}

.reciptnote tbody td {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #eee;
  color: #555;
}

.reciptnote tbody tr:nth-child(odd) {
  background: #eaf6fb;
}

.reciptnote tbody tr:nth-child(even) {
  background: #ffffff;
}

.reciptnote .amount {
  text-align: right;
}

.reciptnote .action {
  text-align: center;
  white-space: nowrap;
}

.reciptnote .action i {
  cursor: pointer;
  font-size: 16px;
  margin: 0 6px;
}

.reciptnote .action .fa-pen-to-square {
  color: #1e88e5;
}

.reciptnote .action .fa-trash {
  color: #e53935;
}

/*-----------------------------add recipt note in popup css----------------------------------*/

/* ===== MAIN CONTAINER ===== */
.receiptnote-container {
  width: 95%;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #999;
  font-family: 'Cambria' !important;
  font-size: 13px;
  color: #000;
}

/* ===== TOP HEADER ===== */
.receiptnote-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

.receiptnote-company-name {
  font-size: 20px;
  font-weight: bold;
}

.receiptnote-company-sub {
  margin-top: 5px;
  font-weight: bold;
}

.receiptnote-address {
  text-align: right;
  line-height: 1.6;
}

/* ===== TITLE BAR ===== */
.receiptnote-title {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 20px;
  padding: 8px 0;
}

/* ===== TABLE ===== */
.receiptnote-table {
  width: 100%;
  border-collapse: collapse;
}

.receiptnote-table td {
  border: 1px solid #ccc;
  padding: 8px;
  vertical-align: middle;
}

.receiptnote-light {
  background: #eaf4f9;
}

.receiptnote-label {
  width: 18%;
  font-weight: bold;
}

/* ===== INPUTS ===== */
.receiptnote-input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.receiptnote-inline-input {
  width: 120px;
  padding: 5px;
  border: 1px solid #aaa;
}

/* ===== SELECT ===== */
.receiptnote-select {
  padding: 6px;
  width: 200px;
}

/* ===== TEXT SECTION ===== */
.receiptnote-text {
  padding: 10px;
  background: #eaf4f9;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.receiptnote-footer {
  text-align: center;
  padding: 10px;
}

/* ===== BUTTONS ===== */
.receiptnote-buttons {
  text-align: center;
  padding: 15px;
}

.receiptnote-btn {
  padding: 7px 20px;
  border-radius: 20px;
  border: 1px solid #777;
  margin: 0 5px;
  cursor: pointer;
}

.receiptnote-btn-submit {
  background: #555;
  color: #fff;
}

.receiptnote-btn-cancel,
.receiptnote-btn-preview {
  background: #eee;
}

/*--------------------------------------Recipt Note Preview Css---------------------------------------------------------*/

.receipt-wrapper {
  font-family: 'Cambria' !important;
  border: 1px solid #000;
  background: #fff;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 13px;
}

.company-left h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.company-left span {
  font-size: 13px;
  font-style: italic;
}

.company-right {
  text-align: right;
  line-height: 1.4;
}

.receipt-title {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 18px;
  padding: 8px;
  font-weight: 600;
}

.receipt-body {
  font-size: 13px;
}

.receipt-row {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.receipt-row.light {
  background: #eaf4f8;
}

.label {
  width: 150px;
  padding: 10px;
  font-weight: 600;
}

.value {
  flex: 1;
  padding: 10px;
}

.receipt-footer {
  text-align: center;
  font-size: 12px;
  padding: 12px;
}