:root {
  --navy: #062352;
  --navy-dark: #031633;
  --red: #d10c14;
  --text: #102a50;
  --muted: #718099;
  --bg: #f5f6fa;
  --line: #e2e6ed;
  --green: #138e64;
  --yellow: #a17608;
  --radius: 17px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea,
select {
  min-width: 0;
}
#app {
  min-height: 100vh;
}
.topbar {
  height: 92px;
  background: linear-gradient(180deg, #154a91 0%, #092957 48%, #041329 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 7vw, 140px);
  position: relative;
  z-index: 20;
}
.brand {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 170px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.icon-btn {
  background: transparent;
  color: #fff;
  border: 0;
  padding: 10px;
  display: grid;
  place-items: center;
}
.notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  right: 7px;
  top: 6px;
}
.bell-wrap {
  position: relative;
}
.workspace {
  max-width: 930px;
  margin: 0 auto;
  padding: 35px 18px 64px;
}
.workspace.wide {
  max-width: 1060px;
}
.workspace.narrow {
  max-width: 750px;
}
.page-heading {
  text-align: center;
  margin: 9px 0 32px;
}
.page-heading h1 {
  font-size: 36px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #062352;
}
.redline {
  width: 62px;
  height: 4px;
  background: var(--red);
  border-radius: 10px;
  margin: 13px auto 21px;
}
.page-heading p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 700px;
}
.event-caption {
  text-align: center;
  color: #7788a0;
  letter-spacing: 2.7px;
  font-size: 13px;
  font-weight: 800;
  margin: 27px 0 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: 0;
  margin: 4px 0 23px;
  padding: 0;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-content: center;
  margin: 0 auto 28px;
}
.tiles.admin {
  max-width: 760px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  background: var(--navy);
  border: 0;
  border-radius: 29px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 17px;
  aspect-ratio: 1/1;
  box-shadow: 0 14px 22px #06235213;
  padding: 14px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  min-width: 0;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 26px #06235220;
}
.tile svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.65;
}
.tile span {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.tile i {
  width: 39px;
  height: 4px;
  border-radius: 8px;
  background: var(--red);
  display: block;
}
.tiles.admin .tile {
  grid-column: span 2;
}
.tiles.admin .tile:nth-child(4) {
  grid-column: 2 / span 2;
}
.tiles.admin .tile:nth-child(5) {
  grid-column: 4 / span 2;
}
.tiles.four {
  max-width: 680px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tiles.four .tile {
  max-height: 300px;
}
.tiles.category {
  max-width: 760px;
}
.tiles.category .tile {
  border-radius: 26px;
  max-height: 232px;
}
.tiles.category .tile span {
  font-size: 16px;
}
.preview-foot {
  font-size: 12px;
  color: #7f8a9b;
  text-align: center;
  margin: 26px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px #0929570c;
  padding: 22px;
  margin-bottom: 14px;
}
.card h2,
.card h3 {
  font-size: 17px;
  margin: 0 0 14px;
}
.card h2:after,
.card h3:after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin: 9px 0 0;
  background: var(--red);
  border-radius: 6px;
}
.card-title {
  font-weight: 800;
  font-size: 15px;
}
.minor {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #334862;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 15px;
}
.field input,
.field select,
.field textarea,
.searchbox {
  width: 100%;
  height: 49px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 14px;
  background: #fff;
  outline: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
.field textarea {
  height: auto;
  min-height: 95px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.searchbox:focus {
  border-color: #5273a4;
  box-shadow: 0 0 0 3px #0d35660e;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.primary,
.danger,
.secondary,
.ghost,
.mini {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  background: var(--navy);
  color: #fff;
}
.secondary {
  border-color: #99a9c1;
  color: var(--navy);
  background: #fff;
}
.ghost {
  background: #f1f4f9;
  color: var(--navy);
  border-color: #ecf0f4;
}
.danger {
  background: var(--red);
}
.mini {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
}
.danger-outline {
  border: 1px solid #e6c0c3;
  color: var(--red);
  background: #fff;
  border-radius: 11px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.right {
  margin-left: auto;
}
.filterline {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.pill {
  border-radius: 30px;
  border: 0;
  background: #fff;
  color: var(--navy);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pill.active {
  background: var(--navy);
  color: #fff;
}
.chip {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 30px;
  white-space: nowrap;
  background: #f0f2f6;
  color: #617185;
}
.chip.confirmed,
.chip.sent,
.chip.completed {
  background: #e6f7ec;
  color: #258451;
}
.chip.pending,
.chip.awaiting,
.chip.draft {
  background: #fff4d6;
  color: #906c15;
}
.chip.declined,
.chip.failed,
.chip.suspended {
  background: #fde9eb;
  color: #ba323d;
}
.chip.prepared,
.chip.active {
  background: #e8effd;
  color: #24518a;
}
.list-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  margin: 10px 0;
  box-shadow: 0 1px 2px #142d4415;
  color: var(--text);
}
button.list-card:hover {
  border-color: #9db0ce;
}
.initials {
  min-width: 41px;
  height: 41px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.list-text {
  flex: 1;
  min-width: 0;
}
.list-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.list-text small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  line-height: 1.3;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.between {
  justify-content: space-between;
}
.row.wrap {
  flex-wrap: wrap;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-row button {
  margin-left: auto;
}
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.switch input {
  appearance: none;
  width: 41px;
  height: 24px;
  background: #c9d2de;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  transition: background 0.16s;
}
.switch input:checked {
  background: #009c75;
}
.switch input:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.16s;
}
.switch input:checked:after {
  transform: translateX(17px);
}
.muted {
  color: var(--muted);
}
.section-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 900;
  color: #738399;
  text-transform: uppercase;
  margin: 24px 0 11px;
}
.summary {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.summary td {
  padding: 11px 5px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: top;
}
.summary td:first-child {
  width: 28%;
  color: #7a879b;
}
.summary td:last-child {
  font-weight: 600;
}
.summary tr:last-child td {
  border-bottom: 0;
}
.note {
  border-radius: 12px;
  background: #f4f6fa;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0;
}
.note strong {
  display: block;
  color: var(--red);
  letter-spacing: 0.6px;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.contact {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact:last-child {
  border-bottom: 0;
}
.contact strong {
  display: block;
  font-size: 14px;
}
.contact .minor {
  display: block;
}
.contact-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.contact-actions a {
  background: var(--navy);
  border-radius: 9px;
  padding: 7px 11px;
  color: #fff;
  font-size: 12px;
}
.contact-actions a.wa {
  background: #009777;
}
.table-scroll {
  overflow: auto;
}
.datatable {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  min-width: 540px;
}
.datatable th {
  background: #082953;
  color: #fff;
  padding: 13px 10px;
  font-size: 12px;
}
.datatable td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.datatable tr:nth-child(even) td {
  background: #fafbfd;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.notice {
  border-radius: 14px;
  padding: 13px 15px;
  background: #eef5ff;
  color: #2f507b;
  font-size: 13px;
  line-height: 1.55;
  margin: 15px 0;
}
.notice.warn {
  background: #fff1ec;
  color: #9d4726;
}
.empty {
  background: #fff;
  border-radius: 18px;
  border: 1px dashed var(--line);
  padding: 48px 20px;
  text-align: center;
  color: #708199;
}
.empty strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 12px;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: #061a38ad;
  z-index: 40;
}
.nav-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(370px, 88vw);
  background: #fff;
  z-index: 41;
  padding: 23px;
  overflow: auto;
  box-shadow: 15px 0 50px #0003;
}
.nav-drawer h2 {
  font-size: 21px;
  margin: 0 0 7px;
}
.nav-drawer .role-select {
  width: 100%;
  margin: 10px 0 18px;
  padding: 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #f8f9fb;
}
.nav-link {
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 10px;
  width: 100%;
  border-radius: 11px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.nav-link:hover {
  background: #f0f4f9;
}
.nav-link svg {
  width: 20px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #061a38a9;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  background: white;
  border-radius: 23px;
  padding: 27px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 18px 65px #0002;
}
.modal h2 {
  margin: 0 0 15px;
  font-size: 21px;
}
.modal p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.red-panel {
  background: #fdebee;
  color: #922e36;
  border-radius: 14px;
  padding: 15px;
  font-size: 13px;
  margin: 16px 0;
}
.red-panel ul {
  margin-bottom: 0;
  padding-left: 23px;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: #092957;
  color: #fff;
  border-radius: 12px;
  padding: 14px 19px;
  box-shadow: 0 10px 30px #061a3859;
  font-size: 13px;
  max-width: 400px;
}
.small-box {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfdff;
}
.small-box strong {
  font-size: 14px;
}
.stepbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.stepbar span {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 11px;
  color: #607088;
}
.stepbar span.on {
  background: var(--navy);
  color: #fff;
}
.preview-message {
  white-space: pre-line;
  font-size: 14px;
  color: #32445b;
  line-height: 1.8;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 10px 0;
}
.checkbox-row input {
  accent-color: var(--navy);
}
.dash-line {
  border-left: 4px solid #d8e3ee;
  padding-left: 14px;
}
.muted-small {
  font-size: 12px;
  color: #7d8a99;
}
.profile-head {
  background: var(--navy);
  color: #fff;
  padding: 20px;
  border-radius: 17px 17px 0 0;
  margin: 0;
}
.profile-head h2 {
  color: #fff;
  margin: 0 0 6px;
}
.profile-head .chip {
  display: inline-block;
}
.profile-meta {
  display: flex;
  justify-content: space-around;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 15px 5px;
}
.profile-meta strong {
  display: block;
}
.profile-meta span {
  color: #7e8898;
  font-size: 11px;
}
.subtabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #fff;
  padding: 12px;
  border-radius: 0 0 17px 17px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.subtabs button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #667791;
}
.subtabs button.active {
  background: var(--red);
  color: #fff;
}
.task {
  border-left: 4px solid #e0b323;
}
.log-list .list-card {
  font-size: 13px;
}
.log-entry {
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  margin: 10px 0;
}
.log-entry strong {
  font-size: 14px;
}
.log-entry small {
  display: block;
  color: #8491a3;
  margin-top: 9px;
  font-size: 12px;
}
.type-preview {
  padding: 16px;
  border: 1px dashed #cad5e3;
  border-radius: 13px;
  background: #fafbfd;
}
.doc-row {
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px;
  border-radius: 12px;
  margin: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.doc-row strong {
  font-size: 13px;
  display: block;
}
.doc-row small {
  font-size: 12px;
  color: #71819a;
  display: block;
  margin-top: 4px;
}
.hint-box {
  font-size: 12px;
  color: #6f8096;
  line-height: 1.7;
  margin-top: 13px;
}
.view-banner {
  font-size: 11px;
  color: #77869a;
  text-align: center;
  padding-top: 10px;
}
@media (max-width: 780px) {
  .topbar {
    height: 116px;
    padding: 0 26px;
  }
  .brand {
    top: 8px;
    width: 200px;
    max-width: 57vw;
    height: 100px;
  }
  .workspace {
    padding: 30px 20px 70px;
  }
  .page-heading {
    margin: 11px 0 28px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 16px;
  }
  .event-caption {
    font-size: 12px;
    line-height: 1.6;
  }
  .tiles.admin,
  .tiles.category,
  .tiles.four,
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    gap: 17px;
  }
  .tiles.admin .tile,
  .tiles.admin .tile:nth-child(4),
  .tiles.admin .tile:nth-child(5) {
    grid-column: auto;
  }
  .tiles.admin .tile:last-child:nth-child(odd),
  .tiles.category .tile:last-child:nth-child(odd) {
    grid-column: 1/-1;
    width: calc(50% - 8px);
    margin: 0 auto;
  }
  .tile {
    border-radius: 29px;
  }
  .tile span {
    font-size: 17px;
  }
  .tiles.category .tile span {
    font-size: 15px;
  }
  .tiles.category .tile {
    max-height: none;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .topbar {
    height: 72px;
    padding: 0 17px;
  }
  .brand {
    top: 5px;
    width: 124px;
    max-width: 60vw;
    height: 60px;
  }
  .icon-btn svg {
    width: 23px;
    height: 23px;
  }
  .workspace {
    padding: 23px 14px 46px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .page-heading {
    margin: 10px 0 24px;
  }
  .event-caption {
    letter-spacing: 1.3px;
    font-size: 11px;
  }
  .tile {
    border-radius: 23px;
    gap: 13px;
  }
  .tile svg {
    width: 32px;
    height: 32px;
  }
  .tile span {
    font-size: 15px;
  }
  .tile i {
    width: 30px;
    height: 3px;
  }
  .tiles.admin,
  .tiles.category,
  .tiles.four,
  .tiles {
    gap: 13px;
  }
  .card {
    padding: 18px;
    border-radius: 17px;
  }
  .grid,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .list-card {
    padding: 12px;
  }
  .list-text strong {
    font-size: 13px;
  }
  .list-text small {
    font-size: 11px;
  }
  .profile-meta {
    gap: 3px;
  }
  .profile-meta strong {
    font-size: 12px;
  }
  .preview-foot {
    font-size: 11px;
  }
  .subtabs {
    gap: 4px;
  }
  .subtabs button {
    font-size: 11px;
    padding: 7px 8px;
  }
}

/* Responsive topbar icon dimensions */
.icon-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Invitation references: file picker, native mobile camera, local preview */
.attachment-grid {
  margin-top: 18px;
  gap: 14px;
}
.attachment-control {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfcfe;
  min-width: 0;
}
.attachment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.attachment-title strong {
  font-size: 14px;
  color: var(--navy);
}
.attachment-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.attachment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  flex: 1;
  min-width: 118px;
  padding: 10px;
}
.attachment-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  clip-path: inset(50%);
}
.attachment-status {
  margin-top: 12px;
  min-height: 26px;
}
.upload-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
}
.uploaded-file {
  padding: 11px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.uploaded-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.uploaded-file-info svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
  flex-shrink: 0;
}
.uploaded-file-info span {
  min-width: 0;
  overflow: hidden;
}
.uploaded-file-info strong {
  font-size: 12px;
  overflow-wrap: anywhere;
  display: block;
}
.uploaded-file-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.uploaded-file-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.review-attachment-row {
  margin: 12px 0;
  padding: 12px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.review-attachment-row > strong {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 520px) {
  .attachment-control {
    padding: 13px;
  }
  .attachment-actions {
    flex-direction: row;
  }
  .attachment-button {
    min-width: 0;
    font-size: 12px;
    padding: 10px 8px;
  }
  .uploaded-file {
    align-items: flex-start;
  }
  .uploaded-file-actions {
    width: 100%;
  }
}

.file-error {
  color: #aa2034;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 600;
}

/* Active Call, Email and WhatsApp links for every saved contact.
   A missing number/email is clearly unavailable, never an inert fake link. */
.contact-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.contact-actions a,
.contact-actions .contact-unavailable {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 8px 10px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.contact-actions a {
  background: var(--navy);
  color: white;
}
.contact-actions a.wa {
  background: #008768;
  color: white;
}
.contact-actions a:hover {
  filter: brightness(1.13);
}
.contact-actions a:focus-visible {
  outline: 3px solid #d10c14;
  outline-offset: 2px;
}
.contact-actions svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.contact-actions .contact-unavailable {
  color: #8d99a9;
  background: #eef0f3;
  border: 1px solid #e1e6ed;
  cursor: not-allowed;
}
.datatable td .contact-actions {
  min-width: 245px;
  margin-top: 0;
}
.list-card .contact-actions {
  margin-top: 8px;
}
@media (max-width: 650px) {
  .contact-actions {
    gap: 5px;
  }
  .contact-actions a,
  .contact-actions .contact-unavailable {
    padding: 8px 9px;
    font-size: 11px;
  }
  .datatable td .contact-actions {
    min-width: 230px;
  }
}

/* Company Profile: every attendee keeps their own action bar immediately beneath the name. */
.attendee-table td {
  vertical-align: top;
}
.attendee-table td:nth-child(2) {
  min-width: 282px;
  white-space: normal;
}
.attendee-table td:nth-child(2) strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}
.attendee-table .person-contact-details {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.attendee-table td .contact-actions {
  min-width: 0;
  margin-top: 9px;
}
@media (max-width: 520px) {
  .attendee-table td:nth-child(2) {
    min-width: 260px;
  }
  .attendee-table .contact-actions a,
  .attendee-table .contact-unavailable {
    padding: 7px 8px;
  }
}

/* Links to stored files (approved documents, attachments, logos) */
.file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  word-break: break-word;
}
.file-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.doc-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  min-width: 0;
}
.doc-row .file-link {
  font-size: 14px;
}
.doc-status small {
  font-size: 12px;
}
@media (max-width: 560px) {
  .doc-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .doc-row > .row {
    justify-content: space-between !important;
  }
  .doc-status {
    align-items: flex-start;
    text-align: left;
  }
}

/* Workflow statuses (each status type stays separate) */
.chip.done,
.chip.verified,
.chip.coordinated,
.chip.signed,
.chip.assigned {
  background: #e6f7ec;
  color: #258451;
}
.chip.requires-action,
.chip.missing,
.chip.outstanding,
.chip.unassigned,
.chip.awaiting-response {
  background: #fff4d6;
  color: #906c15;
}
.chip.needs-correction,
.chip.inactive {
  background: #fde9eb;
  color: #ba323d;
}
.chip.in-progress,
.chip.available,
.chip.reassigned {
  background: #e8effd;
  color: #24518a;
}

/* Supervisor counters */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.stat strong {
  font-size: 26px;
  color: var(--navy);
}
.stat span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.stat:hover {
  border-color: var(--navy);
}

.check-field {
  justify-content: flex-end;
}
.check-field span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.check-field input {
  width: auto;
}
.typedoc-form {
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.typedoc-form .field {
  flex: 1 1 260px;
  margin-bottom: 0;
}
.list-card .list-text small strong {
  color: var(--text);
}
.summary td,
.list-text small,
.note {
  overflow-wrap: anywhere;
}

/* Arabic interface (right-to-left). English stays the default; see i18n.js. */
/* Dubai Font (Government of Dubai). Used from the computer when installed (Windows 10/11 include
   it), otherwise from the official files in assets/fonts/. */
@font-face {
  font-family: 'BNN Dubai';
  font-weight: 400;
  font-display: swap;
  src:
    local('Dubai'),
    local('Dubai-Regular'),
    url('./assets/fonts/Dubai-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'BNN Dubai';
  font-weight: 500;
  font-display: swap;
  src:
    local('Dubai Medium'),
    local('Dubai-Medium'),
    url('./assets/fonts/Dubai-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'BNN Dubai';
  font-weight: 700 900;
  font-display: swap;
  src:
    local('Dubai Bold'),
    local('Dubai-Bold'),
    url('./assets/fonts/Dubai-Bold.ttf') format('truetype');
}
[dir='rtl'] body,
[dir='rtl'] button,
[dir='rtl'] input,
[dir='rtl'] select,
[dir='rtl'] textarea {
  font-family: 'BNN Dubai', Tahoma, 'Geeza Pro', 'Segoe UI', Arial, sans-serif;
}
[dir='rtl'] .list-card,
[dir='rtl'] .list-text,
[dir='rtl'] .datatable,
[dir='rtl'] .nav-link,
[dir='rtl'] .stat,
[dir='rtl'] .doc-status {
  text-align: right !important;
}
[dir='rtl'] .stat {
  align-items: flex-start;
}
[dir='rtl'] .nav-drawer {
  left: auto;
  right: 0;
  box-shadow: -15px 0 50px #0003;
}
[dir='rtl'] .right,
[dir='rtl'] .status-row button {
  margin-left: 0;
  margin-right: auto;
}
[dir='rtl'] .red-panel ul {
  padding-left: 0;
  padding-right: 23px;
}
[dir='rtl'] .toast {
  right: auto;
  left: 20px;
}
[dir='rtl'] .dash-line {
  border-left: 0;
  border-right: 4px solid #d8e3ee;
  padding-left: 0;
  padding-right: 14px;
}
[dir='rtl'] .task {
  border-left: 0;
  border-right: 4px solid #e0b323;
}
/* The on/off switch keeps its left-to-right motion. */
[dir='rtl'] .switch {
  direction: ltr;
}
.phone-row {
  display: flex;
  gap: 8px;
}
.phone-row select {
  width: 11.5rem;
  flex: none;
}
.phone-row input {
  flex: 1;
  min-width: 0;
}
/* Emails, phone numbers and usernames are typed left to right. */
[dir='rtl'] input[type='email'],
[dir='rtl'] input[type='tel'],
[dir='rtl'] input[name='username'] {
  direction: ltr;
  text-align: right;
}
/* Letter spacing breaks Arabic letter joining. */
[dir='rtl'] * {
  letter-spacing: 0 !important;
}

/* Notifications panel */
.modal.notifications {
  max-height: 85vh;
  overflow: auto;
}
.modal.notifications h3 {
  margin: 18px 0 6px;
}
.list-card.unread {
  border-color: var(--navy);
  background: #f3f7ff;
}
