/* Anställd-portal global styles. Mobil-first med desktop-skalning. */

.anstalld-layout {
  min-height: 100vh;
  background: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: 64px; /* utrymme för bottom-nav på mobil */
}

@media (min-width: 768px) {
  .anstalld-layout {
    padding-bottom: 0;
  }
}

.anstalld-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
}

@media (min-width: 768px) {
  .anstalld-main {
    padding: 32px 24px;
  }
}

/* Top-nav (synlig på desktop, slimmad på mobil) */
.anstalld-topnav {
  background: #1a365d;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.anstalld-topnav-brand {
  font-weight: 600;
  font-size: 16px;
}
.anstalld-topnav-user {
  font-size: 13px;
  opacity: 0.85;
}

/* Bottom-nav (mobil only) */
.anstalld-bottomnav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 100;
}

@media (min-width: 768px) {
  .anstalld-bottomnav {
    display: none;
  }
}

.anstalld-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  min-height: 56px;
  color: #64748b;
  font-size: 11px;
  text-decoration: none;
  gap: 4px;
}
.anstalld-bottomnav a.active {
  color: #1a365d;
  font-weight: 600;
}

.anstalld-bottomnav-icon {
  width: 22px;
  height: 22px;
}

/* Dashboard-kort */
.anstalld-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}

.anstalld-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 6px;
}

.anstalld-card-body {
  color: #64748b;
  font-size: 13px;
}

.anstalld-greeting {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 6px;
}
.anstalld-greeting-sub {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 20px;
}

/* PDF-iframe i kvitto-detaljvy: mobil = 400px, desktop = 600px */
.anstalld-pdf-frame {
  height: 400px;
}
@media (min-width: 768px) {
  .anstalld-pdf-frame {
    height: 600px;
  }
}
