/* ============================================================
   Maersk MDS-aligned shared theme
   Used across: generate, dashboard, oneclick, more-updates,
   start, quick. Loaded after the MDS foundations + tokens CSS.
   ============================================================ */

:root {
  --mk-deep: #00243d;      /* Maersk deep blue (primary)   */
  --mk-blue: #0073aa;      /* Maersk action blue           */
  --mk-cyan: #42b0d5;      /* Maersk star cyan             */
  --mk-ink: #141414;       /* Header text                  */
  --mk-text: #1b2733;
  --mk-muted: #5b6477;
  --mk-border: #e2e6ee;
  --mk-line: #eef1f6;
  --mk-bg: #f4f6f8;
  --mk-card: #ffffff;
  --mk-accent: #e7f3fb;
  --mk-success: #16a34a;
  --mk-warning: #b45309;
  --mk-danger: #dc2626;
  --mk-radius: 14px;
  --mk-radius-lg: 20px;
  --mk-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --mk-shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Maersk Text", Arial, sans-serif;
  color: var(--mk-text);
  background: var(--mk-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Maersk Headline", "Maersk Text", Arial, sans-serif; }

/* ---------- App header bar ---------- */
.mk-header {
  background: #fff;
  border-bottom: 1px solid var(--mk-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.mk-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mk-brand { display: flex; align-items: center; gap: 0; min-width: 0; }
.mk-logo { width: 32px; height: 32px; flex-shrink: 0; display: flex; }
.mk-logo svg { display: block; width: 100%; height: 100%; }
.mk-divider { width: 1px; height: 26px; background: #d4d4d4; margin: 0 14px; flex-shrink: 0; }
.mk-title {
  color: var(--mk-ink);
  font-size: 16px;
  font-weight: 500;
  font-family: "Maersk Text", Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- Language toggle (segmented, top-right) ---------- */
.mk-lang {
  display: inline-flex;
  gap: 2px;
  background: #f0f2f5;
  border: 1px solid var(--mk-border);
  border-radius: 999px;
  padding: 3px;
}
.mk-lang .lang-btn {
  background: transparent;
  border: 0;
  color: #4c4c4c;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Maersk Text", Arial, sans-serif;
  transition: background .15s, color .15s;
  line-height: 1;
}
.mk-lang .lang-btn:hover { background: #e4e8ee; }
.mk-lang .lang-btn.active { background: var(--mk-deep); color: #fff; }

/* ---------- Layout shells ---------- */
.mk-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.mk-main.narrow { max-width: 860px; }
.mk-main.slim { max-width: 640px; }

/* ---------- Cards ---------- */
.mk-card {
  background: var(--mk-card);
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius-lg);
  box-shadow: var(--mk-shadow);
  padding: 22px;
}
.mk-card + .mk-card { margin-top: 16px; }
.mk-card h1 { margin: 0 0 4px; font-size: 22px; color: var(--mk-deep); }
.mk-card h2 { margin: 0 0 4px; font-size: 17px; color: var(--mk-deep); }
.mk-sub { color: var(--mk-muted); font-size: 14px; line-height: 1.5; margin: 0 0 6px; }

/* ---------- Pills / badges ---------- */
.mk-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mk-accent);
  color: var(--mk-deep);
  font-size: 15px;
  font-weight: 800;
  border: 1px solid #cfe6f5;
  white-space: nowrap;
}
.mk-eyebrow {
  color: var(--mk-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Forms ---------- */
.mk-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.mk-input, .mk-select, .mk-textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--mk-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.mk-input:focus, .mk-select:focus, .mk-textarea:focus {
  border-color: var(--mk-blue);
  box-shadow: 0 0 0 3px rgba(0, 115, 170, .15);
}
.mk-textarea { min-height: 100px; resize: vertical; }
.mk-field { min-width: 0; }
.mk-field + .mk-field { margin-top: 14px; }

/* ---------- Buttons ---------- */
.mk-btn {
  appearance: none;
  border: 1px solid var(--mk-deep);
  background: var(--mk-deep);
  color: #fff;
  border-radius: var(--mk-radius);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  transition: filter .15s, background .15s;
}
.mk-btn:hover { filter: brightness(1.08); }
.mk-btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.mk-btn.secondary { background: #fff; color: var(--mk-deep); border-color: var(--mk-border); }
.mk-btn.secondary:hover { background: #f6f8fb; filter: none; }
.mk-btn.ghost { background: transparent; border-color: var(--mk-border); color: var(--mk-deep); }
.mk-btn.stop { background: #334155; border-color: #334155; }
.mk-btn.block { width: 100%; }

/* ---------- Status / alerts ---------- */
.mk-status {
  margin-top: 16px;
  border-radius: var(--mk-radius);
  border: 1px dashed var(--mk-border);
  background: #fbfcff;
  padding: 12px 14px;
  font-size: 14px;
}
.mk-ok { color: var(--mk-success); font-weight: 800; }
.mk-warn { color: var(--mk-warning); font-weight: 800; }
.mk-err { color: var(--mk-danger); font-weight: 800; }

.mk-muted { color: var(--mk-muted); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.mk-footer {
  background: #fff;
  border-top: 1px solid var(--mk-border);
  padding: 16px;
}
.mk-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--mk-muted);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .mk-header-inner { height: 54px; padding: 0 12px; }
  .mk-title { font-size: 14px; }
  .mk-divider { margin: 0 10px; }
  .mk-main { padding: 14px 12px 28px; }
  .mk-card { padding: 16px; border-radius: 16px; }
  .mk-card h1 { font-size: 19px; }
  .mk-lang .lang-btn { padding: 6px 10px; font-size: 12px; }
}
