/* Masthead */
.masthead {
  padding: 20px 32px;
  border-bottom: 1px solid;
}

.lens-title {
  margin-top: 4px;
}

/* Context row */
.context {
  padding: 10px 32px;
  border-bottom: 1px solid;
}

/* Main content */
.content {
  max-width: 960px;
  padding: 32px;
}

/* Figures */
.figure {
  margin-bottom: 40px;
}

.figure.secondary {
  margin-top: 20px;
}

/* Placeholder (temporary, safe to delete later) */
.placeholder {
  height: 280px;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #999;
}

/* Meta */
.meta {
  padding-top: 12px;
  border-top: 1px solid;
}
/* ========== Footer ========== */

/* Login footer (inside card) */
.login-footer {
  margin-top: 14px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  color: #b5b5b5;
  letter-spacing: 0.08em;
}

/* ========== Top Bar ========== */

.topbar {
  background: #000;
  color: #fff;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.topbar-nav a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.topbar-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}


/* ========== Page Footer ========== */

.page-footer {
  max-width: 960px;
  margin: 60px auto 30px;
  padding: 0 32px;
}

.page-footer hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.footer-text {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  color: #b5b5b5;
  letter-spacing: 0.08em;
}

.app-container {
    max-width: 1200px;      /* or 1280px if you want wider */
    margin: 0 auto;         /* centers horizontally */
    padding: 40px 24px;     /* breathing space on sides */
}

.filter-bar {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    margin: 24px 0 32px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    color: #666;
}

.filter-group select {
    padding: 6px 8px;
    font-size: 14px;
}
.data-table-section {
    margin-top: 32px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #ddd;
    color: #333;
}

.data-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}
.data-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
}
/* MoM Color Coding */
.mom-positive {
    color: #0a8a2a;
    font-weight: 600;
}

.mom-negative {
    color: #c00000;
    font-weight: 600;
}

.mom-neutral {
    color: #000000;
    font-weight: 500;
}

.mom-na {
    color: #888888;
}
/* MoM Color Coding (specific enough to override table styles) */
.data-table tbody td.mom-positive {
    color: #0a8a2a;
    font-weight: 600;
}

.data-table tbody td.mom-negative {
    color: #c00000;
    font-weight: 600;
}

.data-table tbody td.mom-neutral {
    color: #000000;
    font-weight: 500;
}

.data-table tbody td.mom-na {
    color: #888888;
}

.cell-high {
    background-color: #eaf6ee;
}

.cell-low {
    background-color: #fdecec;
}
.chart-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
    margin-top:30px;
}

.chart-box{
    width:32%;
    text-align:center;
}

.chart-box canvas{
    max-width:260px;
    max-height:260px;
    margin:auto;
}

.custom-legend {
    margin-top:12px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
    font-size:14px;
}

.legend-item {
    display:flex;
    align-items:center;
    gap:6px;
}

.legend-color {
    width:14px;
    height:14px;
    display:inline-block;
}

.dashboard-home {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.dashboard-home-title {
    margin: 0;
    font-size: 36px;
    font-weight: 500;
    text-align: center;
}

.dashboard-card-grid {
    width: 100%;
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.dashboard-choice-link {
    color: inherit;
    text-decoration: none;
}

.dashboard-choice-card {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-choice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-choice-link:focus-visible .dashboard-choice-card {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.dashboard-choice-text {
    max-width: 260px;
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 768px) {
    .dashboard-home {
        min-height: auto;
        padding: 32px 0;
    }

    .dashboard-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-choice-card {
        min-height: 160px;
    }
}

.page-header {
    margin-bottom: 28px;
}

.page-title {
    margin: 0;
    font-size: 34px;
    font-weight: 500;
}

.page-subtitle {
    margin: 10px 0 0;
    max-width: 720px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.lead-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.lead-form-card,
.lead-history-card {
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.lead-form-card {
    padding: 28px;
}

.lead-history-card {
    padding: 24px;
}

.lead-card-header {
    margin-bottom: 20px;
}

.lead-card-title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.lead-card-copy {
    margin: 8px 0 0;
    color: #666;
    line-height: 1.5;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lead-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lead-field-full {
    grid-column: 1 / -1;
}

.lead-field span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: #111;
    font: inherit;
}

.lead-field textarea {
    resize: vertical;
    min-height: 160px;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    outline: none;
    border-color: #111;
}

.lead-form-actions {
    display: flex;
    justify-content: flex-start;
}

.lead-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.lead-alert-success {
    background: #eef8f1;
    border-color: #b8dcc0;
    color: #1f5f2e;
}

.lead-alert-error {
    background: #fcf1f1;
    border-color: #e7bcbc;
    color: #8c2626;
}

.lead-history-table td,
.lead-history-table th {
    vertical-align: top;
}

.lead-empty-state {
    padding: 24px 0 4px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .lead-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lead-form-card,
    .lead-history-card {
        padding: 20px;
    }

    .lead-form-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }
}

.settings-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.settings-action-button,
.settings-secondary-button {
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: #fff;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.settings-action-button {
    min-width: 220px;
    text-align: left;
}

.settings-action-button:disabled {
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    background: #f5f5f5;
}

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.settings-modal.is-visible {
    display: block;
}

.settings-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

.settings-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 560px);
    max-height: calc(100vh - 80px);
    margin: 40px auto;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.settings-modal-dialog-wide {
    width: min(94vw, 960px);
}

.settings-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.settings-modal-title {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
}

.settings-modal-copy {
    margin: 8px 0 0;
    color: #666;
    line-height: 1.5;
}

.settings-modal-close {
    border: none;
    background: transparent;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.settings-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.settings-add-button {
    margin-top: 0;
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: stretch;
}

.settings-form-actions .login-button,
.settings-form-actions .settings-secondary-button {
    margin-top: 0;
    min-height: 40px;
}

.settings-row-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.settings-link-button {
    border: none;
    background: transparent;
    color: #1f4f7a;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    text-decoration: underline;
}

.settings-link-button-danger {
    color: #8c2626;
}

.swal2-container {
    z-index: 20000 !important;
}

.swal-confirm-btn,
.swal-cancel-btn {
    margin-top: 0;
    min-height: 40px;
    padding: 10px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 0;
    border: 1px solid var(--border);
    box-shadow: none;
    cursor: pointer;
}

.swal-confirm-btn {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.swal-cancel-btn {
    background: #fff;
    color: #111;
    border-color: var(--border);
}

.swal-inline-progress {
    display: none;
    margin-top: 10px;
    height: 4px;
    width: 100%;
    background: #f0f0f0;
    overflow: hidden;
}

.swal-inline-progress.is-active {
    display: block;
}

.swal-inline-progress-bar {
    display: block;
    height: 100%;
    width: 40%;
    background: #111;
    animation: swalProgress 0.9s linear infinite;
}

@keyframes swalProgress {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(260%);
    }
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .settings-action-button {
        width: 100%;
        min-width: 0;
    }

    .settings-modal-dialog,
    .settings-modal-dialog-wide {
        width: calc(100vw - 24px);
        margin: 12px auto;
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

    .settings-modal-header {
        align-items: center;
    }

    .settings-toolbar,
    .settings-form-actions {
        justify-content: stretch;
        flex-direction: column;
    }
}

.postlead-shell {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.my-leads-page {
    padding: 24px 32px;
}

.my-leads-mono {
    font-family: monospace;
    font-size: 12px;
}

.my-leads-cap {
    text-transform: capitalize;
}

.my-leads-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.my-leads-status--active {
    border-color: #2a7a2a;
    color: #2a7a2a;
}

.my-leads-status--inactive {
    border-color: #aaa;
    color: #aaa;
}

@media (max-width: 640px) {
    .my-leads-page {
        padding: 16px;
    }
}

.postlead-card {
    width: min(680px, 100%);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.postlead-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 34px;
    font-weight: 500;
}

.postlead-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.postlead-form .lead-field {
    margin: 0;
}

.postlead-actions {
    display: flex;
    justify-content: center;
}

.is-hidden {
    display: none !important;
}

.searchlead-page {
    padding: 24px 32px;
}

.searchlead-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.searchlead-input {
    flex: 1 1 140px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 13px;
    min-width: 0;
}

.searchlead-input--narrow {
    flex: 0 1 110px;
}

.searchlead-input:focus {
    outline: none;
    border-color: #111;
}

.searchlead-submit {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 8px 20px;
    font-size: 13px;
}

#searchlead-results {
    margin-top: 32px;
}

.searchlead-empty {
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

/* ── Search results grid ── */
.sl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.sl-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background: #fff;
    padding: 20px;
}

.sl-card-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border: 1px solid #111;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sl-card-location {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.sl-card-price {
    font-size: 22px;
    font-weight: 500;
    color: #111;
    margin-bottom: 10px;
}

.sl-card-cheque {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.sl-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: auto;
    margin-bottom: 14px;
}

.sl-card-id {
    font-family: monospace;
}

.sl-card-interested {
    width: 100%;
    padding: 10px 0;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.sl-card-interested:hover:not(:disabled) {
    background: #333;
    border-color: #333;
}

.sl-card-interested:disabled {
    background: #555;
    border-color: #555;
    cursor: default;
}

@media (max-width: 640px) {
    .searchlead-page {
        padding: 16px;
    }

    .searchlead-input,
    .searchlead-input--narrow {
        flex: 1 1 100%;
    }

    .searchlead-submit {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .postlead-shell {
        min-height: auto;
    }

    .postlead-card {
        padding: 20px;
    }

    .postlead-form { grid-template-columns: 1fr; }
}




