/* File: css/purchase-request-form-styles.css */
.anmelden-link {
  background-color: #e7007e;
  padding: 10px 20px 10px 20px;
  color: #fff;
  font-weight: 600;
}
.anmelden-link:hover {
  background-color: #121212 !important;
  padding: 10px 20px 10px 20px !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.purchase-request-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#purchase-request-form {
  display: flex;
  flex-direction: column;
}

#purchase-request-form input[type="text"],
#purchase-request-form input[type="email"],
#purchase-request-form input[type="tel"],
#purchase-request-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#purchase-request-form textarea {
  height: 150px;
  resize: vertical;
}

#file-upload-container {
  width: 22%;
}

.dropzone {
  border: 2px dashed #e7007e;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(231, 0, 126, 0.02);
}
.dropzone-dragover {
  background-color: rgba(231, 0, 126, 0.05);
  border-color: #e7007e;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.dropzone-content p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.dropzone .dz-message {
  margin: 2em 0;
  color: #e7007e;
}

#purchase-request-form button[type="submit"] {
  background-color: #e7007e;
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  transition: background-color 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#purchase-request-form button[type="submit"]:hover {
  background-color: #c4006b;
}
#purchase-request-form button[type="submit"].loading {
  color: transparent;
  pointer-events: none;
}

#purchase-request-form button[type="submit"].loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  border-right-color: transparent;
  animation: submit-spinner 0.75s linear infinite;
}

@keyframes submit-spinner {
  to {
    transform: rotate(360deg);
  }
}

#form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  display: none;
}

#form-message .success {
  background-color: #f3e5f5;
  color: #e7007e;
  border: 1px solid #e7007e;
  padding: 20px;
}

#form-message .error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #c62828;
}

/* Add some accent colors to form elements */
#purchase-request-form input[type="text"]:focus,
#purchase-request-form input[type="email"]:focus,
#purchase-request-form input[type="tel"]:focus,
#purchase-request-form textarea:focus {
  border-color: #e7007e;
  box-shadow: 0 0 5px rgba(231, 0, 126, 0.2);
  outline: none;
}

/* Style the file input button */
#purchase-request-form input[type="file"] {
  opacity: 0;
  position: static;
  z-index: auto;
  height: auto;
  display: block;
}

#purchase-request-form input[type="file"]:hover {
  background-color: #fce4ec;
}
/* Admin and User Tables */
.wrap {
  margin: 20px;
}

table.dataTable {
  width: 100% !important;
  margin-top: 20px !important;
}

table.dataTable thead th {
  background-color: #f1f1f1;
  color: #333;
  font-weight: bold;
}

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

table.dataTable tbody tr:hover {
  background-color: #f3e5f5;
}

/* Action Buttons in Tables */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.btn-info {
  color: #fff;
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

/* Modal Styles */
.modal-content {
  border-radius: 8px;
  overflow: auto;
}

.modal-header {
  border-bottom: 1px solid #e7007e;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 500;
  color: #111827;
  margin: 10px;
}

.modal-title {
  color: #e7007e;
}

.modal-body {
  padding: 20px;
}

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

.modal-body label {
  font-weight: bold;
  color: #333;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body textarea,
.modal-body select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.modal-body textarea {
  height: 100px;
  resize: vertical;
}

/* Image Slider in Modal */
.image-slider {
  margin-top: 20px;
}

.image-slider img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Slick Slider Customization */
.slick-prev:before,
.slick-next:before {
  color: #e7007e;
}

.slick-dots li button:before {
  color: #e7007e;
}

.slick-arrow {
  z-index: 1000;
  margin: 0px 20px 0px 20px;
}

/* Lightbox Customization */
.lb-outerContainer {
  background: white;
  border-radius: 4px 4px 0 0;
  max-width: 90% !important;
}

.lb-dataContainer {
  background: white;
  padding: 15px;
  border-radius: 0 0 4px 4px;
  max-width: 90% !important;
}

.lb-data .lb-caption {
  color: #e7007e;
}

.lb-data .lb-number {
  color: #666;
}

/* Status Colors */
.status-pending {
  color: orange;
}

.status-in-contact {
  color: yellow;
}

.status-fulfilling {
  color: red;
}

.status-complete {
  color: lime;
}

/* Responsive Design */
@media (max-width: 768px) {
  .purchase-request-form-container {
    max-width: 100%;
    padding: 10px;
  }

  table.dataTable {
    font-size: 14px;
  }

  .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }

  .modal-dialog {
    margin: 10px;
  }
}

/* Accessibility */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #e7007e;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }

  .purchase-request-form-container,
  .modal-content {
    box-shadow: none;
    border: none;
  }

  table.dataTable {
    border-collapse: collapse;
  }

  table.dataTable th,
  table.dataTable td {
    border: 1px solid #ddd;
  }
}
/* Woocommerce Navigation Tabs */
/* DataTable Mobile Styles */
@media screen and (max-width: 767px) {
  .woocommerce-orders-table {
    width: 100% !important;
  }

  .dataTables_wrapper {
    padding: 0 10px;
  }

  .dataTables_length,
  .dataTables_filter {
    float: none;
    text-align: left;
    margin-bottom: 10px;
  }
  .dataTables_wrapper.dataTables_length {
    margin-bottom: 10px !important;
  }

  .dataTables_filter input {
    width: 100%;
    margin-left: 0;
    margin-top: 5px;
  }

  /* Style for the responsive details table */
  .responsive-details {
    width: 100%;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
  }

  .responsive-details td {
    padding: 8px;
    border-bottom: 1px solid #eee;
  }

  .responsive-details td:first-child {
    font-weight: bold;
    width: 30%;
  }

  /* Style for the View button */
  .view-request {
    width: 100%;
    margin: 5px 0;
    padding: 8px 16px;
  }

  /* Improve spacing in the modal */
  div.dtr-modal {
    width: 95% !important;
    margin: 10px !important;
  }

  div.dtr-modal div.dtr-modal-content {
    padding: 1rem !important;
  }
}

/* General improvements for mobile */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.3em 0.8em;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 0.5em;
}

.post ul:not([class]) > li {
  list-style: none !important;
}
.woocommerce-MyAccount-navigation-tabs ul {
  display: flex;
  list-style-type: none !important;
  padding: 0;
  margin: 0 0 2em;
  border-bottom: 1px solid #ddd;
}

.woocommerce-MyAccount-navigation-tabs li {
  margin: 0 1em 0 0;
}

.woocommerce-MyAccount-navigation-tabs a {
  display: block;
  padding: 0.5em 1em;
  text-decoration: none;
  color: #6d6d6d;
}

.woocommerce-MyAccount-navigation-tabs li.is-active a {
  background: #e7007e;
  color: #fff;
  border-radius: 4px 4px 0 0;
}
.woocommerce-MyAccount-navigation-tabs li.not-active a {
  background: #484848;
  color: #fff;
  border-radius: 4px 4px 0 0;
}

/* Modal Styles */
.request-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.request-modal-content {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  position: relative;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.request-details {
  margin-top: 20px;
}

.request-details p {
  margin: 0.5em 0;
}

/* Attachments Grid */
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

.attachment-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.attachment-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.attachment-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.attachment-item:hover .attachment-preview {
  transform: scale(1.05);
}

.attachment-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1em;
  background-color: #f8f8f8;
  color: #666;
  text-align: center;
  font-size: 0.9em;
}

/* Explicitly scope slider styles */
.request-attachments .attachment-slider {
  margin: 0 auto 20px;
  max-width: 600px;
  position: relative;
}

.request-attachments .attachment-slide {
  position: relative;
  padding-top: 75%;
}

.request-attachments .attachment-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.request-attachments .attachment-slider-nav {
  margin: 0 auto;
  max-width: 300px;
  padding: 0 20px;
}

.request-attachments .attachment-slide-nav {
  padding: 5px;
}

.request-attachments .attachment-thumbnail {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.request-attachments .attachment-thumbnail:hover {
  opacity: 0.8;
}

/* Scope Slick slider custom styles */
.request-attachments .slick-prev,
.request-attachments .slick-next {
  z-index: 10;
  width: 30px;
  height: 30px;
}

.request-attachments .slick-prev {
  left: -35px;
}

.request-attachments .slick-next {
  right: -35px;
}

.request-attachments .slick-prev:before,
.request-attachments .slick-next:before {
  color: #e7007e;
  font-size: 24px;
}

.request-attachments .slick-dots li button:before {
  color: #e7007e;
}

/* Lightbox styles - these are global but shouldn't affect other elements */
.lb-outerContainer {
  background: white;
  border-radius: 4px 4px 0 0;
}

.lb-dataContainer {
  background: white;
  padding: 15px;
  border-radius: 0 0 4px 4px;
}

.lb-data .lb-caption {
  color: #e7007e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .request-attachments .attachment-slider,
  .request-attachments .attachment-slider-nav {
    max-width: 100%;
  }

  .request-attachments .slick-prev {
    left: -25px;
  }

  .request-attachments .slick-next {
    right: -25px;
  }
}

/* Reset styles for non-slider elements */
select.form-control {
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
  appearance: auto !important;
  background: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  padding: 0.375rem 1.75rem 0.375rem 0.75rem !important;
}

.modal-content select,
.modal-content input,
.modal-content textarea {
  width: 100% !important;
  display: block !important;
  height: calc(1.5em + 0.75rem + 2px) !important;
}

.request-attachments {
  margin: 2em auto;
  padding: 1em;
  background: #f8f9fa;
  border-radius: 8px;
}

.request-attachments h3 {
  margin-bottom: 1em;
  color: #333;
}

.attachment-slide {
  position: relative;
  padding-top: 75%;
}

.attachment-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.attachment-slider-nav {
  margin: 0 auto;
  max-width: 300px;
  padding: 0 20px;
}

.attachment-slider {
  margin: 0 auto 20px;
  width: 400px;
}

.attachment-slide-nav {
  padding: 5px;
}

.attachment-thumbnail {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.attachment-thumbnail:hover {
  opacity: 0.8;
}
/* Slider Responsive Adjustments */
@media (max-width: 768px) {
  .attachment-slider,
  .attachment-slider-nav {
    max-width: 100%;
  }

  .slick-prev {
    left: 0;
  }

  .slick-next {
    right: 0;
  }

  .attachment-slide {
    padding-top: 75%; /* Maintain 4:3 aspect ratio on mobile */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .request-modal-content {
    margin: 10% 15px;
    padding: 15px;
  }

  .woocommerce-MyAccount-navigation-tabs ul {
    list-style-type: none;
    flex-direction: column;
  }

  .woocommerce-MyAccount-navigation-tabs li {
    margin: 0 0 0.5em 0;
  }
}
/* View Button Styling */
.view-request {
  background-color: #e7007e !important;
  color: white !important;
  border: none !important;
  padding: 8px 24px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: background-color 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 1.5 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  user-select: none !important;
  width: 100%;
}

.view-request:hover {
  background-color: #c4006b !important;
}

.view-request.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.view-request.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid white;
  border-radius: 50%;
  border-right-color: transparent;
  animation: button-spinner 0.75s linear infinite;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Modal Preloader */
.modal-preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid #e7007e;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

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

/* Ensure proper button alignment in table */
.woocommerce-orders-table td:last-child {
  text-align: right;
}

/* Responsive styles */
@media (max-width: 768px) {
  .view-request {
    padding: 6px 16px !important;
    font-size: 13px !important;
  }
}
/* File input styling */
.file-input-container {
  margin-bottom: 20px;
  width: 100%;
}
.file-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
.upload-button {
  display: inline-block;
  padding: 10px 24px;
  background-color: #e7007e;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.upload-button:hover {
  background-color: #c4006b;
}

.custom-file-input {
  display: none;
}

.custom-file-input:hover {
  background-color: #fce4ec;
}

.file-list {
  margin-top: 10px;
  font-size: 14px;
}

.file-item {
  padding: 10px;
  margin: 5px 0;
  background-color: rgba(231, 0, 126, 0.05);
  border: 1px solid rgba(231, 0, 126, 0.2);
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .dropzone {
    padding: 20px;
  }

  .dropzone-content p {
    font-size: 14px;
  }

  .upload-button {
    padding: 8px 20px;
    font-size: 14px;
  }
}
/* Form Fields */
.modal-body {
  padding: 24px;
}

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

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input[disabled],
.form-group textarea[disabled],
.form-group select[disabled] {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  border-radius: 6px;
  width: 100%;
  font-size: 16px;
  color: #374151;
  cursor: not-allowed;
}

/* Keep existing attachments styling */
.request-attachments {
  margin-top: 30px;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.request-attachments h3 {
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 16px;
}

/* Modal Preloader */
.modal-preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Responsive Design */
@media (max-width: 640px) {
  .request-modal {
    padding: 20px;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 20px;
  }
}
.attachments-section {
  margin: 30px 0;
}

.attachments-section h3 {
  color: #333;
  font-weight: 500;
}

.attachments-grid {
  margin: 20px 0;
}

.attachment-card {
  transition: transform 0.2s ease;
}

.attachment-card:hover {
  transform: translateY(-2px);
}

.attachment-card img {
  object-fit: cover;
}

@media (max-width: 768px) {
  .attachments-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}
/*WCFM*/
.wcfm-purchase-requests-wrapper .dataTables_wrapper {
  margin-top: 20px;
}

.wcfm-purchase-requests-content {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#wcfm-purchase-requests_wrapper .dataTables_length,
#wcfm-purchase-requests_wrapper .dataTables_filter {
  margin-bottom: 20px;
}

.wcfm-purchase-requests-action {
  margin: 5px;
  cursor: pointer;
}

/* Portfolio Slides Styles */
.portfolio-slides .single {
  /* width: 100%; */
  height: 300px;
  padding: 10px;
}

.portfolio-slides .single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.portfolio-slides .single img:hover {
  transform: scale(1.05);
}
/* Modal Message Box Fix */
.modal-body .form-group textarea,
.modal-body .form-group div[id^="modal-message"] {
  min-height: 100px !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  padding: 15px !important;
  line-height: 1.6 !important;
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
}

/* Modal Content Styling */

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

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

/* Main Slider Styles */
.portfolio-slides .single {
  opacity: 1 !important;
  visibility: visible !important;
  width: 250px !important;
}

.portfolio-slides .single img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.slick-slider {
  opacity: 1 !important;
  visibility: visible !important;
}

.slick-list {
  overflow: visible !important;
}

.modal-body {
  overflow: visible !important;
}

.request-attachments {
  overflow: visible !important;
}

/* Force visibility of slick slider elements */
.slick-track,
.slick-slide,
.slick-slide > div {
  visibility: visible !important;
  opacity: 1 !important;
  display: flex;
  justify-content: center;
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-overlay.show {
  display: block;
}
