#CloseModal,
#CloseModal * {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


.card {
  width: 100%;
  max-width: 750px;
  background-color: white;
  // border: 1px solid #e5e7eb;
  // border: 6px solid red;
  border-radius: 0.7rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

  padding: 2.5rem 3.5rem 2.5rem 3.5rem;
  /* top, right, bottom, left */
  // margin-top: -20px;



}

// Target gb-input components
gb-input {
  // Direct component targeting
  border-radius: 6px !important;

  // Angular Material form field container
  ::ng-deep .mat-mdc-form-field {
    border-radius: 6px !important;
  }

  // Input container
  ::ng-deep .mat-mdc-form-field-flex {
    border-radius: 6px !important;
  }

  // Actual input element
  ::ng-deep .mdc-text-field__input {
    border-radius: 6px !important;
  }

  // Outlined variant
  ::ng-deep .mdc-text-field--outlined {
    border-radius: 6px !important;
  }

  // Filled variant
  ::ng-deep .mdc-text-field--filled {
    border-radius: 6px !important;
  }

  // Notch outline
  ::ng-deep .mdc-notched-outline {
    border-radius: 6px !important;
  }

  // Notch outline leading/trailing
  ::ng-deep .mdc-notched-outline__leading,
  ::ng-deep .mdc-notched-outline__trailing {
    border-radius: 6px !important;
  }

  // Blue border on focus - using multiple selectors for better compatibility
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline {
    border-color: #3b82f6 !important;
  }

  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__trailing,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__trailing {
    border-color: #3b82f6 !important;
    border-width: 6px !important;
  }
}

// Target gb-newpicklist components
gb-newpicklist {
  // Direct component targeting
  border-radius: 6px !important;

  // Angular Material form field container
  ::ng-deep .mat-mdc-form-field {
    border-radius: 6px !important;
  }

  // Input container
  ::ng-deep .mat-mdc-form-field-flex {
    border-radius: 6px !important;
  }

  // Actual input element
  ::ng-deep .mdc-text-field__input {
    border-radius: 6px !important;
  }

  // Outlined variant
  ::ng-deep .mdc-text-field--outlined {
    border-radius: 6px !important;
  }

  // Filled variant
  ::ng-deep .mdc-text-field--filled {
    border-radius: 6px !important;
  }

  // Notch outline
  ::ng-deep .mdc-notched-outline {
    border-radius: 6px !important;
  }

  // Notch outline leading/trailing
  ::ng-deep .mdc-notched-outline__leading,
  ::ng-deep .mdc-notched-outline__trailing {
    border-radius: 6px !important;
  }

  // Blue border on focus - using multiple selectors for better compatibility
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline {
    border-color: #3b82f6 !important;
  }

  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__trailing,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__trailing {
    border-color: #3b82f6 !important;
    border-width: 6px !important;
  }


}

::ng-deep .mat-mdc-form-field.mat-focused .mdc-text-field {
  border-color: blue !important;
  // border-color: hsl(var(--primary))!important;
}

// Target gb-textarea components
gb-textarea {
  // Direct component targeting
  border-radius: 6px !important;

  // Angular Material form field container
  ::ng-deep .mat-mdc-form-field {
    border-radius: 6px !important;
  }

  // Textarea container
  ::ng-deep .mat-mdc-form-field-flex {
    border-radius: 6px !important;
  }

  // Actual textarea element
  ::ng-deep textarea {
    border-radius: 6px !important;
  }

  // Outlined variant
  ::ng-deep .mdc-text-field--outlined {
    border-radius: 6px !important;
  }

  // Filled variant
  ::ng-deep .mdc-text-field--filled {
    border-radius: 6px !important;
  }

  // Notch outline
  ::ng-deep .mdc-notched-outline {
    border-radius: 6px !important;
  }

  // Notch outline leading/trailing
  ::ng-deep .mdc-notched-outline__leading,
  ::ng-deep .mdc-notched-outline__trailing {
    border-radius: 6px !important;
  }

  // Blue border on focus - using multiple selectors for better compatibility
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline {
    border-color: #3b82f6 !important;
  }

  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__trailing,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__trailing {
    border-color: #3b82f6 !important;
    border-width: 6px !important;
  }
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
}


.button-container {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  /* Equivalent to Tailwind's gap-2 */
  margin-top: 1.5rem;
  margin-right: 1rem;
}

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  /* 6px */
  font-size: 0.875rem;
  /* 14px */
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Outline button (Cancel) */
.btn-outline {
  background-color: transparent;
  color: #374151;
  /* gray-700 */
  border: 1px solid #d1d5db;
  /* gray-300 */
}

.btn-outline:hover {
  background-color: #f9fafb;
  /* gray-50 */
}

/* Primary button (Create Ticket) */
.btn-primary {
  background-color: #3b82f6;
  /* blue-500 */
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover:not(:disabled) {
  // background-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-top: -10px;
  /* tighter spacing */
  margin-bottom: 0.5rem;
  /* no gap below */
  line-height: 1.3;
  /* compact text */
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.picklist-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-top: -10px;
  /* tighter spacing */
  // margin-bottom: 0.75rem;
  /* no gap below */
  line-height: 1.3;
  margin-bottom: 1rem;
  /* compact text */
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
}


//Ticket Closes Lightbox
.modal-overlay {
  position: fixed;
  inset: 0;
  /* top:0 right:0 bottom:0 left:0 */
  display: none;
  /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  /* black with opacity */
  padding: 1rem;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
  /* show when .open is added */
}

/* === Modal Box === */
.modal {
  background: #ffffff;
  /* white card */
  border-radius: 1rem;
  /* 16px rounded corners */
  padding: 1.5rem;
  /* 24px padding */
  width: 100%;
  max-width: 700px;
  /* same as Tailwind max-w-lg */
  // box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  /* stronger shadow */
}

/* === Header === */
.modal-title {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  color: #16a34a;
  /* green-600 */
}

.modal-description {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  /* 14px */
  color: #6b7280;
  /* gray-500 */
}

/* === Ticket Card === */
.ticket-card {
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  /* gray-200 */
  border-radius: 0.50rem;
  background: #fdfdfd;
  /* gray-50 */
  overflow: hidden;
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.ticket-title {
  font-size: 1rem;
  font-weight: 600;
}

.ticket-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  /* 12px */
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
}

.ticket-card-body {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 1rem;
}

/* === Badges === */
.badge-secondary {
  background: #1e40af;
  /* blue-100 */
  color: #dbeafe;
  /* blue-800 */
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.badge-success {
  background: #166534;
  /* green-100 */
  color: #dcfce7;
  /* green-800 */
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

/* === Form === */
.form-group {
  margin-top: 1.5rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  /* gray-300 */
  border-radius: 0.5rem;
  /* 8px */
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  resize: vertical;
}

/* === Info Box === */
.info-box {
  background: rgba(243, 244, 246, 0.3);
  /* muted/30 → light translucent gray */
  padding: 1rem;
  /* p-4 */
  border-radius: 0.5rem;
  /* rounded-lg */
}

.info-box h4 {
  font-weight: 500;
  /* font-medium */
  margin-bottom: 0.5rem;
  /* mb-2 */
  display: flex;
  /* flex items-center gap-2 */
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  /* default heading size */
}

.info-box .icon {
  width: 1rem;
  /* h-4 */
  height: 10px;
  /* w-4 */
  stroke: #111827;
  /* same as heading text */
  flex-shrink: 0;
}

.info-box p {
  font-size: 0.875rem;
  /* text-sm */
  color: #6b7280;
  /* muted-foreground (gray-500) */
}

/* === Footer === */
.modal-footer {
  margin-top: 0.3rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* === Buttons === */
.btn-primary {
  background: #2563eb;
  /* blue-600 */
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1d4ed8;
  /* blue-700 */
}

.btn-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: #f9fafb;
  /* gray-50 */
}

button.btn-primary:disabled {
  background-color: rgb(59 130 246 / 0.5);
  /* light blue */
  color: #fff;
  /* keep text white */
  opacity: 1;
  /* subtle dim */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: not-allowed;
}

// Status Design

.status-pending {
  background-color: #d1d5db;
  color: black;
  border: 1px solid #e5e7eb;
}

/* Alloted Status - Blue solid like "in progress" in image */
.status-alloted {
  background-color: #6366f1 !important;
  color: #ffffff !important;
  border: 1px solid #3b82f6 !important;

}

/* Completed Status - Green solid like "on-track" */
.status-completed {
  background-color: #34d399 !important;
  color: #ffffff !important;
  border: 1px solid #10b981 !important;
}

/* PostPoned Status - Orange solid */
.status-postponed {
  background-color: #fbbf24 !important;
  color: #ffffff !important;
  border: 1px solid #f59e0b !important;
}

/* CallBack Status - Purple solid */
.status-callback {
  background-color: #a78bfa !important;
  color: #ffffff !important;
  border: 1px solid #8b5cf6 !important;
}

/* Closed Status - Gray outline like "new" */
.status-closed {
  background-color: #9ca3af !important;
  color: black !important;
  border: 1px solid #e5e7eb !important;
}

/* Cancel Status - Red solid like "critical" and "high" in image */
.status-cancel {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
}

/* Request For Cancellation - Red solid */
.status-request-for-cancellation {
  background-color: #f43f5e !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
}

/* Waiting For Spares - Cyan solid */
.status-waiting-for-spares {
  background-color: #38bdf8 !important;
  color: #ffffff !important;
  border: 1px solid #06b6d4 !important;
}

.firsttitle {
  font-size: 1rem;
  /* same as text-3xl */
  font-weight: 700;
  /* same as font-bold */
}

.firstsubtitle {
  color: #6b7280;
  /* same as text-gray-500 / muted foreground */
  font-size: 1rem;
}

gb-dynamiccombobox {
  // Direct component targeting
  border-radius: 6px !important;

  // Angular Material form field container
  ::ng-deep .mat-mdc-form-field {
    border-radius: 6px !important;
  }

  // Input container
  ::ng-deep .mat-mdc-form-field-flex {
    border-radius: 6px !important;
  }

  // Actual input element
  ::ng-deep .mdc-text-field__input {
    border-radius: 6px !important;
  }

  // Outlined variant
  ::ng-deep .mdc-text-field--outlined {
    border-radius: 6px !important;
  }

  // Filled variant
  ::ng-deep .mdc-text-field--filled {
    border-radius: 6px !important;
  }

  // Notch outline
  ::ng-deep .mdc-notched-outline {
    border-radius: 6px !important;
  }

  // Notch outline leading/trailing
  ::ng-deep .mdc-notched-outline__leading,
  ::ng-deep .mdc-notched-outline__trailing {
    border-radius: 6px !important;
  }

  // Blue border on focus - using multiple selectors for better compatibility
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline {
    border-color: #3b82f6 !important;
  }

  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-focused .mdc-notched-outline__trailing,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__leading,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__notch,
  ::ng-deep .mat-mdc-form-field.mat-mdc-form-field-focus .mdc-notched-outline__trailing {
    border-color: #3b82f6 !important;
    border-width: 6px !important;
  }
}

.employee-inline {
  font-size: 10px;
  font-weight: 700;
  color: #777;
  /* grey text */
  padding: 0;
  /* remove background padding */
  border-radius: 0;
  /* no rounded box */
  display: flex;
  /* keep flex inline for image + text */
  align-items: center;
  gap: 6px;
  width: auto;
  font-family: 'Segoe UI', sans-serif;
  margin-top: -12px;
  /* just a small gap below picklist */
  margin-bottom: 10px;

}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  /* stack header and content */
  justify-content: flex-start;
  /* start from top */
  align-items: center;
  z-index: 1000;
  // width: 10px;
  padding: 4rem 0rem 4rem 0rem;
  /* top, right, bottom, left */
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  /* scrolling directly in overlay */
  scrollbar-width: thin;
  // width: 100%;
  // max-width: 700px;
}

.lightbox-overlay::-webkit-scrollbar {
  width: 4px;
}

.lightbox-overlay::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-overlay::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 10px;
}

.closeicon {
  cursor: pointer;
  color: #333;
}





// lightbox view

/* Lightbox content */
.lightbox-content {
  background-color: #fff;
  border-radius: 0.5rem;
  max-width: 750px;
  /* width of modal */
  width: 100%;

  //  padding: 2rem 2.5rem 2rem 3.5rem; /* top right bottom left */
  padding: 0.5rem 1rem 0.5rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  // gap: 1rem;

  margin: auto;

  max-height: 85vh;
  /* Responsive height */
  overflow-y: auto;
  /* Enable scrolling */
  scrollbar-width: thin;
  /* Firefox small scrollbar */
  scrollbar-color: #666 transparent;
  /* Firefox color */
  scrollbar-gutter: stable both-edges;
}

.lightbox-content::-webkit-scrollbar {
  width: 4px;
  /* thinner scrollbar */
}

.lightbox-content::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-content::-webkit-scrollbar-thumb {
  background-color: #666;
  /* scrollbar color */
  border-radius: 10px;
}



@media (max-width: 400px) {
  .lightbox-overlay {
    max-height: 100%;
    max-width: 100%;


  }

}


.attachmentcloseicon {
  // padding-left: 600px;
  font-size: 20px;
  cursor: pointer;
}

.closeicon mat-icon {
  position: absolute;
  color: #333;
  /* change icon color */
  vertical-align: middle;
  // margin-bottom: 8px;
}

.closeicon {
  // padding-left: 600px;

  cursor: pointer;
}

.closeicon mat-icon {
  position: absolute;
  color: #333;
  /* change icon color */
  vertical-align: middle;
  // margin-bottom: 8px;
}

.resend-icon {
  font-size: 18px;
  /* match text size */
  vertical-align: middle;
  /* align with text */
  margin-right: 6px;
  /* space between icon and text */

}


.attachmentmodal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.attachmentmodal-content {
  justify-content: center;
  background-color: #fefefe;
  margin: auto;
  padding: 20px 20px 20px 20px;
  border: 1px solid #888;
  width: 1200px;
  height: 500px;
  border-radius: 10px;
  overflow: auto;
  /* enable scroll */
}


/* Example: targeting internal elements using ::ng-deep */
.my-attachment-wrapper gb-attachment ::ng-deep .AttachmentTable thead tr {
  background-color: #3b82f6 !important;
  /* header blue */
  color: #ffffff !important;
}

.my-attachment-wrapper gb-attachment ::ng-deep .file-upload-container {
  border-color: #3b82f6 !important;
  background: #f1faff !important;
}

.my-attachment-wrapper gb-attachment ::ng-deep .AddFile-Save {
  background-color: #3b82f6 !important;
  color: #fff !important;
}


/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .card {
    max-width: 95%;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    border-radius: 0.5rem;
    border-width: 4px;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-description {
    font-size: 0.875rem;
  }

  /* Form Layout - Stack inputs vertically */
  .card>div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Button Container - Stack or adjust */
  .button-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-right: 0;
  }

  .button-container>div {
    flex: 0 0 auto;
  }

  .button-container button {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  /* First button with margin-right adjustment */
  .button-container>div:first-child button {
    margin-right: 0 !important;
  }

  /* Lightbox Overlay */
  .lightbox-overlay {
    padding: 1rem 0.5rem;
  }

  .lightbox-content {
    max-width: 95%;
    padding: 0.75rem;
    max-height: 90vh;
  }

  /* Modal Adjustments */
  .modal {
    max-width: 95%;
    padding: 1.25rem;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-description {
    font-size: 0.8rem;
  }

  .ticket-card-body {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Attachment Modal */
  .attachmentmodal-content {
    width: 95%;
    max-width: 95%;
    padding: 1rem;
    height: auto;
    max-height: 80vh;
  }

  /* Form descriptions */
  .form-description,
  .picklist-description {
    font-size: 0.8rem;
  }

  /* Employee inline info */


  /* Ticket card header on mobile */
  .ticket-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .badge-outline {
    align-self: flex-start;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .card {
    width: 100%;
    max-width: 350px;
    border-radius: 0.375rem;
    border-width: 3px;
  }

  .card-title {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
  }

  .card-description {
    font-size: 0.8125rem;
  }

  .button-container>div:first-child button {
    // border: 1px solid red !important;
    margin-right: 0 !important;
  }

  /* UPDATE button */
  .button-container>div:last-child button {
    // border: 1px solid red !important;
    margin-right: 0 !important;
  }


  gb-input,
  gb-textarea,
  // gb-newpicklist,
  gb-dynamiccombobox {
    width: 300px !important;
    // height: 60px !important;

  }

  gb-newpicklist {
    width: 300px;
  }

  gb-newpicklist ::ng-deep .mat-mdc-form-field {
    width: 300px !important;
    height: 60px !important;
  }

  gb-newpicklist ::ng-deep .mat-mdc-form-field {
    font-size: 10px !important;
  }

  gb-newpicklist ::ng-deep input.mat-mdc-input-element.form_input {
    width: 235px !important;
  }

  gb-newpicklist ::ng-deep .mat-icon {
    font-size: 24px !important;
    cursor: pointer !important;
    /* pointer on hover */
    margin-left: 27px !important;
    /* spacing */

  }

  // gb-newpicklist ::ng-deep .mat-mdc-form-field,
  gb-dynamiccombobox ::ng-deep .mat-mdc-form-field {
    width: 300px !important;
    height: 60px !important;

  }

  // style changes for placeholder
  gb-textarea ::ng-deep .mdc-text-field,
  // gb-newpicklist ::ng-deep .mat-mdc-form-field,
  gb-input ::ng-deep .mat-mdc-form-field .mat-mdc-input-element::placeholder {
    font-size: 12px !important;
    // color: red;
  }



  gb-dynamiccombobox ::ng-deep {

    /* Selected value */
    .mat-mdc-select-value-text {
      font-size: 12px !important;
    }

    /* Dropdown list values */
    .mat-mdc-option .mdc-list-item__primary-text {
      font-size: 12px !important;
    }

    /* Placeholder */
    .mat-mdc-select-placeholder {
      font-size: 12px !important;
    }

  }


  // gb-newpicklist ::ng-deep .mdc-text-field,
  gb-dynamiccombobox ::ng-deep .mdc-text-field {
    width: 300px !important; //width of picklist
    height: 60px !important;
  }

  gb-input ::ng-deep .mat-mdc-form-field {
    width: 300px !important;
    height: 60px !important;
  }

  gb-input ::ng-deep .mdc-text-field {
    width: 300px !important;
    height: 60px !important;
  }

  gb-textarea ::ng-deep .mdc-text-field {
    width: 300px !important;
  }

  gb-textarea ::ng-deep .mat-mdc-form-field {
    width: 300px !important;
  }

  /* Close icon positioning */
  .closeicon mat-icon {
    font-size: 18px !important;
    margin-top: 5px !important;
  }

  /* Button container - full width stacking */

  /* Attachment button */
  .formbuttons.attachmentbutton {
    padding: 4px 6px !important;
    font-size: 12px !important;
  }

  .formbuttons.attachmentbutton mat-icon {
    font-size: 16px !important;
  }

  /* Modal adjustments */
  .modal {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .modal-title {
    font-size: 0.95rem;
  }

  .ticket-title {
    font-size: 0.9rem;
  }

  .ticket-subtitle {
    font-size: 0.8rem;
  }

  /* Form group labels */
  .form-group label {
    font-size: 0.875rem;
  }

  /* Info box */
  .info-box {
    padding: 0.75rem;
  }

  .info-box h4 {
    font-size: 0.9rem;
  }

  /* Badges */
  .badge-secondary,
  .badge-success,
  .status-alloted,
  .status-completed,
  .status-postponed,
  .status-callback,
  .status-closed,
  .status-cancel,
  .status-request-for-cancellation,
  .status-waiting-for-spares {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
  }

  /* Lightbox overlay */
  .lightbox-overlay {
    padding: 0.5rem 0.25rem;
  }

  .lightbox-content {
    max-width: 98%;
    border-radius: 0.5rem;
  }



  /* Attachment modal for small screens */
  .attachmentmodal-content {
    width: 98%;
    padding: 0.75rem;
    height: auto;
    max-height: 85vh;
  }

  /* Form descriptions */
  .form-description,
  .picklist-description {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  /* First title and subtitle */
  .firsttitle {
    font-size: 0.9rem;
  }

  .firstsubtitle {
    font-size: 0.875rem;
  }

  // ADD THIS NEW RULE to target the dropdown overlay
  ::ng-deep .cdk-overlay-container {
    .mat-mdc-option.mdc-list-item {
      font-size: 12px !important;
    }

    // Also target the primary text for better coverage
    .mat-mdc-option .mdc-list-item__primary-text {
      font-size: 12px !important;
    }
  }

}