
:root {
  --tlc-root-font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
option {
  font-family: var(--font-family, var(--tlc-root-font-family)) !important;
}

:root {
  --rich-black: #0D0D0D;
  --electric-blue: #2978F0;
  --soft-white: #F5F5F5;
  --warm-beige: #F2E9E4;
  --vivid-coral: #FF5C5C;
  --font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html {
  font-size: 18px;
}

body {
  font-family: var(--font-family);
  margin: 0; padding: 0;
  background-color: var(--soft-white);
  color: var(--rich-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  overflow-x: hidden;
}

header {
  background-color: #010203;
  color: #fff;
  display: flex;
  padding: 10px 20px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 9999;
}

.header-left {
  display: flex;
  align-items: center;
}

.site-title {
  margin: 0;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
}

.site-logo {
  height: 64px;
  width: auto;
  margin-right: 10px;
}

.header-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a:last-child {
  margin-right: 5px;
}
header nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}

.header nav a:hover {
  color: var(--electric-blue);
}

main {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  overflow-x: visible;
  box-sizing: border-box;
}

footer {
  background-color: var(--rich-black);
  color: var(--soft-white);
  text-align: center;
  padding: 10px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}


.flip-card-container {
  perspective: 1000px;
  width: 260px;
  height: 160px;
  margin: 10px;
}
.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.flip-card-container:hover .flip-card,
.flip-card-container:focus-within .flip-card {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0D0D0D;
}
.flip-card-front {
  background: white;
}
.flip-card-back {
  background: var(--electric-blue);
  color: white;
  transform: rotateY(180deg);
}
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1240px;
  margin: 40px auto 0 auto;
}
a.card-link {
  text-decoration: none;
  outline: none;
}
html, body {

  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.hidden-on-page {
  display: none !important;
}

footer {
  flex-shrink: 0;
}

.contact-header {
  text-align: center;
}
.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  width: 100%;
}

.contact-info {
  flex: 1;
  padding: 20px;
  background-color: var(--warm-beige);
  border-radius: 8px;
  margin-right: 20px;
  margin-left: 30px;
}

.contact-form {
  flex: 1;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-right: 85px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-family);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
  height: 48px;
}

.contact-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-family);
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
  height: 48px;
  background-color: #fff;
  color: #222;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
  opacity: 1;
}

.contact-form select option:first-child {
  color: #888;
}


.contact-form button {
  background-color: var(--electric-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a5fc4;
}


.support-wrapper {
  max-width: 1100px;
  margin: 0 auto 12px auto;
  padding: 20px 28px;
}

.support-form {
  background: white;
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(13,13,13,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}


.form-field {
  display:flex;
  flex-direction:column
}
.form-field label {
  font-weight:600;
  margin-bottom:8px;
  color:var(--rich-black);
  font-size:0.95rem
}
.form-field input,
.form-field select,
.form-field textarea {
  padding:12px;
  border:1px solid #d7d7d7;
  border-radius:6px;
  font-size:0.95rem
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(41,120,240,0.12);
  border-color: var(--electric-blue)
}
.form-field.full-width {
  grid-column: 1 / -1
}

.form-actions {
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:18px
}
.btn-primary {
  background: var(--electric-blue);
  color: #fff;
  padding:10px 18px;
  border-radius:6px;
  border:none;
  cursor:pointer
}
.btn-primary:hover {
  background:#1a5fc4
}
.btn-secondary {
  background: transparent;
  border:1px solid #ccc;
  padding:10px 16px;
  border-radius:6px;
  cursor:pointer
}


.intra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #111;
  border-radius: 8px;
  background: transparent;
  color: #111;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.intra-btn:hover {
  background: #f4f7ff;
}

.intra-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(41, 120, 240, 0.22);
}

.intra-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width:900px) {
  footer,
  footer.page-footer,
  .page-footer{
    display:block !important;
    visibility:visible !important;
    height:auto !important;
    margin: 20px 0 !important;
    padding: 12px 10px !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .support-wrapper {
    padding: 12px }
  .support-form {
    padding: 16px
  }
  header {
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
  }
  .contact-container { flex-direction: column !important; }
  .contact-info,
  .contact-form {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
}



html,
body,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent;
}


body.ic-dashboard,
body.ic-employees,
body.ic-management,
body.ic-files,
body.ic-folder-viewer,
body.ic-file-viewer,
body.ic-mailing-hub,
body.ic-capmark-hub {
  font-family: var(--font-family, var(--tlc-root-font-family));
  margin: 0;
  padding: 0;
  background: #f7f7fb;
  color: #111;
  height: 100vh;
  overflow: hidden;
}

body.ic-dashboard .btn,
body.ic-employees .btn,
body.ic-management .btn,
body.ic-files .btn,
body.ic-folder-viewer .btn,
body.ic-file-viewer .btn,
body.ic-mailing-hub .btn,
body.ic-capmark-hub .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 84px;
  height: 36px;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: #036;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.06s ease, box-shadow 0.06s ease;
}

body.ic-capmark-hub .btn:active,
body.ic-capmark-hub .btn.is-pressed {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.92);
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.08);
}

body.ic-dashboard .btn:focus-visible,
body.ic-employees .btn:focus-visible,
body.ic-management .btn:focus-visible,
body.ic-files .btn:focus-visible,
body.ic-folder-viewer .btn:focus-visible,
body.ic-file-viewer .btn:focus-visible,
body.ic-mailing-hub .btn:focus-visible,
body.ic-capmark-hub .btn:focus-visible {
  outline: 2px solid rgba(3, 102, 204, 0.3);
  outline-offset: 1px;
}

body.ic-dashboard .wrap {
  max-width: none;
  margin: 0;
  padding: 28px;
  box-sizing: border-box;
  min-height: 100vh;
}

body.ic-dashboard .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

body.ic-dashboard .card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.ic-dashboard .card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

body.ic-dashboard .card p {
  margin: 0 0 12px;
  color: #444;
}


body.ic-capmark-hub .wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.ic-capmark-hub .ic-capmark-hub-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.ic-capmark-hub .ic-capmark-hub-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 8px 12px 12px !important;
}

body.ic-capmark-hub .ic-capmark-hub-sub {
  margin: 0;
  color: #fff;
  line-height: 1.35;
}

body.ic-capmark-hub .ic-capmark-hub-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

body.ic-capmark-hub .ic-capmark-hub-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e8e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

body.ic-capmark-hub .ic-capmark-hub-card--lookup {
  background: transparent;
  border-color: #e1e1ea;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.ic-capmark-hub .ic-capmark-hub-card--lookup #hubResults {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 34vh;
  overflow: auto;
}

body.ic-capmark-hub .ic-capmark-hub-label {
  font-weight: 700;
  margin-bottom: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-inputrow {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.ic-capmark-hub .ic-capmark-hub-input {
  flex: 1 1 auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cfcfd9;
  font-size: 14px;
  outline: none;
  background: #fff;
}

body.ic-capmark-hub .ic-capmark-hub-go {
  background: #111;
  border-color: #111;
}

body.ic-capmark-hub .ic-capmark-hub-status {
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  color: #666;
}

body.ic-capmark-hub .ic-capmark-hub-status[data-tone="ok"] {
  color: #0b7a38;
}

body.ic-capmark-hub .ic-capmark-hub-status[data-tone="error"] {
  color: #b00020;
}

body.ic-capmark-hub .ic-capmark-hub-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
}

body.ic-capmark-hub .ic-capmark-hub-result {
  width: 100%;
  text-align: left;
  border: 1px solid #e1e1ea;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

body.ic-capmark-hub .ic-capmark-hub-result:hover {
  border-color: #bdbdd1;
}

body.ic-capmark-hub .ic-capmark-hub-result-symbol {
  font-weight: 800;
  font-size: 15px;
}

body.ic-capmark-hub .ic-capmark-hub-result-meta {
  margin-top: 3px;
  color: #555;
  font-size: 12.5px;
  line-height: 1.25;
}

body.ic-capmark-hub .ic-capmark-hub-profile-empty {
  color: #666;
  display: flex;
  align-items: center;
  min-height: 48px;
}

body.ic-capmark-hub .ic-capmark-hub-profile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.ic-capmark-hub .ic-capmark-hub-logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid #e5e5ee;
  background: #fff;
  object-fit: contain;
  flex: 0 0 auto;
}

body.ic-capmark-hub .ic-capmark-hub-profile-main {
  flex: 1 1 auto;
  min-width: 0;
}

body.ic-capmark-hub .ic-capmark-hub-profile-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

body.ic-capmark-hub .ic-capmark-hub-profile-symbol {
  font-weight: 800;
  color: #666;
  font-size: 0.95rem;
}

body.ic-capmark-hub .ic-capmark-hub-profile-meta {
  color: #444;
  line-height: 1.35;
}

body.ic-capmark-hub .ic-capmark-hub-quote {
  margin-top: 6px;
  color: #111;
  font-weight: 700;
}

body.ic-capmark-hub .ic-capmark-hub-quote-change[data-dir="up"] {
  color: #0b7a38;
}

body.ic-capmark-hub .ic-capmark-hub-quote-change[data-dir="down"] {
  color: #b00020;
}

body.ic-capmark-hub .ic-capmark-hub-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e1e1ea;
  font-size: 12.5px;
  color: #222;
}

body.ic-capmark-hub .ic-capmark-hub-chip a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

body.ic-capmark-hub .ic-capmark-hub-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.ic-capmark-hub .ic-capmark-hub-cta .btn {
  height: 36px;
  border-radius: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-cta .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.ic-capmark-hub .ic-capmark-hub-saved {
  margin-top: 10px;
  color: #666;
  font-size: 13px;
}

body.ic-capmark-hub .ic-capmark-hub-labelrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-labelrow .ic-capmark-hub-label {
  margin-bottom: 0;
}

body.ic-capmark-hub .ic-capmark-hub-card--profile {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

body.ic-capmark-hub .ic-capmark-hub-profile-shell {
  flex: 0 0 auto;
  min-height: 96px;
  max-height: min(34vh, 300px);
  overflow: auto;
}

body.ic-capmark-hub .ic-capmark-hub-profile-shell.is-empty {
  min-height: 72px;
  max-height: 72px;
}

body.ic-capmark-hub .ic-capmark-hub-saved-shell {
  flex: 1.05 1 0;
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ececf4;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

body.ic-capmark-hub .ic-capmark-hub-saved-title {
  font-weight: 800;
  margin-bottom: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-saved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

body.ic-capmark-hub .ic-capmark-hub-saved-block {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

body.ic-capmark-hub #hubWatchlistList,
body.ic-capmark-hub #hubPositionsList {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

body.ic-capmark-hub .ic-capmark-hub-saved-block-title {
  font-weight: 800;
  margin-bottom: 8px;
}

body.ic-capmark-hub .ic-capmark-hub-saved-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-saved-pick {
  flex: 1 1 auto;
  width: auto;
}

body.ic-capmark-hub .ic-capmark-hub-saved-move,
body.ic-capmark-hub .ic-capmark-hub-saved-trade,
body.ic-capmark-hub .ic-capmark-hub-saved-analysis {
  width: 100%;
  min-width: 148px;
  height: 36px;
  border-radius: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-profile-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.ic-capmark-hub .ic-capmark-hub-profile-slot {
  padding: 12px 0;
  border-top: 1px solid #ececf4;
}

body.ic-capmark-hub .ic-capmark-hub-profile-slot:first-child {
  border-top: 0;
  padding-top: 0;
}

body.ic-capmark-hub .ic-capmark-hub-profile-slot:last-child {
  padding-bottom: 0;
}

body.ic-capmark-hub .ic-capmark-hub-error {
  color: #b00020;
  font-weight: 700;
}

body.ic-capmark-hub .ic-capmark-hub-positions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 10px;
}

body.ic-capmark-hub .ic-capmark-hub-positions-title {
  font-weight: 700;
}

body.ic-capmark-hub .ic-capmark-hub-positions-empty {
  color: #666;
  font-size: 13px;
}

@media (max-width: 960px) {
  body.ic-capmark-hub {
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
  }

  body.ic-capmark-hub .wrap {
    min-height: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.ic-capmark-hub .ic-capmark-hub-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    min-height: 0;
    gap: 10px;
    overflow: hidden;
  }

  body.ic-capmark-hub .ic-capmark-hub-card--lookup {
    padding: 12px;
  }

  body.ic-capmark-hub .ic-capmark-hub-card--lookup #hubResults {
    flex: 0 0 auto;
    max-height: 22svh;
    overflow: auto;
  }

  body.ic-capmark-hub .ic-capmark-hub-card--profile {
    max-height: none;
    min-height: 0;
    height: 100%;
    padding: 12px;
    overflow: hidden;
  }

  body.ic-capmark-hub .ic-capmark-hub-profile-shell {
    flex: 0 0 auto;
    min-height: 92px;
    max-height: 34svh;
    overflow: auto;
  }

  body.ic-capmark-hub .ic-capmark-hub-profile-shell.is-empty {
    min-height: 68px;
    max-height: 68px;
  }

  body.ic-capmark-hub .ic-capmark-hub-saved-grid {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
  }

  body.ic-capmark-hub .ic-capmark-hub-saved-shell {
    flex: 1 1 auto;
    margin-top: 8px;
    padding-top: 8px;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  body.ic-capmark-hub #hubWatchlistList,
  body.ic-capmark-hub #hubPositionsList {
    max-height: none;
    overflow: auto;
  }
}

@media (max-width: 520px) {
  body.ic-capmark-hub .ic-capmark-hub-saved-card {
    flex-direction: column;
  }

  body.ic-capmark-hub .ic-capmark-hub-saved-move,
  body.ic-capmark-hub .ic-capmark-hub-saved-trade,
  body.ic-capmark-hub .ic-capmark-hub-saved-analysis {
    width: 100%;
    min-width: 0;
  }
}

body.ic-employees .wrap {
  width: 100%;
  max-width: none;
  margin: 28px 0;
  padding: 20px;
  box-sizing: border-box;
}

body.ic-management .wrap,
body.ic-files .wrap,
body.ic-folder-viewer .wrap {
  width: 100%;
  max-width: none;
  margin: 28px 0;
  padding: 20px;
  box-sizing: border-box;
}

body.ic-employees header,
body.ic-management header,
body.ic-files .topbar,
body.ic-folder-viewer .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: #111;
  padding: 0;
  position: static;
  z-index: auto;
}

body.ic-employees .add-employee-btn {
  margin-left: 8px;
}

body.ic-files .open-upload-btn,
body.ic-folder-viewer .open-upload-btn {
  margin-right: 8px;
}

.section-gap {
  margin-top: 18px;
}

body.ic-employees table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

body.ic-employees th,
body.ic-employees td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

body.ic-employees th {
  background: #fafafa;
}

body.ic-management .card {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.files-table thead tr {
  text-align: left;
}

.files-table th {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.file-cell,
.action-cell {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.ml-8 {
  margin-left: 8px;
}

.empty-text {
  color: #666;
  margin-top: 12px;
}

.flash-stack {
  margin-top: 12px;
}

.flash-item {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  color: #fff;
}

.flash-item.flash.error {
  background: #c0392b;
}

.flash-item.flash.success {
  background: #27ae60;
}

.flash-item.flash.info,
.flash-item.flash.message,
.flash-item.flash.warning,
.flash-item.flash {
  background: #444;
}

.upload-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 10040;
}

.upload-modal-card {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}

.upload-file-input {
  margin-top: 8px;
}

.upload-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-muted {
  background: #999 !important;
  margin-right: 8px;
}


body.ic-login {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.ic-login .page-scroll-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.ic-login main {
  margin: 0;
}

body.ic-login .login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 24px;
}

body.ic-login .login-box {
  width: 360px;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background: #fff;
}

body.ic-login .login-box h2 {
  text-align: center;
  margin: 0 0 16px;
}

body.ic-login .login-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.ic-login .form-field {
  margin: 0;
  padding: 0;
}

body.ic-login .form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #333;
}

body.ic-login input[type="text"],
body.ic-login input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

body.ic-login button {
  width: 100%;
  padding: 10px;
  background: #0b5fff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

body.ic-login .flash {
  margin-bottom: 12px;
  color: #b00020;
  text-align: center;
}


body.ic-mailing-hub .wrap {
  width: 100%;
  max-width: none;
  margin: 36px 0;
  padding: 20px;
  box-sizing: border-box;
}

body.ic-mailing-hub .card {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.ic-mailing-hub .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.ic-mailing-hub .hub-title {
  margin: 0;
}

body.ic-mailing-hub .muted {
  color: #666;
}

body.ic-mailing-hub .top-gap {
  margin-top: 10px;
}

body.ic-mailing-hub .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

body.ic-mailing-hub .field input,
body.ic-mailing-hub .field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

body.ic-mailing-hub .field textarea {
  min-height: 180px;
  resize: vertical;
}

body.ic-mailing-hub .hub-actions {
  margin-top: 16px;
}

body.ic-mailing-hub .result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-line;
}

body.ic-mailing-hub .hidden-result {
  display: none;
}

body.ic-mailing-hub .ok-result {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #a7f3d0;
}

body.ic-mailing-hub .error-result {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}


body.ic-file-viewer {
  padding: 20px;
}

body.ic-file-viewer .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

body.ic-file-viewer .controls {
  margin-bottom: 12px;
}

body.ic-file-viewer .controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.ic-file-viewer .top-left,
body.ic-file-viewer .top-right {
  display: flex;
  align-items: center;
}

body.ic-file-viewer .top-right-gap {
  gap: 8px;
}

body.ic-file-viewer .icon-btn {
  background: transparent;
  color: #000;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 8px;
  font-weight: 600;
  font-size: 16px;
}

body.ic-file-viewer .icon-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.ic-file-viewer .viewer-content {
  margin-top: 12px;
  min-height: 300px;
  position: relative;
  background: transparent;
  padding: 24px;
  border-radius: 0;
}

body.ic-file-viewer .viewer-editor {
  display: none;
  min-height: 300px;
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #eee;
}

body.ic-file-viewer .pencil-status {
  margin-left: 12px;
  color: #666;
}

body.ic-file-viewer .img-selected {
  outline: 2px dashed #036;
}

body.ic-file-viewer .img-toolbar {
  position: fixed;
  display: none;
  z-index: 10050;
  background: #fff;
  border: 1px solid #e6e6ee;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
  font-size: 13px;
}

body.ic-file-viewer .img-toolbar button {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
}

body.ic-file-viewer .img-toolbar input[type="range"] {
  width: 120px;
}

body.ic-file-viewer .img-toolbar-label {
  margin-left: 8px;
}

body.ic-file-viewer .img-remove-btn {
  color: #b00;
  margin-left: 8px;
}

body.ic-file-viewer .img-resize-overlay {
  pointer-events: auto;
  background: transparent !important;
  border: none;
}

body.ic-file-viewer .page {
  box-sizing: border-box;
  width: 210mm;
  height: 297mm;
  padding: 16mm;
  background: #fff;
  margin: 18px auto;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

body.ic-file-viewer .page-break {
  display: block;
  height: 12px;
  border-top: 2px dashed #e0e0ea;
  margin: 18px 0;
}

body.ic-file-viewer #content[contenteditable="true"]:focus,
body.ic-file-viewer .content:focus,
body.ic-file-viewer .icon-btn:focus,
body.ic-file-viewer .btn:focus,
body.ic-file-viewer button:focus {
  outline: none !important;
  box-shadow: none !important;
}

body.ic-file-viewer .page:focus,
body.ic-file-viewer .page:focus-within,
body.ic-file-viewer .page *:focus,
body.ic-file-viewer .page:focus-visible,
body.ic-file-viewer .page *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

body.ic-file-viewer #content[contenteditable="true"]:focus,
body.ic-file-viewer #content[contenteditable="true"] :focus,
body.ic-file-viewer #content[contenteditable="true"] :focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

body.ic-file-viewer #viewerContainer :focus,
body.ic-file-viewer #viewerContainer :focus-visible,
body.ic-file-viewer #viewerContainer *:focus,
body.ic-file-viewer #viewerContainer *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  -webkit-box-shadow: none !important;
}

body.ic-file-viewer #viewerContainer,
body.ic-file-viewer #viewerContainer * {
  -webkit-tap-highlight-color: transparent;
}

body.ic-file-viewer #viewerContainer::-webkit-focus-inner {
  border: 0 !important;
}

body.ic-file-viewer .page,
body.ic-file-viewer .page * {
  caret-color: #000 !important;
}

body.ic-file-viewer .page p {
  min-height: 1em;
}

body.ic-file-viewer * {
  -webkit-tap-highlight-color: transparent;
}

body.ic-file-viewer .viewer-inline-image {
  max-width: 100%;
}

body.ic-file-viewer .viewer-inline-iframe {
  width: 100%;
  height: 80vh;
  border: none;
}

body.ic-file-viewer .viewer-inline-pre {
  white-space: pre-wrap;
}

body.ic-file-viewer .pencil-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  z-index: 10050;
}

body.ic-file-viewer .pencil-color-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #666;
  border-radius: 50%;
  background: var(--swatch-color, #000);
  cursor: pointer;
}

body.ic-file-viewer .pencil-width-btn {
  width: 32px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
}

body.ic-file-viewer .pencil-clear-btn {
  cursor: pointer;
}

body.ic-file-viewer .overlay-ink {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10003;
}

body.ic-file-viewer .upload-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10050;
}


body.ic-msmg {
  height: 100%;
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.ic-msmg .wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.ic-msmg .msmg-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 8px 12px 12px !important;
}

body.ic-msmg .msmg-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 0;
}

body.ic-msmg .msmg-workspace.split-election {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

body.ic-msmg .msmg-table-manager {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

body.ic-msmg .msmg-election-table-manager {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

body.ic-msmg .msmg-election-table-manager[hidden] {
  display: none !important;
}

body.ic-msmg .msmg-table-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 0;
}

body.ic-msmg .msmg-table-tab {
  padding: 5px 10px;
  font-weight: 700;
}

body.ic-msmg .msmg-add-row {
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.ic-msmg .msmg-add-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.ic-msmg .msmg-add-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 180px;
  background: #fff;
  border: 1px solid #111;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body.ic-msmg .msmg-add-menu[hidden] {
  display: none !important;
}

body.ic-msmg .msmg-add-menu button {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  text-align: left;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 13px;
}

body.ic-msmg .msmg-add-menu button:hover {
  background: #f4f7ff;
}

body.ic-msmg .msmg-add-row[aria-expanded="true"] {
  border-width: 2px;
}

body.ic-msmg .msmg-topbar-spacer {
  flex: 1 1 auto;
}

body.ic-msmg .msmg-election-split-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 10px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

body.ic-msmg .msmg-election-split-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.ic-msmg .msmg-election-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #111;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  line-height: 1;
  font-size: 15px;
  font-weight: 900;
  background: #fff;
}

body.ic-msmg .msmg-election-split-toggle:has(input:checked) .msmg-election-checkmark {
  color: #fff;
  background: #111;
}

body.ic-msmg .msmg-election-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

body.ic-msmg .msmg-election-filter-wrap[hidden] {
  display: none !important;
}

body.ic-msmg .msmg-election-filter-wrap select {
  min-height: 32px;
  border: 1px solid #111;
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
  font-weight: 600;
}

body.ic-msmg .msmg-run-sql {
  padding: 5px 10px;
  font-weight: 600;
}

body.ic-msmg .msmg-table-tab.active {
  border-width: 2px;
}

body.ic-msmg #msmg-msg.success {
  color: #006400;
}

body.ic-msmg #msmg-msg.error {
  color: #900;
}

body.ic-msmg #msmg-msg.pending {
  color: #444;
}

body.ic-msmg .msmg-grid-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

body.ic-msmg .msmg-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

body.ic-msmg .msmg-grid th,
body.ic-msmg .msmg-grid td {
  border-bottom: 1px solid #e6e6e6;
  border-right: 1px solid #efefef;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  white-space: normal;
}

body.ic-msmg .msmg-grid th:last-child,
body.ic-msmg .msmg-grid td:last-child {
  border-right: none;
}

body.ic-msmg .msmg-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f6f6f6;
  font-weight: 700;
  text-transform: lowercase;
}

body.ic-msmg .msmg-grid tbody td {
  padding: 0;
  position: relative;
}

body.ic-msmg .msmg-cell-content {
  display: block;
  height: var(--row-size, 132px);
  padding: 4px 8px;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.32;
  box-sizing: border-box;
}

body.ic-msmg .msmg-grid tbody tr {
  cursor: pointer;
}

body.ic-msmg .msmg-grid tbody tr[data-resize="true"] td {
  cursor: row-resize;
}

body.ic-msmg .msmg-grid tbody tr.resizing {
  user-select: none;
  background: #eaf2ff;
}

body.ic-msmg .msmg-grid tbody tr:hover {
  background: #f8fbff;
}

body.ic-msmg .msmg-grid tbody tr.active {
  background: #eaf2ff;
}

body.ic-msmg .msmg-empty {
  padding: 12px;
  color: #666;
  font-size: 14px;
}

body.ic-msmg .msmg-editor-panel {
  margin: 0;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  min-height: 0;
  overflow: auto;
}

body.ic-msmg .msmg-editor-panel h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
}

body.ic-msmg .msmg-panel-form label {
  display: block;
  margin: 8px 0;
}

body.ic-msmg .msmg-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.ic-msmg .msmg-datetime-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

body.ic-msmg .msmg-field-hint {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #475467;
  line-height: 1.4;
}

body.ic-msmg .msmg-panel-form input[type="text"],
body.ic-msmg .msmg-panel-form input[type="datetime-local"],
body.ic-msmg .msmg-panel-form input[type="file"],
body.ic-msmg .msmg-panel-form textarea,
body.ic-msmg .msmg-panel-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
}

body.ic-msmg .msmg-panel-form input[type="datetime-local"] {
  min-height: 44px;
}

body.ic-msmg #msmg-sql-command {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  min-height: 180px;
  resize: vertical;
}

body.ic-msmg #msmg-sql-output {
  margin-top: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 46vh;
}

body.ic-msmg .msmg-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

body.ic-msmg .msmg-editor-actions button {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

body.ic-msmg .msmg-editor-actions button.danger {
  background: #9b111e;
  border: 1px solid #7f0e18;
  color: #fff;
}

body.ic-msmg .msmg-main.editor-open {
  padding: 0 !important;
}

body.ic-msmg .msmg-main.editor-open .msmg-table-manager {
  display: none;
}

body.ic-msmg .msmg-main.editor-open .msmg-workspace {
  display: flex;
  height: 100%;
}

body.ic-msmg .msmg-main.editor-open .msmg-editor-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 16px;
  overflow: hidden;
}

body.ic-msmg .msmg-main.editor-open #msmg-editor-form:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body.ic-msmg .msmg-main.editor-open #msmg-editor-form .msmg-story-label {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 220px;
}

body.ic-msmg .msmg-main.editor-open #msmg-editor-form #story {
  flex: 1 1 auto;
  min-height: 180px;
  resize: none;
}

body.ic-msmg .msmg-main.editor-open.split-election {
  padding: 8px 12px 12px !important;
}

body.ic-msmg .msmg-main.editor-open.split-election .msmg-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 12px;
  height: 100%;
}

body.ic-msmg .msmg-main.editor-open.split-election .msmg-table-manager,
body.ic-msmg .msmg-main.editor-open.split-election .msmg-election-table-manager {
  display: flex;
}

body.ic-msmg .msmg-main.editor-open.split-election .msmg-editor-panel {
  width: auto;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  padding: 14px;
}

@media (max-width: 900px) {
  body.ic-msmg .msmg-main.editor-open.split-election .msmg-workspace,
  body.ic-msmg .msmg-workspace.split-election {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  body.ic-login .login-box {
    width: 100%;
    padding: 20px;
  }
}

/* Mailing Hub EasyPost Integration */
.delivery-methods label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.hidden-fields {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#physical-mail-fields h3 {
  color: #036;
  border-bottom: 2px solid #036;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 15px;
}
