/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


input[type='file'] {
  display: none;
}

.progress-bar {
  height: 24px;
  background-color: #545454;
  color: #FFFFFF;
  margin: 10px;
  border-radius: 10em;
}

.mds .modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.mds .modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}


/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-right: 5px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.drag-drop-area {
    align-items: center;
    background-color: rgb(247, 247, 247);
    border-color: rgb(207, 207, 207);
    border-radius: 4px;
    border-style: dashed;
    border-width: 1px;
    color: rgb(20, 20, 20);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 95%;
    margin: 10px;
    height: 100px;

    &:hover,
    &.drag-over {
        border-color: rgb(0,36,61);
    }
}

.modal-tab {
    width: 100%;
}

.tab-bar {
    background-color: rgb(237, 237, 237);
    line-height: 24px;
    width: 100%;
    height: 50px;
}

.tab-bar-button {
    white-space: nowrap;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: beige;
    padding: 10px;
    border-bottom-color: rgb(219, 219, 219);

    &:hover {
        background-color: rgb(219, 219, 219);
        border-color: black;

    }
}

.mds .tab-bar-button {
    margin-left: 10px;
}

.tab-bar-button p {
    float: right;
    margin-left: 3px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.tab-bar-button span {
    margin-top: 3px;
    float: left;
}

.upload-review-thumbnail {
  border: 1px solid #ddd; /* Gray border */
  border-radius: 4px;  /* Rounded border */
  padding: 5px; /* Some padding */
  width: 30px; /* Set a small width */
  height: 30px;
  float: left;
  margin-right: 5px;
}

#uploads-progress-container {
    float: left;
    margin: 10px;
}

.progress-percent {
    text-align: center;
}

.mc-top-bar {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-areas: 'logo-and-product content actions';
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 64px;
  width: 100%;
}

.logo-and-product {
  grid-area: logo-and-product;
  display: flex;
  text-decoration: none;
}


.product {
  display: flex;
  align-items: center;
  color: rgb(20,20,20);
  padding-left: 20px;

  &::before {
     content: '';
     border-right: 1px solid var(--mds_brand_appearance_neutral_default_border-color);
     display: inline-block;
     height: 26px;
     margin-right: 16px;
     width: 0;
   }
}

.logo {
    line-height: 0;
    width: 121px;
    height: 26px;
    background-image: var(--mds_brand_appearance_static_logo);
}

.with-product-name .logo {
    width: 25px;
}

.searchbar-container {
    position: relative;
    min-width: 100px;
    max-width: 800px; /* Increase max-width for larger screens */
    width: 30%; /* Set a responsive width */
    margin: 0 auto; /* Center the container */
    grid-area: content;
    box-sizing: border-box;
}

.search-field-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.searchbar {
    display: flex;
    align-items: center;
    margin: 10px;
    position: relative;
    height: 30px;
    box-sizing: border-box;
}

.search-field {
    flex: 1;
    border-width: 1px 0 1px 1px;
    border-style: solid;
    border-color: grey;
    border-radius: 5px 0 0 5px;
    outline: 0;
    background-color: #f5f5f5;
    height: 100%;
}

.searchbar button {
    border-radius: 0 5px 5px 0;
    margin: 0;
    height: 100%;
    width: 50px;
    border: none;
    background: #ddd;
    font-size: 17px;
    cursor: pointer;
    border-width: 1px 1px 1px 0px;
    border-style: solid;
    border-color: grey;
}

.search:hover, .search:focus {
    border: 1.5px solid rgb(0,36,61);
    background-color: white;
}

.btn-group button {
  padding: 6px 12px; /* Some padding */
  cursor: pointer; /* Pointer/hand icon */
  float: left; /* Float the buttons side by side */
  font-size: 14px;
  border: none;
}

.btn-group button:last-child {
  border-radius: 0 6px 6px 0;
}

.btn-group button:first-child {
    border-radius: 6px 0 0 6px;
}

.btn-group button:not(:last-child) {
  border-right: none; /* Prevent double borders */
}

/* Clear floats (clearfix hack) */
.btn-group:after {
  content: "";
  clear: both;
  display: table;
}

/* Add a background color on hover */
.btn-group button:hover {
    background-color: rgb(219, 219, 219);
}

.btn-group button p {
    float: right;
    margin-left: 3px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.btn-group button span {
    margin-top: 3px;
    float: left;
}
.btn-group {
    margin-bottom: 15px;
}

.mds .mds-breadcrumb {
    font-size: 16px;
    margin-bottom: 15px;
}

.mds .mds-breadcrumb li {
    font-size: 24px;
}

.mds .mds-breadcrumb ol li:last-child {
    font-size: 24px;
}

nav .mds-breadcrumb {
    margin-bottom: 50px;
}

.mc-pagination ul {
    display: flex;
    gap: var(--mds_core_pagination_gap);
    list-style: none;
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.mc-pagination .ellipsis {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    user-select: none;
}

.modal-form {
    margin: 10px
}

.form-group label {
    display: inline-block;
    min-width: 175px;
}

.modal-form input[type="text"],
.modal-form select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
}


.uploadable-data {
    margin: 10px
}

.mds div h3 {
    margin-bottom: 25px;

}

.scrollable-table {
  overflow-x: auto;
  max-width: 100%;
}

/* Form styles */
form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;

}

form input[type="text"], form select {
    width: 30vw;
    max-width: 30%;
    min-width: 200px;
}

form input[type="submit"] {
    background-color: #4CAF50;
    padding: 8px;
    color: white;
    border: none;
    cursor: pointer;
}

button.delete {
    background-color: red;
    padding: 8px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

/* Docs details styles */
.label-value-container {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    max-width: 50%;
    min-width: 300px;
}

.label-value {
    margin-bottom: 10px;
}

.label-value strong {
    font-weight: bold;
    margin-right: 10px;
}

.label-value label {
    font-weight: bold;
    min-width: 175px;
}

.label-value span {
    color: #333;
}

.vertical_space_20 {
    margin-top: 20px;
}

.button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.btn-maersk {
    background-color: #42b0d5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}