.wizi_datepicker .datepicker {
  width: 350px;
  font-size: 16px;
  font-family: Roboto, sans-serif;
}

.wizi_datepicker .datepicker--nav {
  padding: 10px 4px;
}

.wizi_datepicker .datepicker--cell {
  height: 48px;
  font-weight: 300;
}

.wizi_datepicker .datepicker--day-name {
  color: #029398;
}

.wizi_datepicker .datepicker--cell.-selected- {
  background: #029398;
  color: #fff !important;
}

.wizi_datepicker .dp-note {
  width: 6px;
  height: 6px;
  bottom: 7px;
}

.wizi_datepicker_sm .datepicker {
  /*width: 350px;*/
  /*font-size: 16px;*/
  font-family: Roboto, sans-serif;
}

.wizi_datepicker_sm .datepicker--nav {
  /*padding: 10px 4px;*/
}

.wizi_datepicker_sm .datepicker--cell {
  /*height: 40px;*/
  font-weight: 300;
}

.wizi_datepicker_sm .datepicker--day-name {
  color: #029398;
}

.wizi_datepicker_sm .datepicker--cell.-selected- {
  background: #029398;
}

.wizi_datepicker_sm .dp-note {
  width: 6px;
  height: 6px;
  bottom: 7px;
}

.wizi_datepicker .datepicker--cells-months {
  height: 192px;
}

.wizi_datepicker .datepicker--cell.-current- {
  color: #029398;
}

/* ============================================
   PREAVIS PAGE STYLES
   ============================================ */

/* Stats Grid Variants */
.wz-irl-stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wz-irl-stats-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wz-irl-stats-grid-1 {
  grid-template-columns: minmax(0, 240px);
  justify-content: center;
}

/* Form Steps */
.wz-irl-form-step {
  padding-bottom: 22px;
  /* border-bottom: 1px solid #e5e7eb; */
}

.wz-irl-form-step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.wz-irl-form-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #029398;
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.wz-irl-form-step-label {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  line-height: 1.5;
  padding: 0;
}

.wz-irl-button-group-choice {
  justify-content: flex-start;
}

/* EDL Document Items */
.wz-edl-doc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wz-edl-doc-item {
  border: 1.5px dashed #d9d3ca;
  border-top-style: dashed;
  border-top-color: rgb(217, 211, 202);
  border-right-style: dashed;
  border-right-color: rgb(217, 211, 202);
  border-bottom-style: dashed;
  border-bottom-color: rgb(217, 211, 202);
  border-left-style: dashed;
  border-left-color: rgb(217, 211, 202);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s;
  position: relative;
}

.wz-edl-doc-item:hover {
  border-color: #aaa;
  background: #fafaf9;
}

.wz-edl-doc-item.wz-edl-doc-item-filled {
  border-color: #029398;
  border-style: solid;
  background: #f9fdfd;
}

.wz-edl-doc-item-icon {
  width: 36px;
  height: 36px;
  background: #f0ede8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.wz-edl-doc-item.wz-edl-doc-item-filled .wz-edl-doc-item-icon {
  color: #029398;
  background: #d9eff0;
}

.wz-edl-doc-item-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #444;
  text-align: center;
}

.wz-edl-doc-item-filename {
  font-size: 11px;
  color: #029398;
  text-align: center;
}

.wz-edl-doc-item-action {
  font-size: 11px;
  color: #aaa;
  text-align: center;
}

/* ── Retenues inline module ── */
.wz-retenues-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.wz-retenue-item {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
  position: relative;
}

.wz-retenue-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.wz-retenue-field > label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  padding: 0;
}

.wz-retenue-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1;
}

.wz-retenue-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.wz-retenue-docs-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.wz-retenue-docs-area {
  border: 1.5px dashed #d1d5db;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: border-color 0.18s;
  min-height: 40px;
}

.wz-retenue-docs-area:hover {
  border-color: #029398;
}

.wz-docs-placeholder {
  font-size: 12px;
  color: #9ca3af;
}

.wz-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: #374151;
}

.wz-doc-chip-remove {
  cursor: pointer;
  color: #9ca3af;
  margin-left: 2px;
  font-size: 11px;
  line-height: 1;
}

.wz-doc-chip-remove:hover {
  color: #dc2626;
}

.wz-doc-required-hint {
  font-size: 11px;
  color: #dc2626;
  margin-top: 4px;
}

.wz-btn-add-retenue {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed #d1d5db;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.wz-btn-add-retenue:hover {
  border-color: #029398;
  color: #029398;
  background: #f0fbfb;
}

.wz-total-retenues {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.wz-total-retenues-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.wz-total-retenues-value {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.wz-preavis-duration-note {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 16px;
}

.wz-irl-stat-icon-green {
  color: #4caf50;
  background: #e8f5e9;
}

/* Preavis Modal Styles */
.wz-preavis-modal {
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
}

.wz-preavis-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.wz-preavis-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.wz-preavis-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.wz-preavis-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.wz-preavis-modal-body {
  padding: 24px 32px;
}

.wz-preavis-modal-footer {
  padding: 20px 32px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: white;
}

/* Warning Box */
.wz-preavis-warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.wz-preavis-warning-icon {
  color: #ea580c;
  font-size: 20px;
  flex-shrink: 0;
}

.wz-preavis-warning-text {
  color: #9a3412;
  font-size: 14px;
  line-height: 1.5;
}

/* Form Styles */
.wz-preavis-form-group {
  margin-bottom: 20px;
}

.wz-preavis-form-group-half {
  flex: 1;
  min-width: 0;
}

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

.wz-preavis-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.wz-preavis-select {
  width: 100%;
  margin-top: 0;
}

/* Datepicker Wrapper */
.wz-preavis-datepicker-wrapper {
  position: relative;
  margin-top: 6px;
}

.wz-preavis-date-input {
  padding-right: 44px !important;
  cursor: pointer !important;
}

.wz-preavis-date-input[readonly] {
  cursor: pointer !important;
  background-color: white !important;
}

/* Focus styles for inputs */
.wz-preavis-modal .wizi-form-input:focus,
.wz-preavis-modal .wizi-form-select:focus {
  outline: none;
  border-color: #029398 !important;
  box-shadow: 0 0 0 3px rgba(2, 147, 152, 0.1);
}

.wz-preavis-modal .wizi-form-input {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.wz-preavis-modal .wizi-form-select {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.wz-preavis-calendar-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
}

.wz-preavis-datepicker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: none;
}

.wz-preavis-datepicker-dropdown .datepicker-inline .datepicker {
  border: none;
  box-shadow: none;
}

/* Mobile-friendly datepicker cells */
.wz-preavis-datepicker-dropdown .datepicker--cell {
  height: 44px;
  font-size: 15px;
}

.wz-preavis-datepicker-dropdown .datepicker--day-name {
  color: #029398;
  font-size: 13px;
}

.wz-preavis-datepicker-dropdown .datepicker--cell.-selected- {
  background: #029398;
}

.wz-preavis-datepicker-dropdown .datepicker--cell.-current- {
  color: #029398;
}

.wz-preavis-datepicker-dropdown .datepicker--nav {
  padding: 12px 8px;
}

/* Document Section */
.wz-preavis-document-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.wz-preavis-document-header {
  margin-bottom: 12px;
}

.wz-preavis-document-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.wz-preavis-document-title i {
  color: #029398;
  font-size: 18px;
}

.wz-preavis-document-info {
  background: white;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

.wz-preavis-document-info p {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.5;
}

.wz-preavis-document-info ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}

.wz-preavis-document-info li {
  margin-bottom: 2px;
}

/* Upload Area */
.wz-preavis-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.wz-preavis-upload-area:hover {
  border-color: #029398;
  background: #f0fafb;
}

.wz-preavis-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wz-preavis-upload-icon {
  font-size: 36px;
  color: #9ca3af;
}

.wz-preavis-upload-area:hover .wz-preavis-upload-icon {
  color: #029398;
}

.wz-preavis-upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wz-preavis-upload-text strong {
  color: #111827;
  font-size: 15px;
}

.wz-preavis-upload-text span {
  color: #9ca3af;
  font-size: 13px;
}

/* File List */
.wz-preavis-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wz-preavis-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #029398;
}

.wz-preavis-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.wz-preavis-file-icon {
  font-size: 24px;
  color: #dc2626;
  flex-shrink: 0;
}

.wz-preavis-file-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wz-preavis-file-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wz-preavis-file-size {
  font-size: 12px;
  color: #9ca3af;
}

.wz-preavis-remove-file-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.wz-preavis-remove-file-btn:hover {
  background: #dc2626;
  color: white;
}

.wz-preavis-add-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #029398;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.wz-preavis-add-more-link:hover {
  color: #027a7e;
  text-decoration: underline;
}

/* Address Section */
.wz-preavis-address-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.wz-preavis-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.wz-preavis-section-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .wz-irl-stats-grid-3 {
    grid-template-columns: 1fr;
  }

  .wz-irl-stats-grid-2 {
    grid-template-columns: 1fr;
  }

  .wz-preavis-modal {
    margin: 0;
    max-height: 100vh;
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .wz-preavis-modal-body {
    flex: 1;
    overflow-y: auto;
  }

  .wz-preavis-modal-header {
    padding: 20px;
  }

  .wz-preavis-modal-header h2 {
    font-size: 18px;
  }

  .wz-preavis-modal-body {
    padding: 20px;
  }

  .wz-preavis-modal-footer {
    padding: 16px 20px;
    flex-direction: column-reverse;
  }

  .wz-preavis-modal-footer .wz-irl-button {
    width: 100%;
  }

  .wz-preavis-form-row {
    flex-direction: column;
    gap: 0;
  }

  .wz-preavis-datepicker-dropdown {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
  }

  .wz-preavis-datepicker-dropdown .datepicker--cell {
    height: 48px;
    font-size: 16px;
  }

  .wz-preavis-upload-area {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .wz-irl-stat-value {
    font-size: 18px;
  }

  .wz-preavis-warning-box {
    flex-direction: column;
    gap: 8px;
  }
}
