.bordernav {
    box-shadow: 1px 2px 3px #ededed;
}

.lpage {
    padding: 1rem;
    box-shadow: 2px 3px 10px #888888;
    border-radius: 1rem;
}

.aptech {
    position: absolute;
    bottom: 0;
    left: 0;
}


.color-box {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 10px;
}

.color-name {
    display: inline-block;
    font-size: 0.7rem;
}

/* Status legend */
.status-legend__header {
    margin-bottom: 1rem;
}

.status-legend__title {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.status-legend__subtitle {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0;
}

.status-legend__groups {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.status-legend__group-title {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.status-legend__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-legend__item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem 0.3rem 0.35rem;
}

.status-legend__swatch {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
}

.status-legend__label {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-legend__swatch.table-quoted,
.status-legend__swatch.table-failed {
    border-color: rgba(255, 255, 255, 0.25);
}

.marketer {
    background-color: blue;
    color: white;

    a {
        color: white;
    }
}

.pipeline {
    background-color: green;
    color: white;

    a {
        color: white;
    }
}

.management {
    background-color: red;
    color: white;

    a {
        color: white;
    }
}

.card{
    height: 9rem;
}

.aptech {
    font-size: 0.8rem;
}

.todo {
    background-color: rgb(255, 0, 111);
    color: white;

    a {
        color: white;
    }
}

.failedleads {
    background-color: black;
    color: white;

    a {
        color: white;
    }
}

.analytics {
    background-color: orange;
    color: white;

    a {
        color: white;
    }
}

table {
    color: rgb(0, 0, 0);
}

/* table colors  */
.table-visited {
    background-color: rgba(255, 165, 0, 0.6);
}

.table-revisited {
    background-color: orange;
}

.table-bought {
    background-color: green;
}

.table-partialy {
    background-color: rgba(0, 128, 0, 0.6);
}

.table-quoted {
    background-color: blue;
    color: white;
}

.table-showroom {
    background-color: rgba(0, 0, 255, 0.6);
}

.table-failed {
    background-color: rgb(0, 0, 0);
    color: white;
}

.leads-table tbody tr[class*="table-"] {
    border-left: 4px solid transparent;
}

.leads-table tbody tr.table-visited { border-left-color: rgba(255, 140, 0, 1); }
.leads-table tbody tr.table-revisited { border-left-color: orange; }
.leads-table tbody tr.table-partialy { border-left-color: rgba(0, 128, 0, 0.9); }
.leads-table tbody tr.table-bought { border-left-color: green; }
.leads-table tbody tr.table-quoted { border-left-color: blue; }
.leads-table tbody tr.table-showroom { border-left-color: rgba(0, 0, 255, 0.85); }
.leads-table tbody tr.table-failed { border-left-color: #111; }

.table-container {
    width: 100%; /* Adjust width as needed */
    overflow-x: auto;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .lpage {
        width: 90%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .lpage {
        width: 25%;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    
}

/* Dashboard (home.php) */
.dashboard-page {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    min-height: calc(100vh - 3rem);
}

.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.dashboard-hero__eyebrow {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.dashboard-hero__title {
    color: #0f172a;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-hero__subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: 36rem;
}

.dashboard-hero__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.dashboard-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
}

.dashboard-date {
    color: #64748b;
    font-size: 0.875rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.dashboard-stat__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dashboard-stat__icon--pipeline {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-stat__icon--todo {
    background: #fce7f3;
    color: #be185d;
}

.dashboard-stat__icon--marketer {
    background: #dbeafe;
    color: #1d4ed8;
}

.dashboard-stat__value {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.15rem;
}

.dashboard-stat__label {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 11.5rem;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid transparent;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.dashboard-card--marketer { border-top-color: #2563eb; }
.dashboard-card--pipeline { border-top-color: #16a34a; }
.dashboard-card--management { border-top-color: #dc2626; }
.dashboard-card--analytics { border-top-color: #ea580c; }
.dashboard-card--todo { border-top-color: #db2777; }

.dashboard-card__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.dashboard-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.dashboard-card--marketer .dashboard-card__icon { background: #dbeafe; color: #2563eb; }
.dashboard-card--pipeline .dashboard-card__icon { background: #dcfce7; color: #16a34a; }
.dashboard-card--management .dashboard-card__icon { background: #fee2e2; color: #dc2626; }
.dashboard-card--analytics .dashboard-card__icon { background: #ffedd5; color: #ea580c; }
.dashboard-card--todo .dashboard-card__icon { background: #fce7f3; color: #db2777; }

.dashboard-card__title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.dashboard-card__text {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.45;
}

.btn-dashboard {
    align-self: flex-start;
    background: #0f172a;
    border: none;
    border-radius: 0.6rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-dashboard:hover,
.btn-dashboard:focus {
    background: #1e293b;
    color: #fff;
}

.dashboard-card__pill {
    background: #db2777;
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    vertical-align: middle;
}

@media only screen and (max-width: 992px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        padding: 1.25rem;
    }
}

/* Marketers page */
.marketers-page .marketers-back-btn {
    margin-top: 0.25rem;
}

.marketers-toolbar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.marketers-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.marketers-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.marketers-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.marketers-filter-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.marketers-filter-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.marketers-filter-btn.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.marketers-search {
    min-width: 240px;
    max-width: 320px;
    width: 100%;
}

.marketers-export-bar {
    align-items: center;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
}

.marketers-export-bar__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.marketers-export-count {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.marketers-export-hint {
    font-size: 0.8rem;
}

.marketers-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.marketers-form-panel {
    border-left: 4px solid #16a34a;
}

.marketers-legend-panel {
    border-left: 4px solid #2563eb;
}

.marketers-panel__header {
    margin-bottom: 1rem;
}

.marketers-panel__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.marketers-panel__subtitle {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.leads-table-wrap {
    overflow-x: auto;
}

.leads-table {
    margin-bottom: 0;
    min-width: 1200px;
}

.leads-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.leads-table tbody td {
    vertical-align: middle;
}

.leads-table__check-col {
    text-align: center;
    width: 3rem;
}

.lead-checkbox {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    margin: 0;
    min-height: 1.75rem;
    min-width: 1.75rem;
    position: relative;
}

.lead-checkbox__input {
    cursor: pointer;
    height: 1.1rem;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 1.1rem;
    z-index: 2;
}

.lead-checkbox__box {
    background: #fff;
    border: 2px solid #94a3b8;
    border-radius: 0.3rem;
    display: inline-block;
    height: 1.1rem;
    transition: all 0.15s ease;
    width: 1.1rem;
}

.lead-checkbox__input:focus + .lead-checkbox__box {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

.lead-checkbox__input:checked + .lead-checkbox__box {
    background: #2563eb;
    border-color: #2563eb;
}

.lead-checkbox__input:checked + .lead-checkbox__box::after {
    color: #fff;
    content: '\2713';
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 0.95rem;
    text-align: center;
}

.lead-checkbox--mark .lead-checkbox__input:checked + .lead-checkbox__box {
    background: #16a34a;
    border-color: #16a34a;
}

.lead-radio-form {
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .marketers-search {
        max-width: none;
    }

    .marketers-export-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}