table thead tr th {
    position: relative;
    font-family: "Arial",sans-serif;
    font-size: 14px;
    color: #333;
    font-weight: 700;
}          
          
/* Rush charge notice styling */
.rush-charge-notice {
  margin-top: -16px;
  margin-bottom: 1em;
}

/* Part Number Location link styling */
.part-number-location-link {
  margin-top: -16px;
  margin-bottom: 16px;
}

.part-number-location-link a {
  font-weight: bold;
  text-decoration: underline;
}

.page-repair-approval .field--name-field-send-e-mail-to-customer {
  display: none;
}

.page-repair-approval .form-required::after {
  background-image: none;
}

.page-repair-approval .field--name-field-labor-hours { display: none; }
.page-repair-approval .field--name-field-labor-cost-to-customer { display: block; }
.page-repair-approval .field--name-field-labor-cost-to-customer label::after {
  content: "Repair Charges";
  display: block;
  visibility: visible;
  content: "Repair Charges";
  display: block;
  visibility: visible;
  font-weight: 700;
  font-size: 14px;
  color: #000;
  margin-bottom: 10px;
}
.page-repair-approval .field--name-field-labor-cost-to-customer label {
  font-size: 0;
  line-height: 0;
}
.page-repair-approval .field--name-field-warranty { display: block !important;  pointer-events: none; }
.page-repair-approval #edit-field-warranty-wrapper {
  display: block !important;
  pointer-events: none;
}
.page-repair-approval .field--name-field-abm-total-cost { display: none; }
.page-repair-approval .field--name-field-repair-charges { display: none; }

.field--name-field-cost-calculation .form-control {
  max-width: 100px;
}

/* Print styles - Hide sidebar only when printing */
@media print {
  /* Reduce page margins */
  @page {
    margin: 0.5cm;
  }

  .form-textarea-wrapper textarea.form-textarea {
    overflow-y: hidden !important;
    resize: none !important;
    line-height: 1.4;
    box-sizing: border-box;
    min-height: auto !important;
  }

  #sidebar_first,
  .download-link {
    display: none !important;
    visibility: hidden !important ;
  }

  .page-view-rma-listing tr td:first-child, .page-view-rma-listing tr th:first-child {
    display: none !important;
    visibility: hidden !important ;
  }

  .views-exposed-form {
    margin-bottom: 8px !important;
  }

  .views-exposed-form input, .views-exposed-form .form-actions {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .views-exposed-form .form-actions {
      display: none !important;
  }

  .views-exposed-form .form-item {
    margin-bottom: 4px !important;
  }

  .view-content {
    margin-top: 8px !important;
  }

  .view-header {
    margin-bottom: 4px !important;
  }

  .main-content {
    border: none !important;
    width: 100%;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  * {
    line-height: 1.2 !important;
  }

  .container,
  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  #page-wrapper,
  #page,
  #main-wrapper,
  #main {
    margin: 0 !important;
    padding: 0 !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  main,
  .region-content,
  .layout-content {
    padding: 0 !important;
    padding-left: 12px !important;
    margin: 0 !important;
  }
  
  .navbar-brand img {
    width: 240px !important;
    max-height: 80px !important;
  }

  .ram-search-form .search-filter {
      display: block;
  }

  .site-footer {
    display: none;
  }

  h1.title {
    font-size: 24px !important;
    padding-top: 12px !important;
    padding-left: 12px !important;
  }

  td, th, input {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  input {
    height: fit-content !important;
  }

  .field--name-field-shipping-location {
    display: none !important;
  }

  p, div, span {
    line-height: 1.2 !important;
  }

  #customer-address-container, .field--name-field-shipping-address {
    border: none !important;
    padding: 0 !important;
  }
  
  .field--name-field-shipping-address label {
    display: none !important;
  }

  .field--name-field-shipping-address legend,
  .field--name-field-shipping-address .fieldset-legend {
    display: none !important;
  }

  .field--name-field-shipping-address fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .field--name-field-shipping-address .fieldset-wrapper {
    padding: 0 !important;
    margin: 0 !important;
  }

  .field--name-field-shipping-address .js-form-wrapper,
  .field--name-field-shipping-address .form-wrapper {
    margin-bottom: 0px !important;
    padding: 0 !important;
  }

  .form-wrapper {
    margin-bottom: 4px !important;
  }

  .field--name-field-shipping-address .js-form-item,
  .field--name-field-shipping-address .form-item {
    margin-bottom: 2px !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .field--name-field-shipping-address .address-container-inline {
    display: block !important;
  }

  .field--name-field-shipping-address .address-container-inline .form-item {
    display: inline-block !important;
    margin-right: 8px !important;
  }

  #customer-address-container .field-items div {
    font-size: 12px !important;
  }

  .form-actions {
    display: none !important;
  }

  input,
  textarea,
  select {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 2px 0 !important;
  }

  .form-item {
    margin-bottom: 4px !important;
    margin-top: 0 !important;
  }

  label {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
  }

  .field__label {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .field__item {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  table a {
    font-size: 12px !important;
    text-decoration: none !important;
  }

  thead tr {
    border-bottom: 1px solid #000 !important;
  }

  .form-select option {
    font-size: 12px !important;
  }

  .radio .js-form-item, .part-number-location-link {
    display: none !important;
  }

  .js-form-wrapper {
    margin-bottom: 0 !important;
  }

  .js-form-item {
    margin-bottom: 0 !important;
  }

  .js-form-item label {
    position: relative !important;
  }

  .js-form-item label::after {
    content: ': ';
    font-size: 12px !important;
    position: absolute !important;
    top: 2px !important;
  }

  /* Show only the checked one */
  .radio .js-form-item:has(input:checked) {
    display: block !important;
    padding-left: 0 !important;
  }

  .radio .js-form-item:has(input:checked) input, .description {
    display: none !important;
  }

  .field {
    margin-bottom: 4px !important;
    margin-top: 0 !important;
  }

  .form-textarea {
    overflow: hidden !important;
    resize: none !important;
  }

  .js-form-item:has(input[value=""]) input {
    display: none !important;
  }

  .js-form-type-email, .field--type-datetime, .field--type-datetime, .js-form-type-select, .js-form-type-textfield, .form-type-entity-autocomplete {
    display: flex !important;
    margin-bottom: 4px !important;
    align-items: center !important;
  }

  .js-form-type-email label, .field--type-datetime label, .field--type-datetime label, .js-form-type-select label, .js-form-type-textfield label, .form-type-entity-autocomplete label {
    width: 200px !important;
    min-width: 200px !important;
    flex-shrink: 0 !important;
    padding-right: 8px !important;
  }

  .js-form-type-email input, .js-form-type-email select,
  .js-form-type-select select,
  .js-form-type-textfield input,
  .form-type-entity-autocomplete input {
    flex: 1 !important;
  }

  .description.text-muted {
    display: none !important;
  }
}

/* Item Return Detail page - Make Entered By field inline with auto width */
.node--type-rma-request .field--name-field-entered-by,
.field--name-field-entered-by {
  display: inline-block !important;
  width: auto !important;
  margin-right: 30px !important;
  vertical-align: top !important;
}

/* Make the autocomplete input in Entered By field fit content */
.field--name-field-entered-by .field__item,
.field--name-field-entered-by input {
  width: auto !important;
  display: inline-block !important;
}

/* Fix for print page - Entered By field */
.form-item__value.contact-first-name {
  width: fit-content;
  display: inline-block;
}

div#edit-field-entered-by-wrapper {
  display: inline-block;
}

/* Maintain consistent font sizes for all fields */
.node--type-rma-request .field__label,
.node--type-rma-request .field__item,
.node--type-rma-request .field__item a,
.form-item__value.contact-first-name {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Ensure field labels have consistent styling */
.node--type-rma-request .field__label {
  font-weight: 700 !important;
  margin-bottom: 0 !important;
}

/* Make Initiator's e-mail inline */
.node--type-rma-request .field--name-field-initiator-s-e-mail,
.field--name-field-initiator-s-e-mail {
  display: inline-block !important;
  width: auto !important;
  margin-right: 30px !important;
  vertical-align: top !important;
}

/* Hide RMA Status field on view page (not on forms) */
.node--type-rma-request .field--name-field-rma-status,
.field--name-field-rma-status {
  display: none !important;
}

/* Ensure form fields are not affected */
form .field--name-field-rma-status {
  display: block !important;
}

.page-rma-overview .field--name-field-rma-status {
  display: block !important;
}


.sidebar #block-iis-custom-sidebarmenucustomer ul {
    padding-left: 0;
}

.sidebar #block-abm-custom-sidebarmenucustomer ul li {
    list-style: none;
    margin-bottom: 1rem;
}

.sidebar #block-abm-custom-sidebarmenucustomer ul li a {
    text-decoration: none;
    color: #900;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.42857143;
}

.sidebar #block-abm-custom-sidebarmenucustomer ul li a:hover {
    text-decoration: underline;
    color: #000;
}

body.page-repair-approval input.form-autocomplete {
    background: none !important;
}

.form-textarea-wrapper textarea.form-textarea {
  overflow-y: hidden !important;
  resize: none !important;
  line-height: 1.4;
  box-sizing: border-box;
  min-height: auto !important;
}

/* Created by field styling on item return detail page */
.page-item-return-detail .rma-created-by {
    display: flex;
}

.page-item-return-detail .rma-created-by .label {
    width: 50%;
    margin-right: 30px !important;
    vertical-align: top !important;
    font-weight: 700;
    margin-left: 0;
}

.page-item-return-detail .rma-created-by p {
    margin-bottom: 0;
    margin-left: 4px;
}

div#edit-field-abm-ticket-number-wrapper, 
div#edit-field-organization-wrapper {
    display: none;
}

.page-repair-approval .field--name-field-labor-cost-to-customer,
.page-repair-approval .field--name-field-labor-hours,
.page-repair-approval .field--name-field-abm-total-cost,
.page-repair-approval .field--name-field-cost-calculation {
    display: none !important;
}


.page-repair-approval .field--name-field-repair-charges {
    display: block !important;
}

#edit-field-new-po-wrapper {
    display: block !important;
}

.node--type-rma-request.customer-role div#edit-field-entered-by-wrapper {
    display: none !important;
}
div#edit-field-abm-ticket-number-wrapper, div#edit-field-organization-wrapper {
    display: none;
}

.ram-search-form th.views-field-created {
  width: 10%;
}