/* Take Avia CRM panel — «Expinova» travel-dashboard look (Behance 187408541) in the Take Avia blue #0C5EFE */
:root {
    --ta-blue: #0c5efe;
    --ta-blue-dark: #0846c4;
    --ta-ink: #14171f;
    --ta-muted: #6b7280;
    --ta-line: #e8ebf1;
    --ta-card: #ffffff;
    --ta-soft: #f6f7fb;
}
.dark {
    --ta-ink: #eef1f7;
    --ta-muted: #9aa3b2;
    --ta-line: #262b36;
    --ta-card: #161a22;
    --ta-soft: #10131a;
}

body, button, input, select, textarea {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* sidebar: light panel, active item = solid blue pill */
#nav-sidebar-inner {
    background: var(--ta-soft);
    border-right: 1px solid var(--ta-line);
}
#nav-sidebar-apps ol a {
    height: 42px;
    margin-bottom: 2px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--ta-ink);
}
#nav-sidebar-apps ol a:hover {
    background: rgba(12, 94, 254, .08);
    color: var(--ta-blue);
}
#nav-sidebar-apps ol a.active {
    background: var(--ta-blue) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(12, 94, 254, .28);
}
#nav-sidebar-apps ol a.active .material-symbols-outlined {
    color: #fff;
}
#nav-sidebar-apps h2 {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--ta-muted);
}

/* ---- dashboard ---- */
.ta {
    color: var(--ta-ink);
    max-width: 1320px;
}
.ta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.ta-head h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
}
.ta-head p {
    margin: 4px 0 0;
    color: var(--ta-muted);
    font-size: 14px;
}
.ta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--ta-line);
    background: var(--ta-card);
    color: var(--ta-ink) !important;
}
.ta-btn.primary {
    background: var(--ta-blue);
    border-color: var(--ta-blue);
    color: #fff !important;
}
.ta-btn .material-symbols-outlined {
    font-size: 18px;
}

.ta-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1180px) {
    .ta-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.ta-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--ta-card);
    border: 1px solid var(--ta-line);
    border-radius: 16px;
    padding: 18px;
    transition: box-shadow .15s, transform .15s;
}
a.ta-card:hover {
    box-shadow: 0 10px 24px rgba(20, 23, 31, .08);
    transform: translateY(-2px);
}
.ta-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ta-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.ta-ico .material-symbols-outlined {
    font-size: 22px;
}
.ta-ico.blue { background: #e8f0ff; color: #0c5efe; }
.ta-ico.green { background: #e6f7ee; color: #12924f; }
.ta-ico.amber { background: #fff4e0; color: #c27803; }
.ta-ico.red { background: #fdecec; color: #d12c2c; }
.ta-ico.violet { background: #f0ebff; color: #6d3fe0; }
.ta-ico.teal { background: #e3f6f6; color: #0f8a8a; }
.dark .ta-ico { background: rgba(255, 255, 255, .06); }
.ta-dots {
    color: var(--ta-muted);
    font-size: 20px;
    line-height: 1;
}
.ta-card h3 {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 700;
}
.ta-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    word-break: break-word;
}
.ta-text {
    color: var(--ta-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}
.ta-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ta-blue) !important;
    font-size: 13px;
    font-weight: 600;
}
.ta-more .material-symbols-outlined {
    font-size: 16px;
}

/* right column: «bank card» panels */
.ta-side {
    background: var(--ta-card);
    border: 1px solid var(--ta-line);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ta-side h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}
.ta-wallet {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #2f7bff 0%, #0c5efe 45%, #0846c4 100%);
    box-shadow: 0 12px 28px rgba(12, 94, 254, .30);
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ta-wallet.alt {
    background: linear-gradient(135deg, #5b8cff 0%, #3b6cf0 50%, #2448b8 100%);
}
.ta-wallet::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}
.ta-wallet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    opacity: .92;
    position: relative;
    z-index: 1;
}
.ta-wallet-top img {
    width: 34px;
    height: 34px;
}
.ta-wallet-sum {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    position: relative;
    z-index: 1;
}
.ta-wallet-sum small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    opacity: .85;
    letter-spacing: 0;
}
.ta-wallet-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    position: relative;
    z-index: 1;
}
.ta-wallet-row b {
    display: block;
    font-size: 14px;
}
.ta-side-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ta-side-btns .ta-btn {
    justify-content: center;
}

/* latest sales */
.ta-table-card {
    margin-top: 20px;
    background: var(--ta-card);
    border: 1px solid var(--ta-line);
    border-radius: 16px;
    padding: 18px;
}
.ta-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ta-table-head h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}
.ta-scroll {
    overflow-x: auto;
}
.ta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
}
.ta-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--ta-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px 10px;
    border-bottom: 1px solid var(--ta-line);
}
.ta-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--ta-line);
}
.ta-table tr:last-child td {
    border-bottom: 0;
}
.ta-pos { color: #12924f; font-weight: 700; }
.ta-neg { color: #d12c2c; font-weight: 700; }
.ta-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.ta-pill.ok { background: #e6f7ee; color: #12924f; }
.ta-pill.wait { background: #fff4e0; color: #c27803; }
.ta-empty {
    color: var(--ta-muted);
    padding: 18px 10px;
}

.ta-card, .ta-side, .ta-table-card { min-width: 0; }

@media (max-width: 640px) {
    .ta-head h1 { font-size: 22px; }
    .ta-actions { width: 100%; }
    .ta-actions .ta-btn { flex: 1; justify-content: center; }
    .ta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ta-dots { display: none; }
    .ta-card { padding: 14px; }
    .ta-text { display: none; }
    .ta-value { font-size: 17px; }
}

/* ---- leads board (design «A») ---- */
.lb .ta-head { margin-bottom: 14px; }
.lb-crumb { margin: 0 0 4px !important; font-size: 13px; }
.lb-sr { position: absolute; left: -9999px; }
.lb-tabs { display: flex; padding: 4px; background: #f1f3f8; border-radius: 12px; }
.dark .lb-tabs { background: var(--ta-card); }
.lb-tabs a { padding: 8px 14px; border-radius: 9px; color: var(--ta-muted) !important; font-weight: 600; }
.lb-tabs a.on { background: var(--ta-card); color: var(--ta-ink) !important; box-shadow: 0 1px 3px rgba(20,23,31,.08); }
.lb-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.lb-search { flex: 1 1 320px; max-width: 480px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
    border: 1px solid var(--ta-line); border-radius: 12px; background: var(--ta-card); color: var(--ta-muted); }
.lb-search:focus-within { border-color: var(--ta-blue); box-shadow: 0 0 0 3px rgba(12,94,254,.15); }
.lb-search input { border: 0; outline: none; flex: 1; font: inherit; background: transparent; color: var(--ta-ink); min-width: 0; }
.lb-found { font-size: 12px; white-space: nowrap; }
.lb-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600;
    border: 1px solid var(--ta-line); background: var(--ta-card); color: var(--ta-ink) !important; }
.lb-chip.on { background: var(--ta-blue); border-color: var(--ta-blue); color: #fff !important; }
.lb-calls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
    background: #fff6e8; border: 1px solid #f6dcae; color: #7a4500; margin-bottom: 14px; }
.dark .lb-calls { background: rgba(255,181,71,.10); border-color: rgba(255,181,71,.3); color: #ffc770; }
.lb-call { padding: 4px 10px; border-radius: 999px; background: #fff; color: #7a4500 !important; font-weight: 600; font-size: 13px; }
.lb-call.late { color: #b42318 !important; }
.dark .lb-call { background: var(--ta-card); }
.lb-scroll { overflow-x: auto; padding-bottom: 8px; }
.lb-board { display: flex; gap: 12px; align-items: flex-start; min-width: 1060px; }
.lb-col { flex: 1 1 0; min-width: 200px; background: var(--ta-soft); border: 1px solid var(--ta-line); border-radius: 16px;
    padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: background .12s, border-color .12s; }
.lb-col.over { background: #f3f7ff; border-color: #8fb3ff; }
.dark .lb-col.over { background: rgba(12,94,254,.10); }
.lb-col-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0; }
.lb-col-head h2 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; }
.lb-dot { width: 10px; height: 10px; border-radius: 50%; }
.lb-count { font-size: 13px; font-weight: 700; color: var(--ta-muted); background: var(--ta-card); border-radius: 999px; padding: 2px 9px; }
.lb-bar { height: 3px; border-radius: 3px; }
.lb-cards { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.lb-card { background: var(--ta-card); border: 1px solid var(--ta-line); border-radius: 14px; padding: 14px; display: flex;
    flex-direction: column; gap: 10px; cursor: grab; box-shadow: 0 1px 2px rgba(20,23,31,.04); }
.lb-card.dragging { opacity: .55; transform: rotate(-2deg); }
.lb-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lb-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ta-ink) !important; }
.lb-name strong { font-size: 15px; }
.lb-name span { font-size: 13px; color: var(--ta-muted); }
.lb-src { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e8f0ff; color: #0846c4; }
.lb-src.insta { background: #fdeef6; color: #a3195b; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-tag { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: #f1f3f8; color: #3a404c; }
.lb-tag.dest { background: #e8f0ff; color: #0846c4; }
.dark .lb-tag { background: rgba(255,255,255,.06); color: var(--ta-ink); }
.lb-remind, .lb-sale { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 700;
    padding: 5px 9px; border-radius: 8px; background: #fff4e0; color: #8a4b00; }
.lb-remind .material-symbols-outlined { font-size: 15px; }
.lb-remind.late { background: #fdecec; color: #b42318; }
.lb-sale { background: #e6f7ee; color: #12703f; }
.lb-comment { margin: 0; font-size: 12px; color: var(--ta-muted); }
.lb-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px;
    border-top: 1px solid var(--ta-line); font-size: 12px; color: var(--ta-muted); }
.lb-seller { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ta-ink); }
.lb-ava { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.lb-move select { width: 100%; height: 34px; border: 1px solid var(--ta-line); border-radius: 9px; background: var(--ta-soft);
    color: var(--ta-ink); font: inherit; font-size: 13px; padding: 0 8px; }
.lb-drop { display: none; border: 2px dashed #8fb3ff; border-radius: 14px; padding: 16px; text-align: center; color: #0846c4; font-weight: 600; }
.lb-col.over .lb-drop { display: block; }

/* quick status buttons in the leads list */
.lq { display: flex; gap: 6px; }
.lq button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid; display: grid; place-items: center; cursor: pointer; }
.lq button .material-symbols-outlined { font-size: 18px; }
.lq .c { border-color: #e3d9ff; background: #f4f0ff; color: #6d3fe0; }
.lq .o { border-color: #f6dcae; background: #fff6e8; color: #a15c00; }
.lq .w { border-color: #bfe8d0; background: #e6f7ee; color: #12703f; }
.lq .l { border-color: #e3e5ea; background: #f6f7f9; color: #4b5260; }
.lb-name span { white-space: nowrap; font-size: 12px; }
.lb-card { padding: 12px; }
.lb-card footer > span { white-space: nowrap; }
.lb-seller { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
