/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
 .wcprq-products.hide {
  display: none;
}

/* License Status Icons - Replace FontAwesome with Dashicons */
.wb-license-form-table td.wb-license-status:before {
	content: "\f335" !important; /* dashicons-no-alt - X icon for inactive */
	font-family: dashicons !important;
	font: normal normal normal 20px/1 dashicons !important;
	margin-right: 8px;
	top: 3px;
	position: relative;
	color: #dc3232;
}

.wb-license-form-table td.wb-license-status.active:before {
	content: "\f147" !important; /* dashicons-yes - checkmark for active */
	color: #46b450;
}

/* Tab Navigation Icons - Override wbcom default icons */
.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-welcome a:before {
	content: "\f331" !important; /* dashicons-welcome-view-site */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-general a:before {
	content: "\f108" !important; /* dashicons-admin-generic */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-quote-requests a:before {
	content: "\f145" !important; /* dashicons-format-aside */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-quote-management a:before {
	content: "\f485" !important; /* dashicons-clipboard */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-email-system a:before {
	content: "\f466" !important; /* dashicons-email-alt */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-product-filtering a:before {
	content: "\f180" !important; /* dashicons-filter */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-form-enhancements a:before {
	content: "\f175" !important; /* dashicons-forms */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-pricing-discounts a:before {
	content: "\f174" !important; /* dashicons-cart */
}

.wbcom-tabs-section .nav-tab-wrapper ul li.wcpq-license a:before {
	content: "\f160" !important; /* dashicons-admin-network */
}

/* Product selection improvements */
.wcpq-product-selection-wrapper {
	width: 100%;
}

.wcpq-product-search-section {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 15px;
}

.wcpq-section-header {
	margin-bottom: 12px;
	font-size: 14px;
	color: #1d2327;
}

#wcpq-product-search {
	width: 100%;
	margin-bottom: 10px;
}

.wcpq-product-select {
	width: 100%;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	padding: 8px;
	background: white;
	margin-bottom: 10px;
}

#wcpq-product-selector:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 2px solid transparent;
}

#wcpq-product-selector option {
	padding: 4px 8px;
	line-height: 1.5;
}

#wcpq-product-selector option:checked {
	background: #2271b1;
	color: white;
}

/* Selected products section */
.wcpq-count-badge {
	color: #2271b1;
	font-weight: normal;
	font-size: 14px;
}

.wcpq-selected-products-wrapper {
	width: 100%;
}

.wcpq-products-list {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 12px;
	max-height: 250px;
	overflow-y: auto;
	min-height: 80px;
	margin-bottom: 12px;
}

.wcpq-selected-product {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	margin-bottom: 4px;
	background: #f0f0f1;
	border-radius: 3px;
	transition: background 0.2s;
}

.wcpq-selected-product:hover {
	background: #e5e5e5;
}

.wcpq-selected-product:last-child {
	margin-bottom: 0;
}

.wcpq-product-name {
	color: #2c3338;
	font-size: 13px;
}

.wcpq-selected-product .button-link-delete {
	background: none;
	border: none;
	color: #b32d2e;
	font-size: 20px;
	line-height: 1;
	padding: 0 5px;
	cursor: pointer;
	transition: color 0.2s;
}

.wcpq-selected-product .button-link-delete:hover {
	color: #a02222;
	background: rgba(179, 45, 46, 0.1);
	border-radius: 2px;
}

.wcpq-empty-message {
	color: #646970;
	font-style: italic;
	text-align: center;
	margin: 20px 0;
}

.wcpq-actions {
	display: flex;
	justify-content: flex-start;
	gap: 10px;
}

/* Make it consistent with hide when in all-products mode */
.wcpq-products.hide .wcpq-selected-products-wrapper {
	display: none;
}

/* User roles checkbox container */
.wcpq-user-roles-checkboxes {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

/* Individual checkbox labels */
.wcpq-role-checkbox-label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.wcpq-role-checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

.wcpq-role-checkbox-label:hover {
  background: #f5f5f5;
  padding: 2px 4px;
  margin-left: -4px;
  margin-right: -4px;
  border-radius: 3px;
}

/* Separator between guest and registered roles */
.wcpq-role-separator {
  margin: 10px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.wcpq-selection-tags {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}

#wcpq-select-all-uroles,
#wcpq-unselct-all-uroles {
  text-decoration: none;
  font-size: 13px;
  color: #2271b1;
  padding: 1px 15px;
  line-height: 25px;
  border-radius: 100px;
  display: inline-block;
  border: 1px solid #2271b1;
  transition: all 0.3s ease;
}

#wcpq-select-all-uroles:hover,
#wcpq-unselct-all-uroles:hover,
#wcpq-select-all-uroles:focus,
#wcpq-unselct-all-uroles:focus {
  background: #2271b1;
  color: #fff;
  border: 1px solid #2271b1;
  text-decoration: none;
}

.wcpq_description {
  display: block;
  font-weight: normal;
  font-style: italic;
  line-height: normal;
}

.price-quote-tab .wbcom-welcome-main-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.price-quote-tab .wbcom-welcome-main-wrapper:after {
  background: #000;
  height: 100%;
  width: 100%;
  bottom: 4px;
  border-radius: 10px;
  content: "";
  position: absolute;
}

.price-quote-tab .wbcom-welcome-main-wrapper a {
  display: block;
  position: relative;
  z-index: 99;
}

.price-quote-tab .wbcom-welcome-main-wrapper small {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  margin-top: -15px;
  margin-left: -85px;
  font-weight: 500;
  z-index: 9;
  line-height: 50px;
  padding: 0 35px;
  font-size: 15px;
  background: #f02f32;
  text-shadow: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  box-shadow: 0px 10px 25px rgb(32 53 85 / 35%);
  border-radius: 12px;
  border: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}


.price-quote-tab .wbcom-welcome-main-wrapper a:focus {
  box-shadow: none;
  border: none;
}

.price-quote-tab .wbcom-welcome-main-wrapper img {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  opacity: 0.5;
}

.price-quote-tab .wbcom-welcome-main-wrapper:hover img {
  opacity: 0.6;
}


.nav-tab-wrapper ul .wcpq-general a:before {
  content: "\f111" !important;
}

.nav-tab-wrapper ul .wcpq-quote-requests a:before {
  content: "\f103" !important;
}

.nav-tab-wrapper ul .wcpq-enquiry-cart a:before {
  content: "\f174" !important;
}

.nav-tab-wrapper ul .wcpq-product-category a:before {
  content: "\f318" !important;
}

.nav-tab-wrapper ul .wcpq-single-product a:before {
  content: "\f513" !important;
}

.nav-tab-wrapper ul .wcpq-advanced-setting a:before {
  content: "\f348" !important;
}

div#setting-error-settings_updated {
  position: absolute;
  right: 50px;
  z-index: 99;
  border-radius: 10px;
  line-height: normal;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #10ab00;
}

button.notice-dismiss:before {
  color: red !important;
}

.wbcom-settings-section-wrap {
  overflow: inherit;
}

.wbcom-settings-section-options .selectize-input.items.not-full.has-options,
.wbcom-settings-section-options .selectize-input.items.not-full.has-options input[type="text"] {
  height: auto;
}

.wbcom-wrap .notice.notice-error.is-dismissible.learndash-license-is-dismissible {
  display: none !important;
}


.wbcom-wrap .notice.notice-error.is-dismissible.learndash-license-is-dismissible,
#wpwrap .notice.notice-error,
.wbcom-wrap .notice.notice-error {
  display: none !important;
}

.wbcom-settings-section-options.blpro-radio-option-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-flow: wrap;
  flex-flow: wrap;
  gap: 15px;
}

/* Quote Requests Cards Styling - WooCommerce Order Style */
.wcpq-quote-requests-list {
  margin-top: 20px;
}

.wcpq-quote-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.wcpq-quote-header {
  background: #f6f7f7;
  border-bottom: 1px solid #c3c4c7;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcpq-quote-header .quote-id {
  font-size: 14px;
  color: #0073aa;
}

.wcpq-quote-header .quote-date {
  font-size: 13px;
  color: #646970;
}

.wcpq-quote-header .quote-status .status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid transparent;
}

.wcpq-quote-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.wcpq-quote-body .customer-details h4,
.wcpq-quote-body .quote-products h4,
.wcpq-quote-body .quote-message h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2c3338;
}

.wcpq-quote-body .customer-details p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.wcpq-quote-body .email {
  color: #2271b1;
  text-decoration: none;
}

.wcpq-quote-body .email:hover {
  color: #135e96;
  text-decoration: underline;
}

.wcpq-quote-body .phone {
  color: #646970;
  font-size: 12px;
}

.wcpq-quote-body .products-list {
  margin-top: 8px;
}

.wcpq-quote-body .product-item {
  padding: 4px 0;
  font-size: 13px;
}

.wcpq-quote-body .product-item a {
  color: #2271b1;
  text-decoration: none;
}

.wcpq-quote-body .product-item a:hover {
  text-decoration: underline;
}

.wcpq-quote-body .product-item small {
  color: #646970;
}

.wcpq-quote-message {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f1;
}

.wcpq-quote-message p {
  margin: 8px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #2c3338;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #72aee6;
}

.wcpq-quote-actions {
  background: #f6f7f7;
  border-top: 1px solid #c3c4c7;
  padding: 15px 20px;
}

.wcpq-quote-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wcpq-quote-actions .quote-action-buttons {
  display: flex;
  gap: 10px;
}

.wcpq-quote-actions .status-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wcpq-quote-actions label {
  font-weight: 600;
  font-size: 13px;
  color: #2c3338;
}

.wcpq-quote-actions .status-select {
  padding: 4px 8px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #fff;
  color: #2c3338;
  font-size: 13px;
}

.wcpq-quote-actions .status-select:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

/* Status Badge Colors */
.status-pending { 
  background: #fcf9e8;
  color: #8a6914;
  border-color: #f7e6b5;
}

.status-responded { 
  background: #e6f3ff;
  color: #0073aa;
  border-color: #b3d7ff;
}

.status-completed { 
  background: #edfaef;
  color: #046b00;
  border-color: #68b968;
}

/* Quote Requests Section Header */
.wcpq-quote-requests-section h2 {
  margin: 20px 0 15px 0;
  font-size: 23px;
  font-weight: 400;
  color: #23282d;
  line-height: 1.3;
}

/* Filters Section */
.wcpq-filters-section {
  margin: 15px 0 20px 0;
}

.wcpq-filter-form .filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wcpq-filter-form select,
.wcpq-filter-form input[type="text"] {
  padding: 0 8px;
  height: 32px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 13px;
  line-height: 2;
  vertical-align: middle;
}

.wcpq-filter-form select {
  min-width: 150px;
}

.wcpq-filter-form input[type="text"] {
  min-width: 250px;
}

@media screen and (max-width: 782px) {
  .wcpq-filter-form .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .wcpq-filter-form select,
  .wcpq-filter-form input[type="text"] {
    width: 100%;
    margin-bottom: 8px;
  }
}

.wcpq-no-quotes {
  text-align: center;
  padding: 40px 20px;
  color: #646970;
  font-style: italic;
  background: #fff;
  border: 1px solid #c3c4c7;
}

.wcpq-no-quotes p {
  margin: 0;
  font-size: 16px;
}

/* Responsive improvements for order-style cards */
@media screen and (max-width: 1200px) {
  .wcpq-quote-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .wcpq-quote-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .wcpq-quote-header .quote-status {
    align-self: flex-end;
    margin-top: -30px;
  }
  
  .wcpq-quote-body {
    padding: 15px;
  }
  
  .wcpq-quote-actions .status-form {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .wcpq-quote-actions .status-form label {
    margin-bottom: 4px;
  }
}

/* Popup Styles */
.wcpq-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcpq-popup-content {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
}

.wcpq-popup-content.wcpq-email-popup {
  width: 800px;
  max-width: 95%;
}

.wcpq-popup-header {
  background: #f6f7f7;
  border-bottom: 1px solid #c3c4c7;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcpq-popup-header h2 {
  margin: 0;
  font-size: 18px;
  color: #2c3338;
}

.wcpq-popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.wcpq-popup-close:hover {
  background: #ddd;
  color: #000;
}

.wcpq-popup-body {
  padding: 20px;
}

/* Quote Details Popup */
.wcpq-quote-details .quote-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.wcpq-quote-details h3 {
  font-size: 16px;
  margin: 0 0 15px 0;
  color: #2c3338;
  border-bottom: 1px solid #c3c4c7;
  padding-bottom: 8px;
}

.wcpq-quote-details .quote-customer p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.wcpq-quote-details .products-detailed-list .product-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 10px;
}

.wcpq-quote-details .product-detail-item .product-image {
  flex-shrink: 0;
}

.wcpq-quote-details .product-detail-item .product-info {
  flex: 1;
}

.wcpq-quote-details .product-detail-item .product-info strong a {
  color: #2271b1;
  text-decoration: none;
}

.wcpq-quote-details .product-detail-item .product-info strong a:hover {
  text-decoration: underline;
}

.wcpq-quote-details .product-detail-item .product-description {
  color: #666;
  font-size: 13px;
}

.wcpq-quote-details .quote-message-full {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  margin-top: 20px;
}

.wcpq-quote-details .message-content {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #72aee6;
  font-size: 14px;
  line-height: 1.5;
}

/* Email Popup */
.wcpq-email-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.wcpq-email-fields .field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wcpq-email-fields label {
  font-weight: 600;
  font-size: 13px;
  color: #2c3338;
}

.wcpq-email-fields input {
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  font-size: 14px;
}

.wcpq-email-fields input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.wcpq-pricing-table-section {
  margin-bottom: 25px;
}

.wcpq-pricing-table-section h3 {
  font-size: 16px;
  margin: 0 0 15px 0;
  color: #2c3338;
  border-bottom: 1px solid #c3c4c7;
  padding-bottom: 8px;
}

.wcpq-pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.wcpq-pricing-table th,
.wcpq-pricing-table td {
  border: 1px solid #c3c4c7;
  padding: 10px;
  text-align: left;
}

.wcpq-pricing-table th {
  background: #f6f7f7;
  font-weight: 600;
  font-size: 13px;
}

.wcpq-pricing-table td {
  font-size: 14px;
}

.wcpq-pricing-table .quantity-input,
.wcpq-pricing-table .unit-price-input {
  border: 1px solid #8c8f94;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 14px;
}

.wcpq-pricing-table .price-input-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wcpq-pricing-table .currency-symbol {
  font-weight: 600;
  color: #666;
}

.wcpq-pricing-table tfoot td {
  background: #f9f9f9;
  font-weight: 600;
}

.wcpq-email-message {
  margin-bottom: 25px;
}

.wcpq-email-message label {
  font-weight: 600;
  font-size: 13px;
  color: #2c3338;
  display: block;
  margin-bottom: 8px;
}

.wcpq-email-message textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  resize: vertical;
}

.wcpq-email-message textarea:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.wcpq-email-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.wcpq-email-actions button {
  padding: 8px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .wcpq-popup-content {
    width: 95%;
    margin: 20px;
  }
  
  .wcpq-quote-details .quote-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wcpq-email-fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .wcpq-pricing-table {
    font-size: 12px;
  }
  
  .wcpq-pricing-table th,
  .wcpq-pricing-table td {
    padding: 6px;
  }
}

/* Navigation Tab Icons */
.wbcom-tabs-section .nav-tab-wrapper ul li a:before {
  font-family: 'dashicons';
  font-weight: 400;
  font-size: 20px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

/* Welcome tab icon */
.wbcom-tabs-section .wcpq-welcome a:before {
  content: '\f102'; /* dashicons-admin-home */
  color: #2271b1;
}

/* General Settings tab icon */
.wbcom-tabs-section .wcpq-general a:before {
  content: '\f111'; /* dashicons-admin-settings */
  color: #646970;
}

/* Quote Requests tab icon */
.wbcom-tabs-section .wcpq-quote-requests a:before {
  content: '\f463'; /* dashicons-format-status or \f466 editor-quote */
  color: #646970;
}

/* Quote Management tab icon */
.wbcom-tabs-section .wcpq-quote-management a:before {
  content: '\f481'; /* dashicons-clipboard */
  color: #646970;
}

/* Email System tab icon */
.wbcom-tabs-section .wcpq-email-system a:before {
  content: '\f465'; /* dashicons-email-alt */
  color: #646970;
}

/* Product Filtering tab icon */
.wbcom-tabs-section .wcpq-product-filtering a:before {
  content: '\f536'; /* dashicons-filter */
  color: #646970;
}

/* Form Enhancements tab icon */
.wbcom-tabs-section .wcpq-form-enhancements a:before {
  content: '\f464'; /* dashicons-forms */
  color: #646970;
}

/* Pricing & Discounts tab icon */
.wbcom-tabs-section .wcpq-pricing-discounts a:before {
  content: '\f153'; /* dashicons-tag */
  color: #646970;
}

/* License tab icon */
.wbcom-tabs-section .wcpq-license a:before {
  content: '\f112'; /* dashicons-admin-network or \f160 lock */
  color: #646970;
}

/* Active tab icon color */
.wbcom-tabs-section .nav-tab-wrapper ul li a.nav-tab-active:before {
  color: #2271b1;
}