/* Min Side - egne stiler, bygger videre på fargevariablene fra /assets/css/main.css */

/* Header er fixed-top (~112px høy) - standardpaddingen på 60px fra main.css er ikke nok
   til å hindre at toppen av innholdet havner bak menyen, derfor økes den her. */
.minside-page .minside {
  padding-top: 140px;
  padding-bottom: 60px;
}

@media (max-width: 1199px) {
  .minside-page .minside {
    padding-top: 120px;
  }
}

.minside-login {
  max-width: 420px;
  margin: 0 auto;
}

.minside-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.minside-login-hint {
  margin-top: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 14px;
}

.minside-intro {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  max-width: 640px;
  margin: 12px auto 30px;
}

.minside-machine-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.minside-machine-header {
  padding: 16px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.minside-machine-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--heading-color);
}

.minside-job-card {
  padding: 20px;
  border-top: 1px dashed color-mix(in srgb, var(--default-color), transparent 90%);
}

.minside-job-card:first-of-type {
  border-top: none;
}

.minside-status-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.minside-timeline {
  margin-top: 20px;
}

.minside-timeline ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.minside-timeline li {
  list-style: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.minside-timeline li.is-done {
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
  color: var(--accent-color);
  font-weight: 600;
}

/* Servicerapport - invoice-aktig visning, gjenskaper strukturen fra minside_old/serviceordre.php */

.minside-invoice {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 10px;
  padding: 30px;
  margin-top: 20px;
}

.minside-invoice-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.minside-invoice-letterhead h1 {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--heading-color);
}

.minside-invoice-letterhead h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 400;
}

.minside-invoice-letterhead h2 small {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin-top: 4px;
}

.minside-invoice-company {
  text-align: right;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.minside-invoice-address {
  margin-bottom: 20px;
  font-size: 15px;
}

.minside-invoice-machine {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.minside-invoice-report-text {
  margin-bottom: 24px;
  line-height: 1.6;
}

.minside-invoice-table {
  margin-top: 10px;
}

.minside-invoice-totals {
  text-align: right;
  margin-top: 10px;
}

.minside-invoice-totals p {
  margin: 4px 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.minside-invoice-totals h3 {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  color: var(--heading-color);
}

.minside-invoice-signature {
  margin-top: 30px;
  font-size: 18px;
}

.minside-invoice-signature table {
  border-collapse: collapse;
}

.minside-invoice-signature td {
  padding: 4px 8px;
}

.minside-signature-line {
  width: 220px;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 40%);
}

.minside-invoice-note {
  margin-top: 16px;
}

.minside-invoice-closing {
  margin-top: 30px;
  font-size: 14px;
  text-align: center;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.minside-vipps-payment {
  margin-top: 16px;
}

.minside-btn-vipps {
  background-color: #FF5B24;
  border-color: #FF5B24;
  color: #fff;
  font-weight: 600;
}

.minside-btn-vipps:hover:not(:disabled) {
  background-color: #e64d18;
  border-color: #e64d18;
  color: #fff;
}

.minside-btn-vipps:disabled {
  opacity: 0.65;
}

.minside-vipps-status {
  margin-top: 8px;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

@media (max-width: 575px) {
  .minside-invoice-header {
    flex-direction: column;
  }

  .minside-invoice-company {
    text-align: left;
  }
}

.minside-cancel-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
