:root {
  --geted-blue: #00348d;
  --geted-blue-dark: #00256c;
  --geted-red: #ee0b16;
  --geted-ink: #0b1d3f;
  --geted-muted: #5d6575;
  --geted-line: #dfe5ef;
  --geted-soft: #f4f7fb;
  --geted-white: #ffffff;
  --geted-shadow: 0 18px 44px rgba(0, 39, 106, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--geted-ink);
  background: #f7f9fc;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--geted-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 37, 108, 0.88), rgba(0, 52, 141, 0.76)),
    url("../img/portfolio/tablero-distribucion.jpg") center/cover;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-top: 4px solid #14b8c4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--geted-shadow);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  margin-bottom: 30px;
}

.auth-logo img {
  width: 180px;
  height: 64px;
  object-fit: contain;
}

.auth-panel h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.auth-copy {
  margin: 10px 0 26px;
  color: var(--geted-muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: #263956;
  font-size: 14px;
  font-weight: 800;
}

.auth-form > label:not(.check-field) {
  margin-top: 6px;
}

.auth-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--geted-line);
  border-radius: 7px;
  color: #647184;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input:focus-within {
  border-color: #087f91;
  box-shadow: 0 0 0 3px rgba(8, 127, 145, 0.12);
}

.auth-input > i {
  display: grid;
  width: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: #087f91;
  font-size: 20px;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--geted-line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--geted-ink);
  background: #fff;
}

.auth-form .auth-input input[type="text"],
.auth-form .auth-input input[type="password"] {
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 0 7px 7px 0;
  padding: 10px 12px 10px 0;
  outline: 0;
  box-shadow: none;
}

.auth-form input:focus {
  border-color: var(--geted-blue);
  outline: 3px solid rgba(0, 52, 141, 0.14);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0 3px;
}

.check-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--geted-blue);
}

.form-alert {
  border: 1px solid rgba(238, 11, 22, 0.24);
  border-radius: 8px;
  padding: 12px;
  color: #950009;
  background: rgba(238, 11, 22, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.auth-form button,
.welcome-band a,
.user-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--geted-white);
  background: var(--geted-red);
  box-shadow: 0 12px 22px rgba(0, 39, 106, 0.14);
  cursor: pointer;
  font-weight: 900;
}

.auth-form > button {
  min-height: 48px;
  margin-top: 2px;
}

.auth-form button:hover,
.welcome-band a:hover,
.user-menu button:hover {
  background: #c9000b;
}

.intranet-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.intranet-sidebar {
  padding: 22px;
  border-right: 1px solid var(--geted-line);
  background: var(--geted-white);
}

.intranet-brand {
  display: block;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--geted-line);
}

.intranet-brand img {
  width: 190px;
  height: auto;
}

.intranet-nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.intranet-nav a,
.intranet-nav span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  color: #293a58;
  font-weight: 800;
}

.intranet-nav .active {
  color: var(--geted-white);
  background: var(--geted-blue);
}

.intranet-nav span {
  color: var(--geted-muted);
  background: var(--geted-soft);
}

.intranet-main {
  min-width: 0;
}

.intranet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--geted-line);
  background: var(--geted-white);
}

.intranet-topbar h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--geted-muted);
  font-size: 14px;
  font-weight: 800;
}

.user-menu button {
  width: 44px;
  padding: 0;
}

.intranet-content {
  display: grid;
  gap: 22px;
  padding: 32px;
}

.welcome-band,
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 8px;
  padding: 28px;
  color: var(--geted-white);
  background:
    linear-gradient(90deg, rgba(0, 37, 108, 0.95), rgba(0, 52, 141, 0.88)),
    url("../img/hero-transformer-inspection.png") center/cover;
  box-shadow: var(--geted-shadow);
}

.dashboard-head {
  color: var(--geted-ink);
  background: var(--geted-white);
}

.welcome-band h2,
.dashboard-head h2 {
  margin: 0;
  font-size: 32px;
}

.welcome-band p,
.dashboard-head p {
  max-width: 680px;
  margin: 10px 0 0;
  line-height: 1.6;
}

.welcome-band p {
  color: rgba(255, 255, 255, 0.84);
}

.dashboard-head p {
  color: var(--geted-muted);
}

.welcome-band a,
.ghost-link {
  flex: 0 0 auto;
  padding: 0 16px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--geted-line);
  border-radius: 8px;
  color: var(--geted-blue);
  background: var(--geted-white);
  font-weight: 900;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.dashboard-primary {
  display: grid;
  gap: 20px;
}

.dashboard-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.stats-grid,
.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.module-card,
.profile-card,
.activity-card {
  border: 1px solid var(--geted-line);
  border-radius: 8px;
  padding: 22px;
  background: var(--geted-white);
  box-shadow: 0 10px 28px rgba(0, 39, 106, 0.07);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card i,
.module-card i,
.profile-card > i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--geted-blue);
  background: rgba(0, 52, 141, 0.08);
  font-size: 24px;
}

.stat-card span {
  display: block;
  color: var(--geted-muted);
  font-size: 14px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.module-section {
  display: grid;
  gap: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--geted-muted);
}

.module-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.module-card p {
  min-height: 48px;
  margin: 0;
  color: var(--geted-muted);
  line-height: 1.5;
}

.module-card span {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--geted-blue);
  background: rgba(0, 52, 141, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.module-card.disabled {
  opacity: 0.62;
}

.profile-card h3 {
  margin: 18px 0 6px;
  font-size: 20px;
}

.profile-card p {
  margin: 0;
  color: var(--geted-muted);
  overflow-wrap: anywhere;
}

.profile-card span {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--geted-blue);
  background: rgba(0, 52, 141, 0.08);
  font-size: 13px;
  font-weight: 900;
  text-transform: capitalize;
}

.activity-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.activity-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #34445f;
  font-size: 14px;
  font-weight: 800;
}

.activity-card li i {
  color: var(--geted-blue);
  font-size: 20px;
}

@media (max-width: 920px) {
  .intranet-shell {
    grid-template-columns: 1fr;
  }

  .intranet-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--geted-line);
  }

  .intranet-nav,
  .stats-grid,
  .module-grid,
  .dashboard-grid,
  .stats-grid.compact,
  .module-grid.compact {
    grid-template-columns: 1fr;
  }

  .welcome-band,
  .dashboard-head,
  .intranet-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .auth-panel,
  .intranet-content,
  .intranet-topbar,
  .welcome-band {
    padding: 22px;
  }
}

/* Intranet portal */
.portal-body {
  min-height: 100vh;
  background: #eef3f7;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 78px;
  padding: 0 24px;
  color: #fff;
  background: #001d46;
  box-shadow: 0 8px 24px rgba(0, 29, 70, 0.18);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.portal-brand img {
  width: 116px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.portal-brand span {
  color: #20cfda;
  font-size: 10px;
  font-weight: 900;
}

.portal-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
}

.portal-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 94px;
  padding: 0 14px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-nav a i { font-size: 20px; }
.portal-nav a:hover,
.portal-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.portal-nav a.active::after { content: ""; position: absolute; right: 14px; bottom: 5px; left: 14px; height: 3px; border-radius: 3px; background: #20cfda; }

.portal-account { display: flex; align-items: center; gap: 10px; padding-left: 18px; }
.account-copy { display: grid; max-width: 160px; }
.account-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { margin-top: 3px; color: #8bdbe0; font-size: 10px; }
.portal-account form { margin: 0; }
.portal-account button,
.icon-button { display: grid; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 0; place-items: center; color: #fff; background: transparent; cursor: pointer; font-size: 18px; }
.admin-shortcut { display: flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid rgba(32,207,218,.5); border-radius: 6px; padding: 0 10px; color: #fff; font-size: 12px; font-weight: 800; }

.portal-main { width: min(1500px, 100%); min-height: calc(100vh - 136px); margin: 0 auto; padding: 24px; }
.portal-hero { min-height: 280px; border: 1px solid #dce5ee; border-radius: 8px; background: #fff url("../img/hero-transformer-inspection.png") center/cover no-repeat; box-shadow: 0 10px 28px rgba(0,29,70,.08); }
.hero-copy { width: min(52%, 620px); padding: 44px 40px; }
.hero-copy h1 { margin: 0; color: #071b38; font-size: clamp(34px, 4vw, 55px); line-height: 1.02; }
.hero-copy h1 strong { display: block; color: #003c84; }
.hero-copy p { max-width: 530px; margin: 18px 0 0; color: #34445b; font-size: 17px; line-height: 1.55; }

.role-workspace { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; border-left: 5px solid #20aeb9; border-radius: 6px; padding: 18px 22px; color: #fff; background: #003c62; }
.content-workspace { border-left-color: #f1ae1b; background: #305145; }
.role-workspace h2 { margin: 4px 0; font-size: 22px; }
.role-workspace p { margin: 0; color: rgba(255,255,255,.78); }
.workspace-label { color: #78e2e7; font-size: 11px; font-weight: 900; text-transform: uppercase; }

.primary-button,
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 0; border-radius: 6px; padding: 0 16px; cursor: pointer; font-weight: 900; }
.primary-button { color: #fff; background: #006f85; }
.role-workspace .primary-button { color: #003047; background: #fff; }
.secondary-button { border: 1px solid #cad5e1; color: #173655; background: #fff; }

.role-stats { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.role-stats article { display: flex; align-items: center; gap: 13px; border: 1px solid #dce5ee; border-radius: 6px; padding: 15px; background: #fff; }
.role-stats article > i { display: grid; width: 40px; height: 40px; border-radius: 6px; place-items: center; color: #006f85; background: #e1f3f4; font-size: 21px; }
.role-stats strong,
.role-stats span { display: block; }
.role-stats strong { font-size: 22px; }
.role-stats span { margin-top: 2px; color: #637083; font-size: 12px; }

.access-section { margin-top: 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 26px; }
.section-heading p { max-width: 480px; margin: 0; color: #647184; font-size: 14px; text-align: right; }
.access-grid { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.technical-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0; align-items: stretch; }
.technical-card { --technical-accent: #0757a3; --technical-tint: #edf5ff; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dce5ee; border-top: 5px solid var(--technical-accent); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(0,29,70,.07); }
.technical-lighting { --technical-accent: #966000; --technical-tint: #fff7e5; }
.technical-telecom { --technical-accent: #087582; --technical-tint: #eaf8f8; }
.technical-card-image-link { display: block; overflow: hidden; }
.technical-card-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .2s ease; }
.technical-card-image-link:hover .technical-card-image { transform: scale(1.025); }
.technical-entry { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 20px 20px; padding: 15px 18px; border-radius: 10px; background: var(--technical-accent); color: #fff; font-size: 14px; font-weight: 700; }
.technical-card a:focus-visible { outline: 3px solid var(--technical-accent); outline-offset: 3px; }
.technical-card h2 a:hover { text-decoration: underline; }
.technical-detail-image { display: block; width: min(100%, 900px); height: auto; margin: 24px auto; border-radius: 16px; box-shadow: var(--geted-shadow); }
@media (prefers-reduced-motion: reduce) { .technical-card-image { transition: none; } }
.technical-card-header { padding: 28px 26px 24px; border-bottom: 1px solid #e7edf4; background: linear-gradient(145deg, var(--technical-tint), #fff); }
.technical-card-icon { display: grid; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 15px; place-items: center; color: #fff; background: var(--technical-accent); font-size: 28px; box-shadow: 0 6px 14px rgba(0,29,70,.1); }
.technical-card h2 { margin: 0; color: var(--technical-accent); font-size: 28px; line-height: 1.2; letter-spacing: -.5px; }
.technical-card h2 span { display: block; margin-top: 10px; color: #263a54; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.technical-card-body { flex: 1; padding: 24px 26px; }
.technical-card-body p { margin: 0 0 20px; color: #536174; font-size: 14px; line-height: 1.85; }
.technical-card-body p:last-child { margin-bottom: 0; }
.technical-regulation { display: flex; align-items: flex-start; gap: 12px; margin: 0 20px 20px; padding: 18px; border: 1px solid var(--technical-tint); border-radius: 12px; background: var(--technical-tint); }
.technical-regulation > i { flex-shrink: 0; color: var(--technical-accent); font-size: 22px; }
.technical-regulation p { margin: 0; color: #37475c; font-size: 13px; line-height: 1.65; }
.technical-regulation strong { display: block; margin-bottom: 5px; color: var(--technical-accent); }
@media (max-width: 1100px) { .technical-grid { grid-template-columns: 1fr; } .technical-card-header { display: flex; align-items: center; gap: 20px; } .technical-card-icon { flex-shrink: 0; margin-bottom: 0; } }
@media (max-width: 560px) { .technical-grid { gap: 20px; margin-top: 20px; } .technical-card-header { align-items: flex-start; padding: 22px 20px; gap: 14px; } .technical-card-icon { width: 44px; height: 44px; font-size: 24px; } .technical-card h2 { font-size: 24px; } .technical-card h2 span { font-size: 14px; } .technical-card-body { padding: 22px 20px; } .technical-regulation { margin: 0 16px 16px; padding: 16px; } }
.access-card { display: flex; min-height: 240px; flex-direction: column; align-items: flex-start; border: 1px solid #dce5ee; border-top: 4px solid currentColor; border-radius: 7px; padding: 22px 18px 18px; background: #fff; box-shadow: 0 8px 22px rgba(0,29,70,.06); transition: transform .18s ease, box-shadow .18s ease; }
.access-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,29,70,.11); }
.access-card > i { display: grid; width: 52px; height: 52px; border-radius: 50%; place-items: center; background: currentColor; font-size: 27px; }
.access-card > i::before { color: #fff; }
.access-card h3 { min-height: 42px; margin: 18px 0 8px; color: #10233d; font-size: 17px; }
.access-card p { flex: 1; margin: 0; color: #697587; font-size: 13px; line-height: 1.5; }
.access-card > span { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; font-size: 12px; font-weight: 900; }
.tone-blue { color: #0757a3; }.tone-violet { color: #7952a5; }.tone-green { color: #4d852d; }.tone-orange { color: #d96518; }.tone-gold { color: #bd8500; }.tone-cyan { color: #058393; }
.access-card.locked { color: #8993a1; background: #e8edf1; box-shadow: none; opacity: .76; }
.access-card.locked:hover { transform: none; }

.newspaper-edition { display: flex; min-width: 0; flex-direction: column; }
.newspaper-edition .access-card { flex: 1; }
.newspaper-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.newspaper-actions > a, .newspaper-actions > form { flex: 1; min-width: 90px; }
.newspaper-actions form { margin: 0; }
.edition-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; text-decoration: none; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.edition-action i { font-size: 17px; }
.edition-action-edit { color: #075985; background: #eef8fc; border-color: #b9dce9; }
.edition-action-edit:hover { color: #06466a; background: #dceff8; border-color: #83bed6; box-shadow: 0 3px 8px rgba(7,89,133,.1); }
.edition-action-delete { color: #b42332; background: #fff2f3; border-color: #f0c6cb; }
.edition-action-delete:hover { color: #921b28; background: #ffe1e5; border-color: #df939e; box-shadow: 0 3px 8px rgba(180,35,50,.1); }
.edition-action:focus-visible { outline: 3px solid #087d99; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .edition-action { transition: none; } }

.portal-footer { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 max(24px, calc((100vw - 1452px)/2)); color: rgba(255,255,255,.78); background: #001d46; font-size: 13px; }
.portal-footer i { margin-right: 7px; color: #20cfda; font-size: 19px; }
.portal-footer strong { color: #20cfda; }
.flash-message { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; border: 1px solid; border-radius: 6px; padding: 12px 14px; font-weight: 800; }
.flash-message.success { border-color: #afd8bd; color: #24633c; background: #edf8f0; }.flash-message.error { border-color: #edbdc0; color: #8c252b; background: #fff1f2; }

.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid #dce5ee; padding: 6px 0 20px; }
.page-toolbar h1 { margin: 0; font-size: 30px; }.page-toolbar p { margin: 7px 0 0; color: #647184; }
.data-panel,
.form-section,
.empty-state,
.section-banner { border: 1px solid #dce5ee; border-radius: 7px; background: #fff; box-shadow: 0 8px 24px rgba(0,29,70,.06); }
.table-wrap { overflow-x: auto; }.users-table { width: 100%; border-collapse: collapse; }.users-table th { padding: 13px 18px; color: #58677a; background: #f3f6f9; font-size: 11px; text-align: left; text-transform: uppercase; }.users-table td { border-top: 1px solid #e5ebf1; padding: 16px 18px; vertical-align: middle; }.users-table td:first-child strong,.users-table td:first-child span { display: block; }.users-table td:first-child span { margin-top: 4px; color: #718095; font-size: 12px; }.users-table .icon-button { border-color: #cad5e1; color: #0757a3; }
.role-badge,.status-badge,.permission-count { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; padding: 6px 8px; font-size: 11px; font-weight: 900; }.role-global_admin { color: #6b3613; background: #fff0dc; }.role-content_admin { color: #285d47; background: #e0f3e9; }.role-internal { color: #174f82; background: #e5f0fa; }.status-badge.active { color: #276a40; background: #e2f4e8; }.status-badge.inactive { color: #8b3035; background: #f8e3e5; }.permission-count { color: #4c5d70; background: #edf1f5; }.table-empty { color: #68778b; text-align: center; }.pagination-row { padding: 16px; }

.user-form { display: grid; gap: 16px; }.form-section { padding: 22px; }.form-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }.form-section-heading > i { display: grid; width: 42px; height: 42px; border-radius: 6px; place-items: center; color: #006f85; background: #e1f3f4; font-size: 22px; }.form-section h2 { margin: 0; font-size: 19px; }.form-section p { margin: 4px 0 0; color: #6a788b; font-size: 13px; }.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }.field { display: grid; gap: 7px; }.field span { font-size: 13px; font-weight: 800; }.field input { width: 100%; min-height: 44px; border: 1px solid #cad5e1; border-radius: 6px; padding: 9px 11px; color: #10233d; background: #fff; }.field input:focus { border-color: #168a9a; outline: 3px solid rgba(22,138,154,.12); }
.role-options { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }.choice-card,.permission-card { position: relative; display: grid; border: 1px solid #d6e0e9; border-radius: 6px; padding: 17px; cursor: pointer; }.choice-card input,.permission-card input { position: absolute; opacity: 0; }.choice-card > i { color: #006f85; font-size: 25px; }.choice-card strong { margin-top: 10px; }.choice-card span,.permission-card small { margin-top: 5px; color: #6b788a; font-size: 12px; line-height: 1.45; }.choice-card:has(input:checked),.permission-card:has(input:checked) { border-color: #168a9a; background: #eefafb; box-shadow: inset 0 0 0 1px #168a9a; }
.permission-grid { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }.permission-card { min-height: 150px; padding-right: 42px; }.permission-icon { color: #0757a3; font-size: 25px; }.permission-card strong { margin-top: 12px; }.permission-check { position: absolute; top: 14px; right: 14px; display: grid; width: 22px; height: 22px; border: 1px solid #bdc9d5; border-radius: 4px; place-items: center; color: transparent; background: #fff; }.permission-card input:checked ~ .permission-check { border-color: #168a9a; color: #fff; background: #168a9a; }
.account-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.switch-control { display: flex; align-items: center; gap: 10px; cursor: pointer; }.switch-control input { position: absolute; opacity: 0; }.switch-control span { position: relative; width: 44px; height: 24px; border-radius: 12px; background: #aab4bf; }.switch-control span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s ease; }.switch-control input:checked + span { background: #168a9a; }.switch-control input:checked + span::after { transform: translateX(20px); }.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 0 20px; }.form-errors { margin-bottom: 16px; border: 1px solid #edbdc0; border-radius: 6px; padding: 14px; color: #8c252b; background: #fff1f2; }.form-errors ul { margin: 8px 0 0; }
.section-banner { display: flex; align-items: center; gap: 20px; padding: 28px; color: #fff; background: #003c62; }.section-banner > i { display: grid; width: 62px; height: 62px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; place-items: center; font-size: 32px; }.section-banner h1 { margin: 0; font-size: 30px; }.section-banner p { margin: 8px 0 0; color: rgba(255,255,255,.78); }.section-banner .section-kicker { color: #5ee4e8; }.empty-state { display: grid; min-height: 340px; margin-top: 18px; padding: 40px; place-items: center; align-content: center; text-align: center; }.empty-state > i { color: #168a9a; font-size: 46px; }.empty-state h2 { margin: 12px 0 0; }.empty-state p { max-width: 540px; margin: 8px 0 20px; color: #6a788b; line-height: 1.55; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 1180px) {
  .portal-header { grid-template-columns: 170px minmax(0,1fr) auto; padding: 0 14px; }
  .portal-nav a { min-width: 60px; padding: 0 10px; }.portal-nav a span { display: none; }.account-copy,.admin-shortcut span { display: none; }
  .access-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.access-card { min-height: 220px; }
}

@media (max-width: 760px) {
  .portal-header { position: static; grid-template-columns: 1fr auto; min-height: 68px; }.portal-brand img { width: 100px; height: 42px; }.portal-nav { grid-column: 1/-1; order: 3; justify-content: flex-start; min-height: 54px; border-top: 1px solid rgba(255,255,255,.12); }.portal-nav a { flex: 0 0 62px; min-height: 54px; }.portal-account { padding-left: 0; }.admin-shortcut { display: none; }
  .portal-main { padding: 14px; }.portal-hero { min-height: 320px; background-position: 62% center; }.hero-copy { width: 70%; padding: 28px 20px; }.hero-copy h1 { font-size: 34px; }.hero-copy p { font-size: 14px; }
  .role-workspace,.page-toolbar,.account-status,.section-heading { align-items: flex-start; flex-direction: column; }.section-heading p { text-align: left; }.role-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.access-grid,.role-options,.permission-grid,.form-grid { grid-template-columns: 1fr; }.portal-footer { padding: 14px; }.portal-footer span { display: none; }.users-table th:nth-child(3),.users-table td:nth-child(3) { display: none; }.page-toolbar .primary-button { width: 100%; }
}

@media (max-width: 430px) {
  .portal-brand span { display: none; }.access-grid,.role-stats { grid-template-columns: 1fr; }.access-card { min-height: 190px; }.hero-copy { width: 82%; }.portal-footer { justify-content: center; }
}

/* Integrated management process map */
.sgi-banner { background: linear-gradient(115deg, #003c62, #002b3a); }
.sgi-banner > i { flex-shrink: 0; }
.sgi-disciplines { display: flex; flex-wrap: wrap; gap: 20px; font-size: 22px; font-weight: 800; }
.sgi-disciplines span:nth-child(1) { color: #64d3f4; }
.sgi-disciplines span:nth-child(2) { color: #ff9c55; }
.sgi-disciplines span:nth-child(3) { color: #a5e368; }
.sgi-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; margin-top: 22px; align-items: start; }
.sgi-group { --group-color: #0864a7; --group-bg: #e5f4ff; min-width: 0; overflow: hidden; border: 1px solid var(--group-color); border-radius: 14px; background: var(--group-bg); }
.sgi-directivos { grid-column: 1; grid-row: 1; }
.sgi-operativos { --group-color: #c64b0a; --group-bg: #fff0e1; grid-column: 2; grid-row: 1 / 3; }
.sgi-apoyo { --group-color: #197330; --group-bg: #e8f5e9; grid-column: 1; grid-row: 2; }
.sgi-transversales { --group-color: #7635a4; --group-bg: #f0e8fc; grid-column: 1 / -1; }
.sgi-group-heading { padding: 16px 18px; color: #fff; background: var(--group-color); }
.sgi-group-heading h2 { margin: 0; font-size: 20px; line-height: 1.25; text-transform: uppercase; }
.sgi-group-heading p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.sgi-sections { display: grid; gap: 14px; padding: 14px; }
.sgi-operativos .sgi-sections { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.sgi-subsection { min-width: 0; }
.sgi-subsection h3 { margin: 0 0 12px; color: #92350a; font-size: 16px; text-transform: uppercase; }
.sgi-cards { display: grid; gap: 10px; align-items: start; }
.sgi-operativos .sgi-subsection:nth-child(2) .sgi-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgi-operativos .sgi-subsection:nth-child(2) .sgi-card:last-child { grid-column: 1 / -1; }
.sgi-transversales .sgi-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sgi-card { --card-color: #0757a3; min-width: 0; border: 1px solid rgba(0,29,70,.1); border-radius: 10px; background: #fff; }
.sgi-color-orange { --card-color: #c74608; }.sgi-color-purple { --card-color: #7431b8; }.sgi-color-pink { --card-color: #c60046; }.sgi-color-green { --card-color: #197330; }.sgi-color-gold { --card-color: #946600; }.sgi-color-teal { --card-color: #007c82; }.sgi-color-slate { --card-color: #35404c; }
.sgi-card summary { display: flex; align-items: center; gap: 10px; min-height: 94px; padding: 14px 12px; color: var(--card-color); cursor: pointer; list-style: none; border-radius: 10px; }
.sgi-card summary::-webkit-details-marker { display: none; }
.sgi-card summary:hover { background: #f5f8fb; }
.sgi-card summary:focus-visible { outline: 3px solid var(--card-color); outline-offset: -3px; }
.sgi-icon { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: var(--card-color); font-size: 24px; }
.sgi-card-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.sgi-chevron { flex-shrink: 0; font-size: 20px; }
.sgi-card[open] .sgi-chevron { transform: rotate(90deg); }
.sgi-card > p { margin: 0; padding: 0 16px 16px; color: #435369; font-size: 14px; line-height: 1.6; }
.sgi-hint { color: #58677a; font-size: 13px; }
@media (max-width: 1200px) {
  .sgi-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .sgi-operativos .sgi-sections { grid-template-columns: 1fr; }
  .sgi-operativos .sgi-subsection:first-child .sgi-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sgi-map { grid-template-columns: 1fr; }
  .sgi-directivos, .sgi-operativos, .sgi-apoyo, .sgi-transversales { grid-column: auto; grid-row: auto; }
  .sgi-transversales .sgi-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgi-banner { padding: 20px; align-items: flex-start; }
  .sgi-banner > i { display: none; }
  .sgi-banner h1 { font-size: 26px; }
}
@media (max-width: 480px) {
  .sgi-transversales .sgi-cards, .sgi-operativos .sgi-subsection:nth-child(2) .sgi-cards { grid-template-columns: 1fr; }
}
.sgi-card .sgi-category-link { display: flex; align-items: center; gap: 10px; min-height: 94px; padding: 14px 12px; color: var(--card-color); border-radius: 10px; }
.sgi-card .sgi-category-link:hover { background: #f2f6fa; }
.sgi-card .sgi-category-link:focus-visible, .sgi-files-link:focus-visible { outline: 3px solid var(--card-color); outline-offset: -3px; }
.sgi-card { border-top: 4px solid var(--card-color); }
.sgi-files-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px 12px; padding: 10px; border-radius: 6px; color: var(--card-color); background: #f0f5f9; font-size: 13px; font-weight: 800; }
.sgi-category-banner { margin: 18px 0; background: var(--card-color, #0757a3); }
.sgi-category-banner .section-kicker { color: #fff; }
.sgi-upload { margin: 18px 0; }
.sgi-upload .form-grid { margin: 18px 0; }
.sgi-file-list { margin-top: 20px; }
.sgi-file-list .form-section { border: 0; border-bottom: 1px solid #dce5ee; border-radius: 7px 7px 0 0; box-shadow: none; }
/* Communications and monthly newspaper library */
.communications-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 60px; overflow: hidden; position: relative; padding: 48px 64px; border-radius: 18px; color: #fff; background: radial-gradient(ellipse at top right, #146b85, transparent 65%), #00334f; box-shadow: 0 16px 35px #00334f18; }
.communications-hero-copy { position: relative; z-index: 1; }
.communications-eyebrow { display: flex; align-items: center; gap: 8px; color: #8ce2e4; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.communications-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #b9de58; }
.communications-hero h1 { margin: 22px 0 16px; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.15; letter-spacing: -1.4px; }
.communications-hero h1 strong { color: #bce9e2; }
.communications-hero p { max-width: 560px; margin: 0; color: #d3e5ed; font-size: 16px; line-height: 1.75; }
.communications-hero-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 26px; padding: 13px 18px; border: 1px solid #78b8c2; border-radius: 8px; font-size: 13px; font-weight: 800; }
.communications-hero-link:hover { color: #00334f; background: #fff; }
.communications-cover { display: flex; flex-direction: column; position: relative; padding: 25px; border-radius: 5px; color: #00334f; background: #f8fcf9; box-shadow: 15px 20px 0 #ffffff12, 0 20px 35px #001c3240; transform: rotate(6deg); }
.communications-cover-brand { font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.communications-cover-brand span { color: #007980; font-size: 14px; letter-spacing: 1px; }
.communications-cover-rule { height: 4px; margin-top: 12px; background: #b1d653; }
.communications-cover > i { display: grid; height: 108px; margin: 15px 0; place-items: center; color: #007980; background: #e0f1ee; font-size: 65px; }
.communications-cover > strong { font-size: 24px; line-height: 1.15; }
.communications-cover-caption { margin-top: 20px; padding-top: 12px; border-top: 1px solid #cfdfdd; font-size: 10px; }
.communications-publish { margin-top: 24px; border: 1px solid #cdddE5; border-radius: 12px; background: #fff; }
.communications-publish summary { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-radius: 12px; cursor: pointer; list-style: none; }
.communications-publish summary::-webkit-details-marker { display: none; }
.communications-publish-icon { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 12px; color: #007980; background: #e6f4f2; font-size: 25px; }
.communications-publish summary strong, .communications-publish summary small { display: block; }
.communications-publish summary strong { font-size: 16px; }
.communications-publish summary small { margin-top: 5px; color: #637487; font-size: 13px; line-height: 1.4; }
.communications-toggle { margin-left: auto; font-size: 24px; color: #007980; }
.communications-publish[open] .communications-toggle { transform: rotate(45deg); }
.communications-publish > form { margin: 0 24px; padding: 22px 0 0; border-top: 1px solid #e3ebf0; }
.communications-file-field { grid-column: 1 / -1; padding: 18px; border: 1px dashed #95b9c3; border-radius: 10px; background: #f6fafb; }
.communications-file-field input { background: #fff; }
.communications-file-field small { color: #637487; font-size: 12px; }
.communications-library { margin-top: 38px; scroll-margin-top: 100px; }
.communications-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.communications-library-heading h2 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -.6px; }
.communications-library-heading p { margin: 0; color: #637487; font-size: 14px; }
.communications-count { flex-shrink: 0; padding: 9px 13px; border: 1px solid #cddddf; border-radius: 30px; color: #27616e; background: #eaf4f4; font-size: 12px; font-weight: 700; }
.communications-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.communications-edition { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #d9e5ec; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #00334f08; transition: box-shadow .2s, transform .2s; }
.communications-edition:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #00334f15; }
.communications-edition-link { display: flex; flex: 1; flex-direction: column; }
.communications-edition-art { display: flex; position: relative; min-height: 175px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 24px; color: #fff; background: linear-gradient(120deg, #00425e, #087c89); }
.communications-edition:nth-child(3n+2) .communications-edition-art { background: linear-gradient(120deg, #123d73, #417dae); }
.communications-edition:nth-child(3n+3) .communications-edition-art { background: linear-gradient(120deg, #165b55, #4a8d77); }
.communications-edition-art > i { position: absolute; right: 24px; bottom: -22px; color: #ffffff1c; font-size: 145px; transform: rotate(-12deg); }
.communications-edition-month { position: relative; z-index: 1; font-size: 22px; font-weight: 700; text-transform: capitalize; }
.communications-edition-month strong { display: block; margin-top: 3px; color: #c3e8e3; font-size: 32px; letter-spacing: 1px; }
.communications-pdf { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; margin-top: 20px; padding: 5px 8px; border: 1px solid #ffffff50; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.communications-edition-copy { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.communications-edition-label { color: #637c89; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.communications-edition-copy h3 { margin: 12px 0 24px; color: #12334c; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.communications-read { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: #007780; font-size: 13px; font-weight: 800; }
.communications-read i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e6f4f2; font-size: 19px; }
.communications-edition .newspaper-actions { margin: 0; padding: 14px 20px; border-top: 1px solid #e5edf1; background: #fafcfd; }
.communications-empty { grid-column: 1 / -1; padding: 60px 24px; border: 1px dashed #b7ccd6; border-radius: 14px; text-align: center; background: #ffffffa0; }
.communications-empty > i { color: #26818c; font-size: 48px; }
.communications-empty h3 { margin: 18px 0 10px; font-size: 21px; }
.communications-empty p { max-width: 450px; margin: 0 auto; color: #637487; line-height: 1.7; }
.communications-pagination { margin-top: 24px; }
.communications-page a:focus-visible, .communications-page summary:focus-visible { outline: 3px solid #16a9b3; outline-offset: 3px; }
@media (max-width: 1100px) {
  .communications-hero { gap: 30px; grid-template-columns: minmax(0,1fr) 220px; padding: 38px; }
  .communications-cover { padding: 20px; }
  .communications-cover-brand { font-size: 21px; }
  .communications-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .communications-hero { grid-template-columns: 1fr; padding: 30px 24px; border-radius: 12px; }
  .communications-cover { display: none; }
  .communications-hero h1 { letter-spacing: -.6px; }
  .communications-hero p { font-size: 14px; }
  .communications-library-heading { align-items: flex-start; flex-direction: column; }
  .communications-library-heading h2 { font-size: 25px; }
  .communications-publish summary { padding: 18px; gap: 10px; }
  .communications-publish > form { margin: 0 18px; }
}
@media (max-width: 500px) { .communications-grid { grid-template-columns: 1fr; } .communications-eyebrow { font-size: 9px; letter-spacing: 1px; } }
@media (prefers-reduced-motion: reduce) { .communications-edition { transition: none; } }
/* Birthday calendar */
.birthday-create { margin: 24px 0; background: #fff; border: 1px solid #dce5ed; border-radius: 14px; overflow: hidden; }
.birthday-create > summary { padding: 20px 24px; cursor: pointer; color: #123953; font-weight: 700; }
.birthday-create .form-section { border-top: 1px solid #e5edf3; }
.birthday-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; align-items: start; }
.birthday-month { --birthday-accent: #7650b4; --birthday-soft: #f3edff; background: #fff; border: 1px solid #e3e5ee; border-top: 5px solid var(--birthday-accent); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(46, 32, 85, .06); }
.birthday-month > summary { position: relative; display: flex; align-items: center; gap: 14px; padding: 26px 20px; cursor: pointer; list-style: none; color: #123953; background: linear-gradient(115deg, var(--birthday-soft), #fff); }
.birthday-month > summary::-webkit-details-marker { display: none; }
.birthday-month summary strong { display: block; font-size: 19px; }
.birthday-month summary small { display: block; margin-top: 4px; color: #627586; font-size: 12px; }
.birthday-month-icon { display: grid; place-items: center; flex: 0 0 50px; height: 50px; border-radius: 16px; color: #fff; background: var(--birthday-accent); font-size: 27px; transform: rotate(-5deg); }
.birthday-chevron { margin-left: auto; font-size: 23px; }
.birthday-month[open] .birthday-chevron { transform: rotate(180deg); }
.birthday-month[open] > summary { border-bottom: 1px solid #e5edf3; }
.birthday-month summary:focus-visible, .birthday-create summary:focus-visible { outline: 3px solid #168b92; outline-offset: -3px; }
.birthday-people { list-style: none; margin: 0; padding: 0 18px; }
.birthday-people li { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid #edf2f6; }
.birthday-people li:last-child { border-bottom: 0; }
.birthday-people img, .birthday-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.birthday-avatar { display: grid; place-items: center; background: #eef2f8; color: #637a90; font-size: 24px; }
.birthday-people li > div { min-width: 0; }
.birthday-people strong { display: block; color: #17384f; overflow-wrap: anywhere; }
.birthday-people li > div > span { display: block; margin-top: 4px; color: #647786; font-size: 13px; }
.birthday-day { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; margin-left: auto; background: var(--birthday-soft); color: var(--birthday-accent); font-size: 21px; font-weight: 700; }
.birthday-people .birthday-empty { color: #647786; line-height: 1.6; font-size: 14px; }
@media (max-width: 1000px) { .birthday-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .birthday-months { grid-template-columns: 1fr; } }

/* Festive colors for the birthday calendar */
.birthday-banner { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(115deg, #49317c, #8154aa 65%, #bc628e); border: 0; border-radius: 20px; padding-top: 36px; padding-bottom: 36px; }
.birthday-banner::after { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .6; background-image: radial-gradient(circle at 85% 25%, #ffde80 0 5px, transparent 6px), radial-gradient(circle at 72% 74%, #7fe0da 0 4px, transparent 5px), radial-gradient(circle at 95% 80%, #ffb6ce 0 6px, transparent 7px), radial-gradient(circle at 62% 15%, #fff 0 3px, transparent 4px), radial-gradient(circle at 55% 88%, #ffde80 0 3px, transparent 4px); }
.birthday-banner > i { color: #ffe2a0; background: #ffffff14; border-color: #ffffff45; transform: rotate(-6deg); }
.birthday-banner .section-kicker { color: #ffe2a0; letter-spacing: 1.5px; }
.birthday-banner h1 { color: #fff; }
.birthday-banner p { color: #f7ecff; max-width: 650px; }
.birthday-create { border-radius: 18px; }
.birthday-create > summary { background: #faf6ff; color: #633f91; }
.birthday-create .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd7e3; border-radius: 7px; background: #fff; color: #17384f; font: inherit; }
.birthday-create .field select:focus-visible { outline: 2px solid #8154aa; outline-offset: 2px; }
.birthday-month[data-month="2"], .birthday-month[data-month="8"] { --birthday-accent: #b83f75; --birthday-soft: #fff0f6; }
.birthday-month[data-month="3"], .birthday-month[data-month="9"] { --birthday-accent: #167d83; --birthday-soft: #e7f7f4; }
.birthday-month[data-month="4"], .birthday-month[data-month="10"] { --birthday-accent: #ba591e; --birthday-soft: #fff2e4; }
.birthday-month[data-month="5"], .birthday-month[data-month="11"] { --birthday-accent: #3c68b6; --birthday-soft: #edf3ff; }
.birthday-month[data-month="6"], .birthday-month[data-month="12"] { --birthday-accent: #94701a; --birthday-soft: #fff8dc; }
.birthday-month-label { min-width: 0; }
.birthday-month summary strong { color: var(--birthday-accent); }
.birthday-month > summary::after { content: ''; position: absolute; right: 48px; top: 12px; width: 5px; height: 5px; border-radius: 1px; background: var(--birthday-accent); opacity: .3; transform: rotate(25deg); box-shadow: -14px 9px 0 var(--birthday-accent), 9px 15px 0 var(--birthday-accent); pointer-events: none; }
.birthday-month summary:focus-visible { outline-color: var(--birthday-accent); }
.birthday-month:hover { box-shadow: 0 10px 26px rgba(46, 32, 85, .12); }
.birthday-chevron { color: var(--birthday-accent); }
.birthday-avatar { color: var(--birthday-accent); background: var(--birthday-soft); }
/* Home greeting and publication wall */
.portal-hero.dashboard-welcome { min-height: 0; background: none; border: 0; box-shadow: none; margin-bottom: 26px; }
.dashboard-welcome .hero-copy { width: 100%; padding: 8px 0; }
.dashboard-welcome .section-kicker { color: #486075; font-size: 14px; text-transform: none; letter-spacing: 0; }
.dashboard-welcome .hero-copy h1 { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.25; margin-top: 7px; }
.dashboard-welcome .hero-copy h1 strong { display: inline; }
.dashboard-posts { padding: 26px; border: 1px solid #dbe5ed; border-radius: 18px; background: #f8fafc; margin-bottom: 30px; }
.dashboard-posts .section-heading { margin-bottom: 20px; }
.post-create { background: #fff; border: 1px solid #dbe5ed; border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.post-create > summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: #17384f; }
.post-create select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd7e3; border-radius: 7px; color: #17384f; background: #fff; font: inherit; }
.post-duration > div { display: flex; gap: 10px; }
.post-duration > div > input { min-width: 0; }
.post-create [hidden] { display: none !important; }
.post-order-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; font-size: 13px; color: #526a7a; }
.post-order-toolbar p { margin: 0; margin-right: auto; }
.post-order-toolbar [role="status"] { flex-basis: 100%; }
.post-order-toolbar button:disabled { opacity: .5; cursor: default; }
.post-wall { column-count: 3; column-gap: 20px; }
.post-card { display: inline-block; vertical-align: top; width: 100%; margin: 0 0 20px; break-inside: avoid; background: #fff; border: 1px solid #dce6ee; border-radius: 14px; overflow: hidden; box-shadow: 0 5px 18px rgba(0, 29, 70, .05); }
.post-card.is-dragging { opacity: .45; outline: 3px dashed #168b92; outline-offset: -3px; }
.post-image-link { display: block; background: #f1f5f9; }
.post-image-link img { display: block; width: 100%; height: auto; }
.post-controls { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f2f7fa; color: #526a7a; font-size: 12px; cursor: grab; }
.post-controls > div { display: flex; gap: 6px; }
.post-controls button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #cbd7e3; border-radius: 7px; background: #fff; color: #17384f; cursor: pointer; font-size: 17px; }
.post-controls button:focus-visible, .post-create select:focus-visible { outline: 2px solid #168b92; outline-offset: 2px; }
.post-caption { padding: 18px; }
.post-caption h3 { margin: 0 0 12px; color: #17384f; font-size: 18px; overflow-wrap: anywhere; }
.post-caption h3:last-child { margin-bottom: 0; }
.post-attachment { width: 100%; display: flex; gap: 8px; font-size: 13px; }
.post-attachment span { min-width: 0; overflow-wrap: anywhere; }
.post-attachment > i:last-child { margin-left: auto; }
.post-expiration { padding: 10px 16px; border-top: 1px solid #edf2f6; color: #647786; font-size: 12px; }
.post-wall-empty { column-span: all; display: grid; place-items: center; text-align: center; min-height: 170px; padding: 24px; border: 1px dashed #c5d5e1; border-radius: 12px; color: #637a8b; }
.post-wall-empty > i { font-size: 34px; color: #8ba7ba; }
.post-wall-empty p { margin: 12px 0 0; }
@media (max-width: 1100px) { .post-wall { column-count: 2; } }
@media (max-width: 650px) { .post-wall { column-count: 1; } .dashboard-posts { padding: 18px 14px; } .dashboard-posts .section-heading { gap: 16px; } }
/* Saved free placement and sizing of home publications */
.post-wall { position: relative; column-count: auto; column-gap: 0; overflow: hidden; min-height: 160px; }
.post-canvas { position: relative; width: 1200px; min-height: 160px; transform-origin: top left; }
.post-canvas > .post-card { box-sizing: border-box; position: absolute; display: flex; flex-direction: column; margin: 0; break-inside: auto; vertical-align: initial; }
.post-canvas .post-image-link { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.post-canvas .post-image-link img { width: 100%; height: 100%; object-fit: contain; }
.post-canvas .post-caption { flex: 0 1 auto; max-height: 50%; overflow: auto; }
.post-canvas .post-controls { display: none; position: absolute; z-index: 2; top: 8px; left: 8px; right: 8px; border: 1px solid #bbd7df; border-radius: 9px; padding: 4px 8px; box-shadow: 0 2px 8px #12395315; background: #ffffffed; }
.post-canvas .post-drag-handle { display: flex; width: auto; height: 34px; gap: 6px; padding: 0 10px; font: inherit; cursor: grab; touch-action: none; }
.post-controls small { color: #526a7a; }
.post-resize-handle { display: none; position: absolute; z-index: 3; bottom: 4px; right: 4px; width: 30px; height: 30px; padding: 0; border: 1px solid #087f8c; border-radius: 7px; background: #fff; color: #087f8c; font-size: 20px; cursor: nwse-resize; touch-action: none; }
.post-wall.is-editing { background-image: radial-gradient(#b8ccd8 1px, transparent 1px); background-size: 16px 16px; min-height: 380px; outline: 1px dashed #a4c2ce; border-radius: 10px; }
.post-wall.is-editing .post-controls { display: flex; }
.post-wall.is-editing .post-resize-handle { display: block; }
.post-wall.is-editing .post-card { outline: 2px solid #30a5b3; }
.post-wall.is-editing .post-image-link { cursor: default; }
.post-card.is-moving { z-index: 10; outline: 3px solid #087f8c; box-shadow: 0 12px 32px #12395330; }
.post-resize-handle:focus-visible { outline: 3px solid #17384f; outline-offset: 2px; }
.post-wall.is-stacked .post-canvas { width: 100%; min-height: 0; }
.post-wall.is-stacked .post-card { position: relative; left: auto !important; top: auto !important; width: 100% !important; height: auto !important; margin-bottom: 18px; }
.post-wall.is-stacked .post-image-link img { height: auto; }
.post-wall.is-stacked .post-caption { max-height: none; }
.post-wall.is-empty .post-canvas { width: 100%; }
/* Global administrator deletion controls */
.post-delete-form { position: absolute; z-index: 4; top: 8px; right: 8px; margin: 0; }
.post-delete-form button { display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 7px 10px; border: 1px solid #ecc0c4; border-radius: 8px; color: #a32636; background: #fff5f5; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px #12395315; }
.post-delete-form button:hover { background: #ffe1e5; }
.post-delete-form button:focus-visible { outline: 3px solid #a32636; outline-offset: 2px; }
.post-delete-form button:disabled { opacity: .6; cursor: wait; }
.post-canvas .post-controls { right: 112px; }
.post-controls small { display: none; }
