/* Multifix Limburg — portal-achtige login (multifixlimburg.nl) + mailkleuren */

:root {
  --mfx-portal-blue: #4499dc;
  --mfx-portal-blue-hover: #3a87c7;
  --mfx-portal-canvas: #e8ecf0;
  --mfx-portal-text: #131a21;
  --mfx-portal-muted: #5c6b7a;
  --mfx-portal-border: #d1dae3;
  --mfx-portal-shadow: 0 1px 3px rgba(19, 26, 33, 0.08), 0 8px 24px rgba(19, 26, 33, 0.06);
  --mfx-primary: #0f766e;
  --mfx-primary-dark: #0d5c56;
  --mfx-ink: #0f172a;
  --mfx-surface: #f8fafc;
}

html, body {
  font-family: "Inter", "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Prevent mobile/OS text autoscaling (gigantic UI) */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-size: 14px;
}

/* --- Login: zelfde sfeer als publieke portal-login (grijs canvas, witte kaart, blauw) --- */
body.task-login #logo,
body.task-login img#logo,
body.task-login a#logo {
  display: none !important;
}

body.task-login h1.voice {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.task-login #layout-content,
body.task-login .content,
body.task-login .mfx-rc-login {
  background: var(--mfx-portal-canvas) !important;
  background-image: none !important;
}

body.task-login #layout-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
  padding: 1.25rem 1rem 2rem;
  box-sizing: border-box;
}

body.task-login #login-form.mfx-login-card,
body.task-login #login-form {
  width: min(100%, 430px);
  margin: 0 auto;
  border-radius: 6px !important;
  box-shadow: var(--mfx-portal-shadow) !important;
  border: 1px solid var(--mfx-portal-border) !important;
  background: #fff !important;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.2rem, 2.5vw, 1.75rem) clamp(1.35rem, 3vw, 2rem) !important;
  box-sizing: border-box;
}

body.task-login #login-form h1 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mfx-portal-text) !important;
  text-align: center;
  line-height: 1.25;
}

body.task-login #login-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 0.35rem;
}

body.task-login #login-form .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.58rem 0.75rem;
  border: 1px solid var(--mfx-portal-border);
  border-radius: 3px;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

body.task-login #login-form .form-control:focus {
  outline: none;
  border-color: var(--mfx-portal-blue);
  box-shadow: 0 0 0 1px var(--mfx-portal-blue);
}

body.task-login #login-form button.mainaction {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25rem;
  padding: 0.62rem 1rem !important;
  border: 0 !important;
  border-radius: 3px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  cursor: pointer;
  background: var(--mfx-portal-blue) !important;
  box-shadow: none !important;
  transition: background 0.12s ease;
}

body.task-login #login-form button.mainaction:hover {
  filter: none;
  background: var(--mfx-portal-blue-hover) !important;
}

body.task-login .mfx-login-footer,
body.task-login #login-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--mfx-portal-muted);
  margin-top: 0.75rem;
}

body.task-login #login-form table tr:first-child td.input,
body.task-login #login-form table tr:first-child td[colspan="2"] {
  padding-top: 0;
}

.mfx-login-brandwrap {
  text-align: center;
  margin: 0 0 0.85rem;
  padding: 0 0 0.35rem;
}

.mfx-login-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.mfx-login-subtitle {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--mfx-portal-muted);
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 480px) {
  body.task-login #login-form.mfx-login-card,
  body.task-login #login-form {
    margin: 0 0.35rem;
    padding: 1.1rem 1rem 1.35rem !important;
  }
  body.task-login #login-form h1 {
    font-size: 1.2rem;
  }
}

/* --- Mail --- */
body.task-mail #layout-sidebar,
body.task-mail .sidebar {
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

body.task-mail .listing tbody tr.selected {
  background: rgba(15, 118, 110, 0.12) !important;
}

body.task-mail .toolbar a.button.selected {
  background: var(--mfx-primary) !important;
  border-color: var(--mfx-primary-dark) !important;
}

body.task-mail #layout > div > .header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

body.task-mail .toolbar .button:not(.disabled):hover {
  border-color: rgba(15, 118, 110, 0.35);
}

body.task-mail #layout-sidebar .button.compose {
  background: linear-gradient(145deg, var(--mfx-primary), #0d9488) !important;
  border-color: var(--mfx-primary-dark) !important;
  color: #fff !important;
  font-weight: 600;
}

body.task-mail #layout-sidebar .button.compose:hover {
  filter: brightness(1.04);
}

body.task-mail .messagelist td.subject,
body.task-mail .messagelist td.fromto {
  font-size: 0.9375rem;
}

@media screen and (max-width: 768px) {
  body.task-mail .toolbar {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  body.task-mail .listing thead {
    display: none;
  }
}

/* --- Roundcube login + portal split (Elastic JS past login-form nog steeds aan) --- */
html.mfx-rc-htmlfix,
html {
  height: 100%;
}

body.mfx-mail-portal-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
}

body.mfx-mail-portal-login #layout {
  flex: 1 1 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent !important;
}

body.mfx-mail-portal-login #layout .portal-login-split-stage {
  flex: 1 1 0;
  min-height: 0;
}

body.mfx-mail-portal-login #login-form,
body.mfx-mail-portal-login form#login-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  max-width: none;
}

body.mfx-mail-portal-login #rcmloginsubmit {
  border-radius: 3px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: #4499dc !important;
  border: 0 !important;
  color: #fff !important;
  width: 100% !important;
  padding: 0.62rem 1rem !important;
}

body.mfx-mail-portal-login #rcmloginsubmit:hover {
  background: #3a87c7 !important;
}

body.mfx-mail-portal-login .input-group-text.icon {
  background: #f1f5f9;
  border-color: #d1dae3;
}


/* Bootstrap v4 fallback */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}


body.task-login #layout{width:100%;min-height:100vh;background:var(--mfx-portal-canvas)!important;}
body.task-login #layout-content.mfx-rc-login{margin:0 auto;max-width:430px;}
