.nc-form-wrapper {
  background: white;
  border-radius: 8px;
  padding: 32px;
  /* max-width: 800px; */
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nc-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.nc-client-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.nc-type-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.nc-type-btn:hover {
  border-color: var(--primary-color);
  background: #f8f9ff;
}

.nc-type-btn-active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.nc-type-icon {
  flex-shrink: 0;
}

.nc-type-text {
  flex: 1;
}

.nc-type-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.nc-type-sublabel {
  font-size: 12px;
  opacity: 0.8;
}

.nc-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nc-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.nc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nc-label {
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
}

.nc-required {
  color: #ef4444;
}

.nc-input,
.nc-textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}

.nc-input:focus,
.nc-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nc-textarea {
  resize: vertical;
  min-height: 100px;
}

.nc-phone-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nc-phone-input {
  flex: 1;
}

.nc-phone-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nc-phone-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.nc-phone-remove {
  color: #ef4444;
}

.nc-phone-add {
  color: #10b981;
}

.nc-dropdown {
  position: relative;
}

.nc-dropdown-btn {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 14px;
  transition: border-color 0.2s;
}

.nc-dropdown-btn:hover {
  border-color: #9ca3af;
}

.nc-dropdown-btn:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nc-dropdown.nc-dropdown-open .nc-dropdown-btn {
  border-color: var(--primary-color);
}

.nc-dropdown-value {
  flex: 1;
}

.nc-dropdown-placeholder {
  color: #9ca3af;
}

.nc-dropdown-arrow {
  transition: transform 0.2s;
  color: #6b7280;
}

.nc-dropdown.nc-dropdown-open .nc-dropdown-arrow {
  transform: rotate(180deg);
}

.nc-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.nc-dropdown.nc-dropdown-open .nc-dropdown-menu {
  display: block;
}

.nc-dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.nc-dropdown-item:hover {
  background-color: #f3f4f6;
}

.nc-dropdown-item.nc-dropdown-item-selected {
  background-color: #ede9fe;
  color: var(--primary-color);
  font-weight: 500;
}

.nc-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.nc-submit-btn {
  padding: 12px 24px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nc-submit-btn:hover {
  background: #059669;
}

.nc-submit-btn:active {
  background: #047857;
}

@media (max-width: 640px) {
  .nc-form-wrapper {
    padding: 24px 16px;
  }

  .nc-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .nc-client-type {
    grid-template-columns: 1fr;
  }

  .nc-type-btn {
    padding: 12px;
  }

  .nc-section-title {
    font-size: 16px;
  }

  .nc-phone-group {
    flex-wrap: wrap;
  }

  .nc-phone-input {
    width: 100%;
  }

  .nc-actions {
    justify-content: stretch;
  }

  .nc-submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nc-container {
    padding: 12px;
  }

  .nc-form-wrapper {
    padding: 20px 12px;
  }

  .nc-type-label {
    font-size: 13px;
  }

  .nc-type-sublabel {
    font-size: 11px;
  }
}

/* partie detail facture  */

.invoice {
  padding: 30px;
}

/* HeaderDetailFact */
.headerDetailFact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.headerDetailFact h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.actionsDetail {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-iconDetail {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.btn-iconDetail:hover {
  transform: scale(1.1);
}

.btn-iconDetail:active {
  transform: scale(0.95);
}

/* InfoDetail Section */
.infoDetail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  font-size: 14px;
}

.infoDetail-left,
.infoDetail-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.infoDetail-row {
  display: flex;
  gap: 10px;
}

.infoDetail-row .label {
  color: #999;
  min-width: 140px;
  flex-shrink: 0;
}

.infoDetail-row .value {
  color: #333;
  font-weight: 500;
}

/* Details Section */
.details-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.details-table thead {
  background-color: #f8f9fa;
}

.details-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 500;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
}

.details-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

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

.details-table td {
  padding: 12px 10px;
  color: #333;
}

.details-table th:nth-child(3),
.details-table th:nth-child(4),
.details-table th:nth-child(5),
.details-table th:nth-child(6),
.details-table td:nth-child(3),
.details-table td:nth-child(4),
.details-table td:nth-child(5),
.details-table td:nth-child(6) {
  text-align: right;
}

/* Totals */
.totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.total-row {
  display: flex;
  gap: 40px;
  align-items: center;
  font-size: 14px;
}

.total-label {
  color: #666;
  font-weight: 500;
  text-align: right;
  min-width: 100px;
}

.total-value {
  color: #333;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.total-final {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #e0e0e0;
  font-size: 15px;
}

.total-final .total-label,
.total-final .total-value {
  font-weight: 700;
  color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .invoice {
    padding: 20px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  }
  .headerDetailFact {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .actionsDetail {
    flex-wrap: wrap;
  }

  .infoDetail-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .infoDetail-row {
    flex-direction: column;
    gap: 4px;
  }

  .infoDetail-row .label {
    min-width: auto;
  }

  .details-table {
    font-size: 12px;
  }

  .details-table th,
  .details-table td {
    padding: 8px 5px;
  }

  .total-row {
    gap: 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .headerDetailFact h1 {
    font-size: 20px;
  }

  .details-section h2 {
    font-size: 18px;
  }

  .details-table {
    font-size: 11px;
  }

  .details-table th,
  .details-table td {
    padding: 6px 3px;
  }

  .btn-iconDetail svg {
    width: 18px;
    height: 18px;
  }

  .totals {
    width: 100%;
  }

  .total-row {
    width: 100%;
    justify-content: space-between;
  }
}

/* Print Styles */
@media print {
  .invoice {
    box-shadow: none;
  }

  .actionsDetail {
    display: none;
  }
}

/* pour la page de login  */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 48px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  /* width: 56px;
  height: 56px; */
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo img {
  width: auto;
  height: 80px;
  object-fit: contain;
}
.login-logo svg {
  width: 32px;
  height: 32px;
  color: white;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-main);
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--primary-color);
  background: var(--bg-white);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-input::placeholder {
  color: var(--text-main);
}

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

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  cursor: pointer;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--primary-light);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.login-btn:hover {
  background: var(--primary-light);
  color: var(--secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.login-divider span {
  padding: 0 12px;
}

.login-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.login-footer a:hover {
  color: var(--primary-light);
}

@media (max-width: 768px) {
  .login-container {
    padding: 32px 20px;
    margin: 20px;
  }

  .login-title {
    font-size: 24px;
  }
}

.adherent-form-group {
  position: relative;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
  padding-right: 2.5em;
}

.toggle-password {
  position: absolute;
  right: 0.5em;
  cursor: pointer;
  font-size: 1.2em;
  color: #555;
  user-select: none;
}

/* ---------------------------------------- */

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: var(--white);
  margin-top: 20px;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-light);
}

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

.pagination-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background-color: var(--white);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: rgba(66, 170, 255, 0.1);
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-dark);
}

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

.pagination-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background-color: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.pagination-page-btn:hover {
  background-color: rgba(66, 176, 255, 0.1);
  border-color: var(--primary-color);
}

.pagination-page-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.pagination-dots {
  padding: 0 8px;
  color: var(--text-light);
  font-size: 14px;
}
.missionCard {
  cursor: pointer;
}

/* ------------info card doc 0.... */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 285px));
  /* grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); */
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid #7f8c8d47;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
}

.card-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.presence,
.absence,
.programmer,
.passer,
.en-cours {
  color: #fff;
  padding: 10px;
  border-radius: 8px;
}
.presence {
  background-color: #0be365;
}
.absence {
  background-color: #d61a09;
}
.programmer {
  background-color: #097dd6;
}
.passer {
  background-color: #eeea03;
}
.en-cours {
  background-color: #ee8c03;
}
