@import url('/styles/dark-theme.css');

@media (max-width: 600px) {
  .order-table {
    display: block;
    overflow-x: auto;
  }
}

input:focus {
    outline: none;
}

.bruker-container {
    display: flex;
    height: 1200px;
}

.bruker-wrapper {
    min-width: 90%;
    display: flex;
    flex-direction: column;
}

.bruker-nav {
    height: 30px;
    display: flex;
    align-items: center;
}

.bruker-nav_ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    height: 100%;
    caret-color: transparent;
}

.bruker-nav_ul li {
    display: flex;
    align-items: center;
    padding: 0 40px;
    height: 100%;
    background-color: lightgray;
    user-select: none;
}

.bruker-nav_ul li:hover {
    background-color: #c9c9c9;
}

.brukerDiv {
    margin: 40px 40px;
    display: none;
}

.adresse-input-ul {
    list-style: none;
    padding-left: 0;
    line-height: 1.5;
}

.adresse-input-ul li {
    padding: 5px 0;
}

.adresse-input {
    margin: 0 10px;
    padding: 0 10px;
    height: 24px;
}

#submit {
    margin-left: 300px;
}

.clearDetails {
    padding: 15px;
    margin-left: 500px;
}

.title {
    padding: 15px;
    font-weight: 500;
}

.subheader {
    display: flex;
    padding: 1rem 0;
    width: 100%;
    border-bottom: solid 2px #c9c9c9;
    align-items: center;
}

.subheader-left {
    display: flex;
    flex: 1 1 60%;
    padding-right: 15px;
}

.subheader-right {
    display: flex;
    flex: 1 1 40%;
    padding-right: 15px;
}

.subheader-amount, .subheader-price, .subheader-total, .subheader-delete {
    min-width: 60px;
    display: flex;
    align-items: center;
}

.subheader-amount {
    flex: 0 1 120px;
    justify-content: center;
    text-align: center;
}

.subheader-price {
    flex: 0 1 120px;
    justify-content: end;
    text-align: right;
}

.subheader-total {
    flex: 0 1 120px;
    justify-content: end;
    text-align: right;
}

.subheader-delete {
    flex: 0 1 120px;
    justify-content: end;
    text-align: right;
}

.items {
    padding: 15px;
    align-items: center;
}

.item {
    min-height: 95px;
    display: flex;
    width: 100%;
    align-items: center;
    border-bottom: solid 1px #e6e6e6;
    
}

.item:first-of-type {
    padding-top: 5px;
    padding-bottom: 20px;
}

.item:not(:first-of-type) {
    padding: 20px 0;
}

.item-left {
    display: flex;
    flex: 1 1 60%;
    padding-right: 15px;
}

.item-picture {
    height: 100px;
}

.item-picture img {
    min-width: 100px;
}

.item-title-and-text {
    
}

.item-title {
    font-size: 16px;
    padding-bottom: 5px;
}

.item-text {
    font-size: 14px;
}

.item-right {
    display: flex;
    flex: 1 1 40%;
}

.item-amount, .item-price, .item-div-total, .item-delete {
    
}

.item-amount {
    display: flex;
    flex: 0 1 120px;
    text-align: center;
    min-width: 60px;
    justify-content: center;
    align-items: center;
}

.item-amount button {
    width: 25px;
}

.input-amount {
    flex: 1;
    text-align: center;
    width: 45px;
}

.item-price {
    display: flex;
    flex: 0 1 120px;
    text-align: right;
    min-width: 60px;
    justify-content: end;
    align-items: center;
}

.item-div-total {
    display: flex;
    flex: 0 1 120px;
    text-align: right;
    min-width: 60px;
    justify-content: end;
    align-items: center;
}

.item-delete {
    display: flex;
    flex: 0 1 60px;
    text-align: right;
    min-width: 60px;
    justify-content: end;
    align-items: center;
}

.item-delete-anchor {
    display: flex;
    justify-content: end;
    align-items: center;
    cursor: pointer;
}

.content-footer {
    display: flex;
    padding: 15px;
    /* align-items: center; */
    justify-content: space-between;
    align-items: center;
}

.ønskelister-footer button {
    width: 160px;
    font-size: 16px;
    font-weight: 500;
}

.ønskelister-footer {
    display: flex;
    padding: 1rem 0;
    width: 100%;
    border-bottom: solid 2px #c9c9c9;
    align-items: center;
    justify-content: space-between;
}

.content {
    padding: 15px;
}

.content h2, .content p {
    padding: 8px 0;
}

.content-footer-left {
    display: flex;
    height: 40px;
    flex: 1 1 60%;
    padding-right: 15px;
    justify-content: center;
}

.content-footer-right {
    display: flex;
    flex: 1 1 40%;
    padding-right: 15px;
}

.content-footer-amount, .content-footer-price, .content-footer-total, .content-footer-delete {
    min-width: 60px;
    display: flex;
    align-items: center;
}

.content-footer-amount {
    flex: 0 1;
    justify-content: center;
    text-align: center;
}

.content-footer-price {
    flex: 0 1;
    justify-content: end;
    text-align: right;
}

.content-footer-total {
    flex: 0 1 360px;
    justify-content: end;
    text-align: right;
}

.content-footer-delete {
    flex: 0 1 60px;
    justify-content: end;
    text-align: right;
}

.navigation-item:hover {
    cursor: pointer;
    user-select: none; /* Standard syntax */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.order-table th,
.order-table td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: top;
}

.order-table th {
  background-color: #f2f2f2;
  font-weight: 500;
}

.order-table td ul {
  margin: 0;
  padding: 0;
}

.order-table td ul li {
  margin: 5px 0;
  color: #34495e;
}

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

/* Ensure the table fits within the .items container */
.items {
  padding: 0; /* Override existing padding to match table styling */
}
/* ===== Order Detail Page (bruker.html inline + historikk.html) ===== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #3b82f6;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.back-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.order-detail-loading {
  padding: 24px 0;
  color: #6b7280;
  font-size: 14px;
}

.order-detail-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0 16px;
  border-bottom: 2px solid #e5e7eb;
  gap: 14px;
  margin-bottom: 4px;
}

.order-detail-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.order-detail-meta {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
}

.order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-spor-pakke {
  padding: 9px 18px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-spor-pakke:hover {
  background: #1e3a8a;
}

.btn-returner {
  padding: 9px 18px;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: background 0.15s;
}

.btn-returner:hover {
  background: #f9fafb;
}

.returner-wrapper {
  position: relative;
}

.returner-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 220px;
  overflow: hidden;
}

.returner-dropdown.open {
  display: block;
}

.returner-dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
}

.returner-dropdown a:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.tracking-no-info {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}

.order-products-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 0;
}

.order-products-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.order-products-table th.text-right,
.order-products-table td.text-right {
  text-align: right;
}

.order-products-table th.text-center,
.order-products-table td.text-center {
  text-align: center;
}

.order-products-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #1f2937;
}

.order-products-table tr:last-child td {
  border-bottom: none;
}

.order-detail-total-row {
  display: flex;
  justify-content: flex-end;
  padding: 16px 14px 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  gap: 32px;
  border-top: 2px solid #e5e7eb;
  margin-top: 4px;
}

/* Return modal */
.return-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.return-modal-overlay.open {
  display: flex;
}

.return-modal {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.return-modal h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.return-modal p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.return-product-list {
  margin-bottom: 8px;
}

.return-product-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.return-product-checkbox:last-child {
  border-bottom: none;
}

.return-product-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.return-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

.btn-send-retur {
  padding: 9px 20px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-send-retur:hover {
  background: #1e3a8a;
}

.btn-send-retur:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-avbryt {
  padding: 9px 20px;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}

.btn-avbryt:hover {
  background: #f9fafb;
}

.return-success-msg {
  color: #15803d;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
}

