/* =========================================================
   Cliente al Día - Soft Task App UI
   ========================================================= */
/*
:root{
    --bg:#f5f7fb;
    --bg-2:#eef2f7;
    --surface:#ffffff;
    --surface-soft:#f8fafc;

    --text:#0f172a;
    --text-soft:#334155;
    --text-muted:#64748b;

    --border:#e7edf5;
    --border-strong:#d9e2ec;

    --primary:#4f46e5;
    --primary-soft:#eef2ff;

    --success:#16a34a;
    --success-soft:#ecfdf5;

    --warning:#d97706;
    --warning-soft:#fff7ed;

    --danger:#dc2626;
    --danger-soft:#fef2f2;

    --purple:#7c3aed;
    --purple-soft:#f5f3ff;

    --shadow-sm:0 2px 10px rgba(15,23,42,.04);
    --shadow-md:0 10px 30px rgba(15,23,42,.06);

    --radius-xl:22px;
    --radius-lg:18px;
    --radius-md:14px;
    --radius-sm:10px;

    --sidebar-width:250px;
}
*/


:root{
    --bg:#f5f7f4;
    --bg-soft:#eef4ef;
    --surface:#ffffff;
    --surface-2:#f8fbf8;

    --text:#18322a;
    --text-soft:#355046;
    --text-muted:#667c74;

    --border:#dbe7df;
    --border-strong:#c9d9d0;

    --primary:#0b7a3b;
    --primary-dark:#075e2d;
    --primary-soft:#e7f6ec;

    --success:#138a44;
    --warning:#c77412;
    --danger:#d64545;

    --shadow-sm:0 6px 18px rgba(24,50,42,.06);
    --shadow-md:0 12px 28px rgba(24,50,42,.08);

    --radius-xl:24px;
    --radius-lg:18px;
    --radius-md:14px;
    --radius-sm:10px;
        --sidebar-width:250px;

}
/* =========================================================
   Reset
   ========================================================= */

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    font-size:16px;
}

body{
    margin:0;
    font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

a{
    color:var(--primary);
    text-decoration:none;
}

a:hover{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

button,
input,
select,
textarea{
    font:inherit;
}

/* =========================================================
   Layout
   ========================================================= */

.app-shell{
    min-height:100vh;
    background:transparent;
}

.app-sidebar{
    position:fixed;
    top:0;
    left:0;
    width:var(--sidebar-width);
    height:100vh;
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(10px);
    border-right:1px solid var(--border);
    padding:22px 16px;
    overflow-y:auto;
    z-index:1000;
}

.app-logo{
    font-size:21px;
    font-weight:800;
    letter-spacing:-.03em;
    color:var(--text);
    margin-bottom:22px;
    padding:0 8px;
}

.app-sidebar nav{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.app-sidebar nav a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:0 14px;
    border-radius:14px;
    color:var(--text-soft);
    font-weight:600;
    transition:.2s ease;
}

.app-sidebar nav a:hover{
    background:var(--primary-soft);
    color:var(--primary);
}

.app-main{
    margin-left:var(--sidebar-width);
    min-height:100vh;
    padding:24px;
}

.app-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:22px;
    padding:14px 18px;
    background:rgba(255,255,255,.72);
    backdrop-filter:blur(8px);
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:var(--shadow-sm);
}

.app-topbar strong{
    font-size:18px;
    font-weight:700;
    color:var(--text);
}

/* =========================================================
   Headings
   ========================================================= */

.page-section{
    margin-bottom:22px;
}

.page-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:18px;
}

.page-head h1{
    margin:0 0 6px;
    font-size:32px;
    line-height:1.04;
    letter-spacing:-.04em;
    color:var(--text);
}

.page-head p{
    margin:0;
    color:var(--text-muted);
}

.page-section > h2{
    margin:0 0 14px;
    font-size:22px;
    color:var(--text);
}

/* =========================================================
   Cards
   ========================================================= */

.card{
    background:rgba(255,255,255,.9);
    border:1px solid var(--border);
    border-radius:24px;
    padding:20px;
    box-shadow:var(--shadow-sm);
    color:var(--text);
}

.card h2,
.card h3,
.card h4{
    margin:0 0 14px;
    color:var(--text);
    letter-spacing:-.02em;
    font-weight:700;
}

.card p{
    color:var(--text-soft);
    line-height:1.55;
}

.card small{
    color:var(--text-muted);
    line-height:1.5;
}

.card--full{
    grid-column:1 / -1;
}

.card-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    margin-bottom:14px;
}

.card-head h2{
    margin:0;
    font-size:18px;
}

.card-head a{
    color:var(--text-muted);
    font-size:14px;
    font-weight:600;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn-soft,
button,
input[type="submit"]{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border:none;
    border-radius:12px;
    background:var(--primary);
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.btn-soft:hover,
button:hover,
input[type="submit"]:hover{
    opacity:.96;
    transform:translateY(-1px);
}

.btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border:1px solid var(--border-strong);
    border-radius:12px;
    background:#fff;
    color:var(--text);
    font-weight:700;
}

.today-actions a,
.note-item__actions a,
.item-row a,
.table-row a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 12px;
    border-radius:10px;
    background:var(--primary-soft);
    color:var(--primary);
    font-weight:700;
    font-size:14px;
}

/* =========================================================
   Forms
   ========================================================= */

form > div{
    margin-bottom:14px;
}

label{
    display:block;
    margin-bottom:6px;
    font-size:14px;
    font-weight:700;
    color:var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea{
    width:100%;
    min-height:46px;
    padding:12px 14px;
    border:1px solid var(--border-strong);
    border-radius:12px;
    background:#fff;
    color:var(--text);
    outline:none;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea{
    min-height:110px;
    resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#c7d2fe;
    box-shadow:0 0 0 4px rgba(79,70,229,.08);
    background:#fff;
}

::placeholder{
    color:#94a3b8;
}

/* =========================================================
   KPI
   ========================================================= */

.kpi-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:16px;
}

.kpi-card{
    background:rgba(255,255,255,.92);
    border:1px solid var(--border);
    border-radius:20px;
    padding:18px;
    box-shadow:var(--shadow-sm);
}

.kpi-card span{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    color:var(--text-muted);
}

.kpi-card strong{
    display:block;
    font-size:28px;
    line-height:1.1;
    color:var(--text);
    letter-spacing:-.04em;
}

/* =========================================================
   Dashboard / Today
   ========================================================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
}

.item-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.item-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--surface-soft);
}

.item-row--danger{
    border-color:#fecaca;
    background:#fff7f7;
}

.item-row strong{
    display:block;
    margin-bottom:4px;
    color:var(--text);
}

.item-row p{
    margin:0;
    color:var(--text-soft);
}

.today-layout{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(280px,.95fr);
    gap:18px;
}

.today-main,
.today-side{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.today-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.today-item{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    padding:15px;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--surface-soft);
}

.today-item--urgent{
    border-color:#fecaca;
    background:#fff7f7;
}

.today-item strong{
    display:block;
    margin-bottom:5px;
    color:var(--text);
}

.today-item p{
    margin:0 0 6px;
    color:var(--text-soft);
}

.today-item small{
    color:var(--text-muted);
}

.today-actions{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:120px;
}

.mini-list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.mini-list li{
    padding:12px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface-soft);
    color:var(--text-soft);
}

.mini-list strong{
    display:block;
    margin-bottom:4px;
    color:var(--text);
}

/* =========================================================
   Table / List
   ========================================================= */

.table-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.table-row{
    display:grid;
    grid-template-columns:2.2fr 1.2fr .8fr;
    gap:16px;
    align-items:center;
    padding:16px;
    border:1px solid var(--border);
    border-radius:18px;
    background:rgba(255,255,255,.94);
    box-shadow:var(--shadow-sm);
}

.table-row strong{
    color:var(--text);
}

.table-row p{
    margin:4px 0 0;
    color:var(--text-muted);
}

/* =========================================================
   Detail
   ========================================================= */

.detail-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
    margin-bottom:18px;
}

/* =========================================================
   Notes / Followups / Charges
   ========================================================= */

.notes-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.note-item{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--surface-soft);
}

.note-item__body{
    flex:1;
}

.note-item__body p{
    margin:0 0 8px;
    color:var(--text);
    line-height:1.55;
}

.note-item__body small{
    display:block;
    margin-top:6px;
    color:var(--text-muted);
}

.note-item__actions{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:110px;
}

/* =========================================================
   Filters
   ========================================================= */

.filter-row{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin:18px 0;
}

.filter-row input,
.filter-row select{
    width:auto;
    min-width:200px;
}

/* =========================================================
   Badges
   ========================================================= */

.crm-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    line-height:1;
    border:1px solid transparent;
    white-space:nowrap;
}

.crm-badge--default{background:#f1f5f9;color:#475569;border-color:#e2e8f0;}
.crm-badge--muted{background:#f8fafc;color:#64748b;border-color:#e2e8f0;}
.crm-badge--info{background:#eef2ff;color:#4338ca;border-color:#c7d2fe;}
.crm-badge--sky{background:#f0f9ff;color:#0369a1;border-color:#bae6fd;}
.crm-badge--success{background:#ecfdf5;color:#15803d;border-color:#bbf7d0;}
.crm-badge--warning{background:#fff7ed;color:#b45309;border-color:#fed7aa;}
.crm-badge--danger{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.crm-badge--purple{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe;}
.crm-badge--whatsapp{background:#ecfdf5;color:#15803d;border-color:#bbf7d0;}
.crm-badge--instagram{background:#fff1f2;color:#be185d;border-color:#fbcfe8;}
.crm-badge--facebook{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;}

.crm-badge-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}

/* =========================================================
   Auth
   ========================================================= */

.auth-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-card{
    width:100%;
    max-width:420px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:26px;
    padding:28px;
    box-shadow:var(--shadow-md);
}

.auth-card h1{
    margin:0 0 8px;
    color:var(--text);
}

.auth-card p{
    margin:0 0 18px;
    color:var(--text-soft);
}

.auth-error{
    margin-bottom:14px;
    padding:12px 14px;
    border:1px solid #fecaca;
    background:#fef2f2;
    color:#b91c1c;
    border-radius:12px;
    font-size:14px;
}

/* =========================================================
   Utilities
   ========================================================= */

.text-muted{color:var(--text-muted);}
.text-success{color:var(--success);}
.text-danger{color:var(--danger);}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width:1100px){
    .dashboard-grid,
    .detail-grid,
    .today-layout{
        grid-template-columns:1fr;
    }
}

@media (max-width:900px){
    .app-sidebar{
        position:static;
        width:100%;
        height:auto;
        border-right:none;
        border-bottom:1px solid var(--border);
        padding:16px;
        background:rgba(255,255,255,.94);
    }

    .app-main{
        margin-left:0;
        padding:16px;
    }

    .app-sidebar nav{
        flex-direction:row;
        flex-wrap:wrap;
    }

    .app-sidebar nav a{
        min-height:40px;
        padding:0 12px;
    }

    .table-row{
        grid-template-columns:1fr;
    }
}

@media (max-width:640px){
    .page-head{
        flex-direction:column;
    }

    .page-head h1{
        font-size:28px;
    }

    .item-row,
    .today-item,
    .note-item{
        flex-direction:column;
    }

    .today-actions,
    .note-item__actions{
        width:100%;
        min-width:0;
        flex-direction:row;
        flex-wrap:wrap;
    }

    .card,
    .kpi-card,
    .table-row{
        border-radius:18px;
    }
}
@media (max-width: 640px){
    .app-main{
        padding:14px;
    }

    .app-topbar{
        padding:12px 14px;
        border-radius:16px;
    }

    .page-head h1{
        font-size:26px;
    }

    .card,
    .kpi-card,
    .table-row{
        padding:16px;
        border-radius:16px;
    }

    .kpi-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:12px;
    }

    .kpi-card strong{
        font-size:24px;
    }

    .table-row{
        gap:10px;
    }

    .crm-badge{
        font-size:11px;
        min-height:26px;
        padding:0 9px;
    }

    .item-row,
    .today-item,
    .note-item{
        padding:13px;
        border-radius:14px;
    }

    .today-actions a,
    .note-item__actions a,
    .item-row a,
    .table-row a{
        min-height:34px;
        font-size:13px;
    }

    .empty-state{
        min-height:120px;
        padding:16px;
        border-radius:16px;
    }

    .empty-state__icon{
        width:38px;
        height:38px;
        border-radius:12px;
        font-size:18px;
    }
}
.empty-state{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:8px;
    min-height:140px;
    padding:20px;
    border:1px dashed var(--border-strong);
    border-radius:18px;
    background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.empty-state__icon{
    width:42px;
    height:42px;
    border-radius:14px;
    background:var(--primary-soft);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--primary);
    font-size:20px;
    font-weight:700;
}

.empty-state h3{
    margin:0;
    font-size:17px;
    color:var(--text);
    letter-spacing:-.02em;
}

.empty-state p{
    margin:0;
    color:var(--text-muted);
    max-width:420px;
    line-height:1.55;
}

.empty-state .btn-soft{
    margin-top:6px;
}
.app-sidebar nav a.is-active{
    background:var(--primary-soft);
    color:var(--primary);
    box-shadow:inset 0 0 0 1px rgba(79,70,229,.08);
}
.client-hero{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:20px;
    padding:20px;
    border:1px solid var(--border);
    border-radius:24px;
    background:rgba(255,255,255,.92);
    box-shadow:var(--shadow-sm);
}

.client-hero__main{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.client-hero__title h1{
    margin:0;
    font-size:30px;
    line-height:1.04;
    letter-spacing:-.04em;
    color:var(--text);
}

.client-hero__title p{
    margin:6px 0 0;
    color:var(--text-muted);
    line-height:1.5;
}

.client-hero__meta{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:12px;
}

.client-meta-card{
    padding:14px 16px;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--surface-soft);
}

.client-meta-card span{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--text-muted);
}

.client-meta-card strong{
    display:block;
    color:var(--text);
    font-size:14px;
    line-height:1.4;
}

.client-hero__actions{
    display:flex;
    justify-content:flex-end;
}

@media (max-width: 980px){
    .client-hero__meta{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px){
    .client-hero{
        padding:16px;
        border-radius:18px;
    }

    .client-hero__title h1{
        font-size:26px;
    }

    .client-hero__meta{
        grid-template-columns:1fr;
    }

    .client-hero__actions{
        justify-content:stretch;
    }

    .client-hero__actions .btn-soft{
        width:100%;
    }
}

.ui-help{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    margin-left:6px;
    border-radius:999px;
    background:#eef2ff;
    color:#4f46e5;
    font-size:11px;
    font-weight:800;
    cursor:help;
    vertical-align:middle;
    flex-shrink:0;
}

.ui-help__tooltip{
    position:absolute;
    left:50%;
    bottom:calc(100% + 10px);
    transform:translateX(-50%);
    min-width:220px;
    max-width:280px;
    padding:10px 12px;
    border-radius:12px;
    background:#0f172a;
    color:#fff;
    font-size:12px;
    line-height:1.45;
    box-shadow:0 12px 30px rgba(15,23,42,.18);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.18s ease;
    z-index:30;
}

.ui-help__tooltip::after{
    content:"";
    position:absolute;
    left:50%;
    top:100%;
    transform:translateX(-50%);
    border-width:6px;
    border-style:solid;
    border-color:#0f172a transparent transparent transparent;
}

.ui-help:hover .ui-help__tooltip,
.ui-help:focus-within .ui-help__tooltip{
    opacity:1;
    visibility:visible;
}

.section-head{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.section-subtext{
    margin:-6px 0 14px;
    color:var(--text-muted);
    font-size:14px;
    line-height:1.5;
}
.soft-accordion{
    border:1px solid var(--border);
    border-radius:18px;
    background:rgba(255,255,255,.92);
    overflow:hidden;
}

.soft-accordion + .soft-accordion{
    margin-top:14px;
}

.soft-accordion summary{
    list-style:none;
    cursor:pointer;
    padding:16px 18px;
    font-weight:700;
    color:var(--text);
    background:#fff;
    position:relative;
}

.soft-accordion summary::-webkit-details-marker{
    display:none;
}

.soft-accordion summary::after{
    content:"+";
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    font-size:18px;
    color:var(--text-muted);
}

.soft-accordion[open] summary::after{
    content:"–";
}

.soft-accordion__content{
    padding:0 18px 18px;
    background:var(--surface-soft);
    border-top:1px solid var(--border);
}
.table-row--client{
    grid-template-columns:2fr 1.3fr .8fr;
}

.table-row--client small{
    display:block;
    margin-top:6px;
}

@media (max-width: 900px){
    .table-row--client{
        grid-template-columns:1fr;
    }
}

.dashboard-welcome{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.dashboard-welcome__icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary-soft);
    color:var(--primary);
    font-weight:800;
    flex-shrink:0;
}

.dashboard-welcome h3{
    margin:0 0 4px;
}

.dashboard-welcome p{
    margin:0;
}

.kpi-grid--soft .kpi-card{
    position:relative;
    overflow:hidden;
}

.kpi-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    margin-bottom:10px;
    border-radius:12px;
    background:var(--surface-soft);
    font-size:16px;
}
.dashboard-welcome{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.dashboard-welcome__icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary-soft);
    color:var(--primary);
    font-weight:800;
    flex-shrink:0;
}

.dashboard-welcome h3{
    margin:0 0 4px;
}

.dashboard-welcome p{
    margin:0;
}

.kpi-grid--soft .kpi-card{
    position:relative;
    overflow:hidden;
}

.kpi-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    margin-bottom:10px;
    border-radius:12px;
    background:var(--surface-soft);
    font-size:16px;
}

.note-item__actions a + a{
    margin-top:8px;
}

@media (max-width: 640px){
    .note-item__actions{
        width:100%;
        min-width:0;
        flex-direction:row;
        flex-wrap:wrap;
    }

    .note-item__actions a{
        flex:1 1 auto;
    }
}

.note-item__body small br + *{
    margin-top:2px;
}
.clients-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.client-card{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    padding:18px;
    border:1px solid var(--border);
    border-radius:20px;
    background:rgba(255,255,255,.94);
    box-shadow:var(--shadow-sm);
}

.client-card--warning{
    border-color:#fed7aa;
    background:#fffaf2;
}

.client-card--focus{
    border-color:#ddd6fe;
    background:#faf7ff;
}

.client-card__main{
    flex:1;
    min-width:0;
}

.client-card__head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:12px;
}

.client-card__head h3{
    margin:0 0 4px;
    font-size:18px;
    color:var(--text);
    letter-spacing:-.02em;
}

.client-card__head p{
    margin:0;
    color:var(--text-muted);
}

.client-card__next{
    padding:12px 14px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface-soft);
}

.client-card__label{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--text-muted);
}

.client-card__next p{
    margin:0;
    color:var(--text);
}

.client-card__next small{
    display:block;
    margin-top:6px;
    color:var(--text-muted);
}

.client-card__empty{
    color:var(--warning);
}

.client-card__alerts{
    margin-top:10px;
}

.client-card__actions{
    min-width:120px;
    display:flex;
    justify-content:flex-end;
}

.client-card__actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 14px;
    border-radius:10px;
    background:var(--primary-soft);
    color:var(--primary);
    font-weight:700;
    white-space:nowrap;
}

@media (max-width: 820px){
    .client-card,
    .client-card__head{
        flex-direction:column;
    }

    .client-card__actions{
        width:100%;
        min-width:0;
        justify-content:flex-start;
    }
}
/* =========================================================
   Mobile menu
   ========================================================= */

.app-topbar__left{
    display:flex;
    align-items:center;
    gap:12px;
}

.mobile-menu-btn{
    display:none;
    width:42px;
    height:42px;
    padding:0;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    cursor:pointer;
    box-shadow:var(--shadow-sm);
}

.mobile-menu-btn span{
    display:block;
    width:16px;
    height:2px;
    background:var(--text);
    border-radius:999px;
}

.mobile-drawer{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:1200;
    pointer-events:none;
}

.mobile-drawer__panel{
    position:absolute;
    top:0;
    left:0;
    width:min(84vw, 320px);
    height:100%;
    background:rgba(255,255,255,.98);
    backdrop-filter:blur(10px);
    border-right:1px solid var(--border);
    box-shadow:0 20px 50px rgba(15,23,42,.12);
    transform:translateX(-100%);
    transition:transform .22s ease;
    display:flex;
    flex-direction:column;
    padding:18px 16px;
}

.mobile-drawer__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:18px;
}

.mobile-drawer__close{
    width:38px;
    height:38px;
    min-height:38px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    color:var(--text);
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.mobile-drawer__nav{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.mobile-drawer__nav a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:0 14px;
    border-radius:14px;
    color:var(--text-soft);
    font-weight:600;
    transition:.2s ease;
}

.mobile-drawer__nav a:hover{
    background:var(--primary-soft);
    color:var(--primary);
}

.mobile-drawer__nav a.is-active{
    background:var(--primary-soft);
    color:var(--primary);
    box-shadow:inset 0 0 0 1px rgba(79,70,229,.08);
}

.mobile-drawer__overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.28);
    opacity:0;
    visibility:hidden;
    transition:.22s ease;
    z-index:1100;
}

body.mobile-menu-open .mobile-drawer{
    pointer-events:auto;
}

body.mobile-menu-open .mobile-drawer__panel{
    transform:translateX(0);
}

body.mobile-menu-open .mobile-drawer__overlay{
    opacity:1;
    visibility:visible;
}

body.mobile-menu-open{
    overflow:hidden;
}

@media (max-width: 900px){
    .mobile-menu-btn{
        display:inline-flex;
    }

    .app-sidebar{
        display:none;
    }

    .app-main{
        margin-left:0;
        padding:16px;
    }
}
/* =========================================================
   Mobile bottom nav
   ========================================================= */

.mobile-bottom-nav{
    display:none;
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:1150;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(12px);
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:0 12px 30px rgba(15,23,42,.10);
    padding:8px;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:6px;
}

.mobile-bottom-nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:54px;
    border-radius:14px;
    color:var(--text-muted);
    text-decoration:none;
    font-size:11px;
    font-weight:700;
    transition:.18s ease;
}

.mobile-bottom-nav a:hover{
    background:var(--surface-soft);
    color:var(--text);
}

.mobile-bottom-nav a.is-active{
    background:var(--primary-soft);
    color:var(--primary);
}

.mobile-bottom-nav__icon{
    font-size:16px;
    line-height:1;
}

.mobile-bottom-nav__label{
    line-height:1;
}

@media (max-width: 900px){
    .mobile-bottom-nav{
        display:grid;
    }

    .app-main{
        padding-bottom:92px;
    }
}
/* =========================================================
   Uniform icons and soft details
   ========================================================= */

.nav-icon{
    width:18px;
    text-align:center;
    margin-right:10px;
    font-size:15px;
    flex-shrink:0;
}

.app-sidebar nav a,
.mobile-drawer__nav a{
    display:flex;
    align-items:center;
}

.app-topbar__title-wrap{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.app-topbar__user{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
}

.app-topbar__user i{
    font-size:18px;
    color:var(--text-muted);
}

.kpi-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    margin-bottom:10px;
    border-radius:12px;
    background:var(--surface-soft);
    color:var(--primary);
    font-size:15px;
}

.dashboard-welcome__icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary-soft);
    color:var(--primary);
    font-size:16px;
    flex-shrink:0;
}

.empty-state__icon{
    width:42px;
    height:42px;
    border-radius:14px;
    background:var(--primary-soft);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--primary);
    font-size:16px;
    font-weight:800;
}

.mobile-bottom-nav__icon{
    font-size:16px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.card,
.kpi-card,
.client-card,
.note-item,
.item-row,
.today-item,
.table-row{
    transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.card:hover,
.kpi-card:hover,
.client-card:hover{
    box-shadow:var(--shadow-md);
}

.btn-soft,
.btn-outline,
.today-actions a,
.note-item__actions a,
.item-row a,
.table-row a,
.client-card__actions a{
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn-soft:hover,
.btn-outline:hover,
.today-actions a:hover,
.note-item__actions a:hover,
.item-row a:hover,
.table-row a:hover,
.client-card__actions a:hover{
    transform:translateY(-1px);
}
/* =========================================================
   Soft premium microinteractions
   ========================================================= */

.card,
.kpi-card,
.client-card,
.note-item,
.item-row,
.today-item,
.table-row,
.client-meta-card,
.soft-accordion{
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.card:hover,
.kpi-card:hover,
.client-card:hover,
.soft-accordion:hover{
    box-shadow:0 12px 28px rgba(15,23,42,.08);
}

.note-item:hover,
.item-row:hover,
.today-item:hover,
.table-row:hover,
.client-meta-card:hover{
    border-color:#d9e2ec;
    background:#ffffff;
}

























.btn-soft,
.btn-outline,
button,
input[type="submit"],
.today-actions a,
.note-item__actions a,
.item-row a,
.table-row a,
.client-card__actions a{
    position:relative;
    overflow:hidden;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        color .18s ease,
        border-color .18s ease;
}

.btn-soft:hover,
button:hover,
input[type="submit"]:hover{
    box-shadow:0 10px 20px rgba(79,70,229,.14);
}

.btn-outline:hover{
    border-color:#cbd5e1;
    background:#fff;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.today-actions a:hover,
.note-item__actions a:hover,
.item-row a:hover,
.table-row a:hover,
.client-card__actions a:hover{
    background:#e8edff;
    color:#4338ca;
}



input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea{
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        transform .18s ease;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#c7d2fe;
    box-shadow:0 0 0 4px rgba(79,70,229,.08);
    background:#fff;
}

.form-group:focus-within label{
    color:var(--primary);
}

.section-head h3,
.card-head h2,
.client-card__head h3,
.client-hero__title h1{
    letter-spacing:-.025em;
}

.section-subtext{
    font-size:14px;
    line-height:1.55;
    color:var(--text-muted);
}

.item-row p,
.note-item__body p,
.client-card__next p,
.card p{
    line-height:1.55;
}

.item-row strong,
.note-item__body strong,
.client-card__head h3{
    font-weight:700;
}

.item-row p,
.note-item__body p,
.client-card__next p,
.card p{
    line-height:1.55;
}

.item-row strong,
.note-item__body strong,
.client-card__head h3{
    font-weight:700;
}

.empty-state{
    position:relative;
    overflow:hidden;
}

.empty-state::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
    pointer-events:none;
}

.soft-accordion summary{
    transition:background .18s ease, color .18s ease;
}

.soft-accordion summary:hover{
    background:#f8fafc;
}

.soft-accordion[open]{
    box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.app-topbar{
    transition:box-shadow .18s ease, border-color .18s ease;
}

.app-topbar:hover{
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.app-sidebar nav a{
    position:relative;
}

.app-sidebar nav a.is-active::before,
.mobile-drawer__nav a.is-active::before{
    content:"";
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    width:4px;
    height:18px;
    border-radius:999px;
    background:var(--primary);
}

.mobile-bottom-nav{
    transition:box-shadow .18s ease, border-color .18s ease;
}

.mobile-bottom-nav a{
    transition:background .18s ease, color .18s ease, transform .18s ease;
}

.mobile-bottom-nav a:active{
    transform:scale(.98);
}

.skeleton{
    position:relative;
    overflow:hidden;
    background:#e2e8f0;
    border-radius:12px;
}

.skeleton::after{
    content:"";
    position:absolute;
    inset:0;
    transform:translateX(-100%);
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    animation:skeleton-shimmer 1.35s infinite;
}

@keyframes skeleton-shimmer{
    100%{
        transform:translateX(100%);
    }
}

.soft-toast{
    position:fixed;
    right:18px;
    bottom:90px;
    z-index:1300;
    padding:12px 14px;
    border-radius:14px;
    background:#0f172a;
    color:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.18);
    font-size:14px;
}
.crm-badge{
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}

.soft-toast{
    position:fixed;
    right:18px;
    bottom:96px;
    z-index:1300;
    padding:12px 14px;
    border-radius:14px;
    background:#0f172a;
    color:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.18);
    font-size:14px;
    opacity:1;
    transform:translateY(0);
    transition:opacity .22s ease, transform .22s ease;
}

.soft-toast--error{
    background:#991b1b;
}

.js-action-card.is-completed,
.js-payment-card.is-paid{
   /* opacity:.72;
    border-color:#bbf7d0 !important;
    background:#f0fdf4 !important;*/
}
.soft-toast{
    position:fixed;
    right:18px;
    bottom:96px;
    z-index:1300;
    padding:12px 14px;
    border-radius:14px;
    background:#0f172a;
    color:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.18);
    font-size:14px;
    opacity:1;
    transform:translateY(0);
    transition:opacity .22s ease, transform .22s ease;
}

.soft-toast--error{
    background:#991b1b;
}

.js-action-card.is-completed,
.js-payment-card.is-paid{
   /* opacity:.72;
    border-color:#bbf7d0 !important;
    background:#f0fdf4 !important;*/
}

.soft-toast{
    position:fixed;
    right:18px;
    bottom:96px;
    z-index:1300;
    padding:12px 14px;
    border-radius:14px;
    background:#0f172a;
    color:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.18);
    font-size:14px;
    opacity:1;
    transform:translateY(0);
    transition:opacity .22s ease, transform .22s ease;
}

.soft-toast--error{
    background:#991b1b;
}

.js-action-card.is-completed,
.js-payment-card.is-paid{
    /*opacity:.72;
    border-color:#bbf7d0 !important;
    background:#f0fdf4 !important;*/
}

.card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius: 24px;
    padding:20px;
    box-shadow: var(--shadow-sm);
}
/* =========================================================
   Dashboard inspired by green/simple style
   ========================================================= */

.dashboard-hero{
    display:grid;
    grid-template-columns:minmax(0, 1.4fr) minmax(300px, .9fr);
    gap:18px;
    padding:22px;
    border:1px solid var(--border);
    border-radius:28px;
    background:linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    box-shadow:var(--shadow-sm);
}

.dashboard-hero__content{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.dashboard-hero__badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    min-height:34px;
    padding:0 12px;
    border-radius:999px;
    background:var(--primary-soft);
    color:var(--primary-dark);
    font-size:13px;
    font-weight:700;
}

.dashboard-hero__badge i{
    color:var(--primary);
}

.dashboard-hero__content h1{
    margin:0;
    font-size:42px;
    line-height:1.02;
    letter-spacing:-.05em;
    color:var(--text);
    max-width:720px;
}

.dashboard-hero__content p{
    margin:0;
    max-width:680px;
    font-size:18px;
    line-height:1.55;
    color:var(--text-soft);
}

.dashboard-hero__actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:4px;
}

.dashboard-hero__actions .btn-soft,
.dashboard-hero__actions .btn-outline{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.dashboard-hero__bullets{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:6px;
}

.dashboard-hero__bullets div{
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:var(--text-soft);
    font-weight:600;
}

.dashboard-hero__bullets i{
    color:var(--primary);
    margin-top:2px;
    width:18px;
    text-align:center;
}

.dashboard-hero__panel{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.hero-mini-card{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:18px;
    background:#fff;
}

.hero-mini-card__icon{
    width:38px;
    height:38px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary-soft);
    color:var(--primary);
    flex-shrink:0;
}

.hero-mini-card__icon--warn{
    background:#fff7ed;
    color:#c77412;
}

.hero-mini-card strong{
    display:block;
    margin-bottom:4px;
    color:var(--text);
    font-size:15px;
}

.hero-mini-card span{
    display:block;
    color:var(--text-muted);
    line-height:1.45;
    font-size:14px;
}

@media (max-width: 1100px){
    .dashboard-hero{
        grid-template-columns:1fr;
    }

    .dashboard-hero__content h1{
        font-size:34px;
    }
}

@media (max-width: 640px){
    .dashboard-hero{
        padding:18px;
        border-radius:22px;
    }

    .dashboard-hero__content h1{
        font-size:30px;
    }

    .dashboard-hero__content p{
        font-size:16px;
    }
}
/* =========================================================
   Seguimientos style inspired by WhatsApp-like task screen
   ========================================================= */

.seguimientos-shell{
    max-width:760px;
    margin:0 auto;
    padding:18px;
    background:rgba(255,255,255,.96);
    border:1px solid var(--border);
    border-radius:28px;
    box-shadow:var(--shadow-sm);
}

.seguimientos-appbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
}

.seguimientos-appbar__title{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:800;
    font-size:22px;
    letter-spacing:-.03em;
    color:var(--text);
}

.seguimientos-appbar__title i{
    color:var(--text-soft);
    font-size:18px;
}

.seguimientos-tabs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.seguimientos-tab{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:38px;
    padding:0 12px;
    border-radius:999px;
    background:#f3f7f3;
    color:var(--text-soft);
    border:1px solid var(--border);
    font-weight:700;
}

.seguimientos-tab strong{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:22px;
    height:22px;
    padding:0 6px;
    border-radius:999px;
    background:#e6efe8;
    color:var(--primary-dark);
    font-size:12px;
}

.seguimientos-tab.is-active{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

.seguimientos-tab.is-active strong{
    background:rgba(255,255,255,.16);
    color:#fff;
}

.seguimientos-tab--muted{
    background:#fff7f7;
    border-color:#f3d0d0;
    color:#9a4d4d;
}

.seguimientos-section-title{
    margin-bottom:10px;
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--text-muted);
}

.seguimientos-list-wrap{
    margin-bottom:18px;
}

.seguimientos-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.seguimiento-row{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:12px 10px;
    border-radius:18px;
    background:#fff;
    border:1px solid transparent;
}

.seguimiento-row:hover{
    background:#fbfdfb;
    border-color:var(--border);
}

.seguimiento-row--late{
    background:#fff7f7;
    border-color:#f4cccc;
}

.seguimiento-row__avatar{
    width:40px;
    height:40px;
    border-radius:999px;
    background:#eaf4ec;
    color:var(--primary-dark);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:15px;
    overflow:hidden;
}

.seguimiento-row__main{
    min-width:0;
}

.seguimiento-row__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:4px;
}

.seguimiento-row__top strong{
    font-size:18px;
    color:var(--text);
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.seguimiento-row__meta{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    color:var(--text-muted);
    font-size:14px;
}

.seguimiento-row__note{
    margin-top:6px;
    color:var(--text-soft);
    font-size:14px;
    line-height:1.5;
}

.seguimiento-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
    border:1px solid transparent;
}

.seguimiento-chip--whatsapp{
    background:#ecfdf5;
    color:#15803d;
    border-color:#bbf7d0;
}

.seguimiento-chip--instagram{
    background:#fff1f2;
    color:#be185d;
    border-color:#fbcfe8;
}

.seguimiento-chip--llamada{
    background:#eef6ff;
    color:#2563eb;
    border-color:#bfdbfe;
}

.seguimiento-chip--visita{
    background:#fff7ed;
    color:#c2410c;
    border-color:#fed7aa;
}

.seguimiento-chip--facebook{
    background:#eff6ff;
    color:#1d4ed8;
    border-color:#bfdbfe;
}

.seguimiento-chip--web,
.seguimiento-chip--otro{
    background:#f1f5f9;
    color:#475569;
    border-color:#e2e8f0;
}

.seguimiento-row__actions{
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-end;
    min-width:92px;
}

.seguimiento-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 12px;
    border-radius:12px;
    background:#eef2ff;
    color:#4f46e5;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
}

.seguimiento-link:hover{
    background:#e7ebff;
    color:#4338ca;
}

@media (max-width: 640px){
    .seguimientos-shell{
        padding:14px;
        border-radius:22px;
    }

    .seguimiento-row{
        grid-template-columns:40px minmax(0,1fr);
        align-items:flex-start;
    }

    .seguimiento-row__actions{
        grid-column:2 / 3;
        flex-direction:row;
        justify-content:flex-start;
        align-items:center;
        min-width:0;
        margin-top:8px;
    }

    .seguimiento-row__top{
        align-items:flex-start;
        flex-direction:column;
    }

    .seguimiento-row__top strong{
        white-space:normal;
    }
}
/* =========================================================
   Clientes - conversation / WhatsApp-like list
   ========================================================= */

.clientes-chat-shell{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cliente-chat-row{
    display:grid;
    grid-template-columns:56px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:14px 12px;
    border:1px solid var(--border);
    border-radius:22px;
    background:rgba(255,255,255,.96);
    box-shadow:var(--shadow-sm);
}

.cliente-chat-row:hover{
    background:#fbfdfb;
    border-color:var(--border-strong);
}

.cliente-chat-row--warning{
    background:#fffaf2;
    border-color:#f6d8a8;
}

.cliente-chat-row--focus{
    background:#faf7ff;
    border-color:#ddd6fe;
}

.cliente-chat-row__avatar{
    width:46px;
    height:46px;
    border-radius:999px;
    background:#e8f5ec;
    color:var(--primary-dark);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
    font-weight:800;
    flex-shrink:0;
}

.cliente-chat-row__main{
    min-width:0;
}

.cliente-chat-row__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
}

.cliente-chat-row__title{
    min-width:0;
}

.cliente-chat-row__title strong{
    display:block;
    color:var(--text);
    font-size:18px;
    line-height:1.2;
    letter-spacing:-.02em;
    margin-bottom:6px;
}

.cliente-chat-row__badges{
    margin-top:0;
}

.cliente-chat-row__time{
    white-space:nowrap;
    font-size:12px;
    font-weight:700;
    color:var(--text-muted);
    padding-top:2px;
}

.cliente-chat-row__preview p{
    margin:0;
    color:var(--text-soft);
    line-height:1.5;
}

.cliente-chat-row__meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px 14px;
    margin-top:8px;
    color:var(--text-muted);
    font-size:13px;
}

.cliente-chat-row__meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.cliente-chat-row__flags{
    margin-top:10px;
}

.cliente-chat-row__actions{
    min-width:110px;
    display:flex;
    justify-content:flex-end;
    align-self:center;
}

.cliente-chat-row__actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 14px;
    border-radius:12px;
    background:#eef2ff;
    color:#4f46e5;
    font-weight:700;
    white-space:nowrap;
}

.cliente-chat-row__actions a:hover{
    background:#e6ebff;
    color:#4338ca;
}

@media (max-width: 780px){
    .cliente-chat-row{
        grid-template-columns:48px minmax(0,1fr);
        align-items:flex-start;
    }

    .cliente-chat-row__actions{
        grid-column:2 / 3;
        justify-content:flex-start;
        min-width:0;
        margin-top:10px;
    }

    .cliente-chat-row__top{
        flex-direction:column;
        gap:6px;
    }

    .cliente-chat-row__time{
        padding-top:0;
    }
}
/* =========================================================
   Hoy - daily work view
   ========================================================= */

.hoy-shell{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.hoy-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
}

.hoy-block{
    background:rgba(255,255,255,.96);
    border:1px solid var(--border);
    border-radius:24px;
    padding:18px;
    box-shadow:var(--shadow-sm);
}

.hoy-block--urgent{
    border-color:#f1cccc;
    background:linear-gradient(180deg, #fffefe 0%, #fff8f8 100%);
}

.hoy-block__head{
    margin-bottom:14px;
}

.hoy-block__title{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.hoy-block__title h2{
    margin:0 0 4px;
    font-size:22px;
    letter-spacing:-.03em;
    color:var(--text);
}

.hoy-block__title p{
    margin:0;
    color:var(--text-muted);
    line-height:1.5;
}

.hoy-block__icon{
    width:42px;
    height:42px;
    border-radius:14px;
    background:var(--primary-soft);
    color:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.hoy-block__icon--danger{
    background:#fff1f1;
    color:#d64545;
}

.hoy-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.hoy-list--compact{
    gap:10px;
}

.hoy-row{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:flex-start;
    gap:12px;
    padding:12px;
    border:1px solid var(--border);
    border-radius:18px;
    background:#fff;
}

.hoy-row:hover{
    border-color:var(--border-strong);
    background:#fcfefc;
}

.hoy-row--urgent{
    border-color:#f2cccc;
    background:#fff8f8;
}

.hoy-row--soft-alert{
    border-color:#f4dfc1;
    background:#fffaf2;
}

.hoy-row--compact{
    padding:10px 12px;
}

.hoy-row__avatar{
    width:40px;
    height:40px;
    border-radius:999px;
    background:#e8f5ec;
    color:var(--primary-dark);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:800;
    flex-shrink:0;
}

.hoy-row__main{
    min-width:0;
}

.hoy-row__top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    margin-bottom:4px;
}

.hoy-row__top strong{
    color:var(--text);
    font-size:18px;
    line-height:1.2;
    letter-spacing:-.02em;
}

.hoy-row__meta{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    color:var(--text-muted);
    font-size:14px;
    margin-bottom:8px;
}

.hoy-row__note{
    margin-top:6px;
    color:var(--text-soft);
    font-size:14px;
    line-height:1.5;
}

.hoy-row__actions{
    min-width:120px;
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-end;
}

.hoy-row__actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 12px;
    border-radius:12px;
    background:#eef2ff;
    color:#4f46e5;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
}

.hoy-row__actions a:hover{
    background:#e7ebff;
    color:#4338ca;
}

.hoy-row__actions span{
    font-weight:700;
}

.hoy-shell .crm-badge-row{
    margin-top:0;
}

.hoy-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:28px;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
    border:1px solid transparent;
}

.hoy-chip--whatsapp{
    background:#ecfdf5;
    color:#15803d;
    border-color:#bbf7d0;
}

.hoy-chip--instagram{
    background:#fff1f2;
    color:#be185d;
    border-color:#fbcfe8;
}

.hoy-chip--llamada{
    background:#eef6ff;
    color:#2563eb;
    border-color:#bfdbfe;
}

.hoy-chip--facebook{
    background:#eff6ff;
    color:#1d4ed8;
    border-color:#bfdbfe;
}

.hoy-chip--web,
.hoy-chip--otro{
    background:#f1f5f9;
    color:#475569;
    border-color:#e2e8f0;
}

@media (max-width: 980px){
    .hoy-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 700px){
    .hoy-block{
        padding:16px;
        border-radius:20px;
    }

    .hoy-row{
        grid-template-columns:42px minmax(0,1fr);
    }

    .hoy-row__actions{
        grid-column:2 / 3;
        flex-direction:row;
        justify-content:flex-start;
        align-items:center;
        min-width:0;
        margin-top:8px;
    }

    .hoy-row__top{
        flex-direction:column;
        gap:6px;
    }

    .hoy-row__top strong{
        font-size:17px;
    }
}


/* =========================================================
   Cliente detalle - compact operational style
   ========================================================= */

.cliente-detalle-shell{
    max-width:1100px;
    margin:0 auto;
}

.cliente-topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    padding:18px;
    margin-bottom:18px;
    border:1px solid var(--border);
    border-radius:26px;
    background:rgba(255,255,255,.96);
    box-shadow:var(--shadow-sm);
}

.cliente-topbar__left{
    display:flex;
    gap:14px;
    min-width:0;
    flex:1;
}

.cliente-topbar__avatar{
    width:56px;
    height:56px;
    border-radius:999px;
    background:#e8f5ec;
    color:var(--primary-dark);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:800;
    flex-shrink:0;
}

.cliente-topbar__main{
    min-width:0;
    flex:1;
}

.cliente-topbar__title-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    margin-bottom:6px;
}

.cliente-topbar__title-row h1{
    margin:0;
    font-size:34px;
    line-height:1.04;
    letter-spacing:-.04em;
    color:var(--text);
}

.cliente-topbar__subtitle{
    margin:0 0 8px;
    color:var(--text-soft);
    line-height:1.5;
    font-size:16px;
}

.cliente-topbar__meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px 14px;
    color:var(--text-muted);
    font-size:14px;
}

.cliente-topbar__meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.cliente-topbar__actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.cliente-work-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
    margin-bottom:18px;
}

.cliente-work-card{
    min-width:0;
}

.cliente-summary-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:14px;
}

.cliente-summary-item{
    padding:12px 14px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface-soft);
}

.cliente-summary-item span{
    display:block;
    margin-bottom:4px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--text-muted);
}

.cliente-summary-item strong{
    color:var(--text);
    font-size:14px;
}

.cliente-summary-note{
    padding:14px;
    border:1px solid var(--border);
    border-radius:14px;
    background:var(--surface-soft);
}

.cliente-summary-note span{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--text-muted);
}

.cliente-summary-note p{
    margin:0;
    color:var(--text-soft);
    line-height:1.55;
}

.cliente-history-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cliente-history-row{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    gap:12px;
    align-items:flex-start;
    padding:12px;
    border:1px solid var(--border);
    border-radius:18px;
    background:#fff;
}

.cliente-history-row:hover{
    border-color:var(--border-strong);
    background:#fcfefc;
}

.cliente-history-row__avatar{
    width:38px;
    height:38px;
    border-radius:999px;
    background:#e8f5ec;
    color:var(--primary-dark);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    flex-shrink:0;
}

.cliente-history-row__main{
    min-width:0;
}

.cliente-history-row__top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    margin-bottom:6px;
}

.cliente-history-row__top strong{
    color:var(--text);
    font-size:16px;
    line-height:1.2;
    letter-spacing:-.02em;
}

.cliente-history-row__top span{
    color:var(--text-muted);
    font-size:12px;
    white-space:nowrap;
}

.cliente-history-row__note{
    margin-top:6px;
    color:var(--text-soft);
    font-size:14px;
    line-height:1.5;
}

.cliente-history-row__actions{
    min-width:110px;
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-end;
}

.cliente-history-row__actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 12px;
    border-radius:12px;
    background:#eef2ff;
    color:#4f46e5;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
}

.cliente-history-row__actions a:hover{
    background:#e6ebff;
    color:#4338ca;
}

@media (max-width: 980px){
    .cliente-work-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 760px){
    .cliente-topbar{
        flex-direction:column;
    }

    .cliente-topbar__title-row{
        flex-direction:column;
        gap:8px;
    }

    .cliente-topbar__title-row h1{
        font-size:28px;
    }

    .cliente-topbar__actions{
        width:100%;
    }

    .cliente-history-row{
        grid-template-columns:40px minmax(0,1fr);
    }

    .cliente-history-row__actions{
        grid-column:2 / 3;
        min-width:0;
        flex-direction:row;
        justify-content:flex-start;
        align-items:center;
        margin-top:8px;
    }

    .cliente-history-row__top{
        flex-direction:column;
        gap:4px;
    }
}
/* =========================================================
   Cobros - compact operational list
   ========================================================= */

.cobros-shell{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.cobro-row{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:12px;
    align-items:flex-start;
    padding:14px 12px;
    border:1px solid var(--border);
    border-radius:22px;
    background:rgba(255,255,255,.96);
    box-shadow:var(--shadow-sm);
}

.cobro-row:hover{
    border-color:var(--border-strong);
    background:#fcfefc;
}

.cobro-row--late{
    background:#fff7f7;
    border-color:#f1cccc;
}

.cobro-row--paid{
    background:#f4fbf6;
    border-color:#cde8d5;
}

.cobro-row__avatar{
    width:40px;
    height:40px;
    border-radius:999px;
    background:#e8f5ec;
    color:var(--primary-dark);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:800;
    flex-shrink:0;
}

.cobro-row__main{
    min-width:0;
}

.cobro-row__top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:6px;
}

.cobro-row__title{
    min-width:0;
}

.cobro-row__title strong{
    display:block;
    color:var(--text);
    font-size:18px;
    line-height:1.2;
    letter-spacing:-.02em;
    margin-bottom:3px;
}

.cobro-row__title span{
    display:block;
    color:var(--text-soft);
    line-height:1.45;
}

.cobro-row__amount{
    white-space:nowrap;
    font-size:18px;
    font-weight:800;
    color:var(--text);
    letter-spacing:-.02em;
}

.cobro-row__meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px 12px;
    margin-bottom:8px;
    color:var(--text-muted);
    font-size:14px;
}

.cobro-row__meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.cobro-row__note{
    margin-top:6px;
    color:var(--text-soft);
    font-size:14px;
    line-height:1.5;
}

.cobro-row__actions{
    min-width:120px;
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-end;
}

.cobro-row__actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 12px;
    border-radius:12px;
    background:#eef2ff;
    color:#4f46e5;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
}

.cobro-row__actions a:hover{
    background:#e7ebff;
    color:#4338ca;
}

.cobro-row__actions span{
    font-weight:700;
}

@media (max-width: 760px){
    .cobro-row{
        grid-template-columns:42px minmax(0,1fr);
    }

    .cobro-row__actions{
        grid-column:2 / 3;
        min-width:0;
        flex-direction:row;
        justify-content:flex-start;
        align-items:center;
        margin-top:8px;
    }

    .cobro-row__top{
        flex-direction:column;
        gap:6px;
    }

    .cobro-row__amount{
        font-size:17px;
    }
}

/* =========================================================
   Quick filters
   ========================================================= */

.quick-filters{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.quick-filter{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:38px;
    padding:0 12px;
    border-radius:999px;
    border:1px solid var(--border);
    background:#fff;
    color:var(--text-soft);
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:all .18s ease;
}

.quick-filter:hover{
    background:#f8fbf8;
    border-color:var(--border-strong);
    color:var(--text);
}

.quick-filter i{
    font-size:14px;
}

.quick-filter.is-active{
    background:var(--primary-soft);
    color:var(--primary-dark);
    border-color:#cfe6d7;
}

.quick-filter--warn.is-active{
    background:#fff7ed;
    color:#b45309;
    border-color:#fed7aa;
}

.quick-filter--success.is-active{
    background:#ecfdf5;
    color:#15803d;
    border-color:#bbf7d0;
}
.cliente-chat-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e7eee9;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    margin-bottom: 12px;
}

.cliente-chat-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
    border-color: #d8e9df;
}

.cliente-chat-row__link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.cliente-chat-row__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eaf6ee;
    color: #1c7c45;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    flex: 0 0 52px;
}

.cliente-chat-row__main {
    flex: 1;
    min-width: 0;
}

.cliente-chat-row__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.cliente-chat-row__name-wrap {
    min-width: 0;
    flex: 1;
}

.cliente-chat-row__name {
    display: block;
    font-size: 1.22rem;
    line-height: 1.2;
    color: #18322b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cliente-chat-row__time {
    font-size: .88rem;
    font-weight: 700;
    color: #718277;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

.cliente-chat-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cliente-chat-row__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.cliente-chat-row__chip--canal {
    background: #eaf7ef;
    color: #228b4e;
    border-color: #cfe8d7;
}

.cliente-chat-row__chip--danger {
    background: #fff1f1;
    color: #b93838;
    border-color: #f2caca;
}

.cliente-chat-row__chip--warning {
    background: #fff7e8;
    color: #a76808;
    border-color: #f3dfb4;
}

.cliente-chat-row__body {
    min-width: 0;
}

.cliente-chat-row__task {
    margin: 0 0 7px;
    font-size: 1.03rem;
    line-height: 1.4;
    color: #45584f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cliente-chat-row__submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: .9rem;
    color: #73857c;
}

.cliente-chat-row__submeta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cliente-chat-row__closing {
    color: #7754e6;
    font-weight: 700;
}

.cliente-chat-row__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cliente-chat-row__wa {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.28rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.cliente-chat-row__wa:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 24px rgba(37, 211, 102, 0.28);
    color: #fff;
}

@media (max-width: 768px) {
    .cliente-chat-row {
        padding: 12px;
        border-radius: 18px;
        gap: 10px;
    }

    .cliente-chat-row__avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 1.15rem;
    }

    .cliente-chat-row__name {
        font-size: 1.08rem;
    }

    .cliente-chat-row__task {
        font-size: .98rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .cliente-chat-row__submeta {
        font-size: .85rem;
    }

    .cliente-chat-row__wa {
        width: 42px;
        height: 42px;
        font-size: 1.14rem;
    }
}
.cobro-row {
    display: block;
    background: #fff;
    border: 1px solid #e7eee9;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all .18s ease;
}

.cobro-row:hover {
    border-color: #d4e6db;
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.cobro-row__link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.cobro-row__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eaf6ee;
    color: #1c7c45;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cobro-row__main {
    flex: 1;
    min-width: 0;
}

/* TOP */
.cobro-row__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cobro-row__name {
    font-size: 1rem;
    color: #1e2f2a;
}

.cobro-row__amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0b7a43;
}

/* MIDDLE */
.cobro-row__middle {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: .9rem;
    color: #6b7d75;
}

.cobro-row__concepto {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* BOTTOM */
.cobro-row__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

/* Acción */
.cobro-row__action {
    background: #25d366;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}

.cobro-row__paid {
    color: #1c7c45;
    font-weight: 700;
    font-size: .85rem;
}
.crm-page--payments {
    padding: 18px 0 110px;
    background: linear-gradient(180deg, #f7faf8 0%, #f3f7f4 100%);
    min-height: 100vh;
}

.crm-shell {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 0 14px;
}

.crm-section-head {
    margin-bottom: 16px;
}

.crm-section-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6d8579;
}

.crm-section-head h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    line-height: 1.15;
    color: #18332b;
}

.crm-section-head p {
    margin: 0;
    color: #688076;
    font-size: .96rem;
    line-height: 1.45;
}

.payments-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.payments-summary__card {
    background: #fff;
    border: 1px solid #e5eee8;
    border-radius: 18px;
    padding: 14px 15px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.payments-summary__label {
    display: block;
    margin-bottom: 4px;
    font-size: .84rem;
    color: #73877b;
}

.payments-summary__card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    color: #17372d;
}

.payments-summary__card small {
    display: block;
    margin-top: 5px;
    color: #7b8d83;
    font-size: .86rem;
}

.payments-list {
    display: grid;
    gap: 10px;
}

.payment-row {
    background: #fff;
    border: 1px solid #e4eee7;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.payment-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.07);
}

.payment-row.is-overdue {
    border-color: #f0d1d1;
}

.payment-row.is-due {
    border-color: #eedeb8;
}

.payment-row.is-paid {
    background: #fbfefd;
    border-color: #dceee3;
}

.payment-row__main-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.payment-row__main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.payment-row__avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #edf7f0;
    color: #14733d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
}

.payment-row__content {
    flex: 1;
    min-width: 0;
}

.payment-row__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.payment-row__title-wrap {
    min-width: 0;
    flex: 1;
}

.payment-row__name {
    display: block;
    color: #1b302a;
    font-size: 1.06rem;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payment-row__concept {
    display: block;
    margin-top: 2px;
    color: #687d73;
    font-size: .94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payment-row__amount {
    flex-shrink: 0;
    color: #0f7b45;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.payment-row__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    color: #73857c;
    font-size: .89rem;
}

.payment-row__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.payment-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .82rem;
    font-weight: 800;
}

.payment-pill--is-paid {
    background: #ebf8ef;
    border-color: #cfe8d8;
    color: #167441;
}

.payment-pill--is-overdue {
    background: #fff2f2;
    border-color: #f0c9c9;
    color: #b23b3b;
}

.payment-pill--is-due {
    background: #fff9eb;
    border-color: #efddb0;
    color: #a26a00;
}

.payment-pill--is-pending {
    background: #f3f6f4;
    border-color: #dfe8e2;
    color: #64786f;
}

.payment-row__note {
    color: #53675f;
    font-size: .92rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.payment-row__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.payment-row__ghost,
.payment-row__pay {
    min-height: 40px;
    border-radius: 12px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 800;
    transition: all .16s ease;
    cursor: pointer;
}

.payment-row__ghost {
    background: #f3f0ff;
    color: #5f51d8;
    border: 1px solid #e2ddff;
}

.payment-row__ghost:hover {
    background: #ece8ff;
    color: #5144cb;
}

.payment-row__pay {
    background: #1ec863;
    color: #fff;
    border: 1px solid #1ec863;
    box-shadow: 0 10px 20px rgba(30, 200, 99, 0.18);
}

.payment-row__pay:hover {
    background: #17b357;
    border-color: #17b357;
}

.payment-row__pay.is-loading {
    opacity: .7;
    pointer-events: none;
}

.payment-row__paid {
    min-height: 40px;
    border-radius: 12px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #167441;
    background: #eef9f2;
    border: 1px solid #d2ebda;
    font-size: .9rem;
    font-weight: 800;
}

.crm-empty-state {
    background: #fff;
    border: 1px solid #e5eee8;
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.crm-empty-state__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 14px;
    background: #edf7f0;
    color: #14733d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.crm-empty-state h3 {
    margin: 0 0 8px;
    color: #18332b;
}

.crm-empty-state p {
    margin: 0;
    color: #6f8479;
}

@media (max-width: 768px) {
    .payments-summary {
        grid-template-columns: 1fr 1fr;
    }

    .payment-row__main-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-row__main {
        width: 100%;
    }

    .payment-row__actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-left: 60px;
    }

    .payment-row__ghost,
    .payment-row__pay,
    .payment-row__paid {
        min-height: 42px;
    }

    .payment-row__ghost {
        flex: 1;
    }

    .payment-row__pay {
        flex: 1.2;
    }
}

.crm-page--tasks{
    padding:18px 0 110px;
    background:linear-gradient(180deg,#f7faf8 0%,#f3f7f4 100%);
    min-height:100vh;
}

.crm-shell{
    width:min(100%,980px);
    margin:0 auto;
    padding:0 14px;
}

.crm-section-head{
    margin-bottom:16px;
}

.crm-section-head--split{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}

.crm-section-kicker{
    display:inline-block;
    margin-bottom:6px;
    font-size:.82rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#6d8579;
}

.crm-section-head h1{
    margin:0 0 6px;
    font-size:1.55rem;
    line-height:1.12;
    color:#18332b;
}

.crm-section-head p{
    margin:0;
    color:#688076;
    font-size:.96rem;
    line-height:1.45;
    max-width:720px;
}

.crm-btn{
    min-height:44px;
    border-radius:14px;
    padding:0 16px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    font-weight:800;
    border:1px solid transparent;
}

.crm-btn--primary{
    background:#1ec863;
    color:#fff;
    box-shadow:0 10px 20px rgba(30,200,99,.18);
}

.task-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-bottom:14px;
}

.task-summary__card{
    background:#fff;
    border:1px solid #e5eee8;
    border-radius:18px;
    padding:14px;
    box-shadow:0 10px 24px rgba(16,24,40,.04);
}

.task-summary__card span{
    display:block;
    margin-bottom:5px;
    font-size:.84rem;
    color:#76897f;
}

.task-summary__card strong{
    display:block;
    font-size:1.45rem;
    line-height:1.1;
    color:#18332b;
}

.task-summary__card.is-danger{border-color:#f1d1d1}
.task-summary__card.is-warning{border-color:#eedeb8}
.task-summary__card.is-soft{border-color:#dfe8e2}

.task-filters{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.task-filter{
    min-height:38px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid #dfe9e2;
    background:#fff;
    color:#5f7369;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    font-size:.88rem;
    font-weight:700;
}

.task-filter.is-active{
    background:#eaf7ef;
    border-color:#cfe8d7;
    color:#1d7f49;
}

.task-list{
    display:grid;
    gap:10px;
}

.task-row{
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto;
    gap:12px;
    align-items:flex-start;
    background:#fff;
    border:1px solid #e4eee7;
    border-radius:20px;
    padding:12px;
    box-shadow:0 10px 24px rgba(16,24,40,.04);
}

.task-row.is-overdue{border-color:#f0d1d1}
.task-row.is-today{border-color:#eedeb8}

.task-row__avatar{
    width:52px;
    height:52px;
    border-radius:50%;
    background:#edf7f0;
    color:#14733d;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:1.15rem;
}

.task-row__main{
    min-width:0;
}

.task-row__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:5px;
}

.task-row__title-wrap{
    min-width:0;
    flex:1;
}

.task-row__name{
    display:block;
    font-size:1.05rem;
    line-height:1.2;
    color:#1b302a;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.task-row__action{
    display:block;
    margin-top:2px;
    color:#667a71;
    font-size:.94rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.task-row__date{
    flex-shrink:0;
    color:#75887e;
    font-size:.88rem;
    font-weight:700;
    white-space:nowrap;
}

.task-row__meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    margin-bottom:5px;
    color:#70837a;
    font-size:.88rem;
}

.task-pill{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 10px;
    border-radius:999px;
    border:1px solid transparent;
    font-size:.8rem;
    font-weight:800;
}

.task-pill--danger{
    background:#fff2f2;
    border-color:#f0c9c9;
    color:#b23b3b;
}

.task-pill--warning{
    background:#fff9eb;
    border-color:#efddb0;
    color:#a26a00;
}

.task-pill--purple{
    background:#f4f0ff;
    border-color:#e3d9ff;
    color:#6a50da;
}

.task-row__preview{
    color:#50655c;
    font-size:.92rem;
    line-height:1.45;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.task-row__actions{
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-end;
}

.task-btn{
    min-height:40px;
    border-radius:12px;
    padding:0 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    text-decoration:none;
    font-size:.88rem;
    font-weight:800;
    border:1px solid transparent;
    cursor:pointer;
    background:#fff;
}

.task-btn--ghost{
    background:#f3f0ff;
    border-color:#e3ddff;
    color:#5f51d8;
}

.task-btn--wa{
    background:#1ec863;
    border-color:#1ec863;
    color:#fff;
    box-shadow:0 10px 18px rgba(30,200,99,.18);
}

.task-btn--done{
    background:#eef6f1;
    border-color:#d8e8de;
    color:#2d6950;
}

.crm-empty-state{
    background:#fff;
    border:1px solid #e5eee8;
    border-radius:20px;
    padding:32px 20px;
    text-align:center;
    box-shadow:0 10px 24px rgba(16,24,40,.04);
}

.crm-empty-state__icon{
    width:64px;
    height:64px;
    border-radius:18px;
    margin:0 auto 14px;
    background:#edf7f0;
    color:#14733d;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.4rem;
}

@media (max-width: 900px){
    .task-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .crm-section-head--split{
        flex-direction:column;
    }

    .task-row{
        grid-template-columns:48px minmax(0,1fr);
    }

    .task-row__actions{
        grid-column:1 / -1;
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        padding-left:60px;
    }
}

@media (max-width: 640px){
    .task-row__actions{
        padding-left:0;
        flex-wrap:wrap;
    }

    .task-btn{
        flex:1 1 calc(50% - 8px);
    }
}


.page-section--seguimientos{
    padding:18px 0 110px;
    background:linear-gradient(180deg,#f7faf8 0%,#f3f7f4 100%);
    min-height:100vh;
}

.seguimientos-shell{
    width:min(100%,980px);
    margin:0 auto;
    padding:0 14px;
}

.seguimientos-hero{
    margin-bottom:16px;
}

.seguimientos-hero__head{
    margin-bottom:14px;
}

.seguimientos-appbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.seguimientos-appbar__title{
    display:flex;
    align-items:center;
    gap:10px;
    color:#18332b;
    font-weight:800;
    font-size:1rem;
}

.seguimientos-hero__copy h1{
    margin:0 0 8px;
    font-size:1.65rem;
    line-height:1.08;
    color:#18332b;
}

.seguimientos-hero__copy p{
    margin:0;
    color:#6c8177;
    font-size:.96rem;
    line-height:1.5;
    max-width:720px;
}

.seguimientos-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}

.seguimientos-summary__card{
    background:#fff;
    border:1px solid #e5eee8;
    border-radius:18px;
    padding:14px;
    box-shadow:0 10px 24px rgba(16,24,40,.04);
}

.seguimientos-summary__label{
    display:block;
    margin-bottom:5px;
    font-size:.84rem;
    color:#76897f;
}

.seguimientos-summary__card strong{
    display:block;
    font-size:1.4rem;
    line-height:1.1;
    color:#18332b;
}

.seguimientos-summary__card small{
    display:block;
    margin-top:4px;
    font-size:.84rem;
    color:#81938a;
}

.seguimientos-summary__card.is-hoy{border-color:#eedeb8}
.seguimientos-summary__card.is-proximos{border-color:#dfe8e2}
.seguimientos-summary__card.is-vencidos{border-color:#f1d1d1}
.seguimientos-summary__card.is-total{border-color:#dce8df}

.seguimientos-tabs{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

.seguimientos-tab{
    min-height:42px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid #dfe9e2;
    background:#fff;
    color:#5f7369;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:.9rem;
    font-weight:800;
    box-shadow:0 8px 18px rgba(16,24,40,.03);
}

.seguimientos-tab strong{
    font-size:.82rem;
    min-width:24px;
    height:24px;
    border-radius:999px;
    background:#f3f7f4;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#547066;
}

.seguimientos-tab.is-active{
    background:#eaf7ef;
    border-color:#cfe8d7;
    color:#1d7f49;
}

.seguimientos-tab.is-active strong{
    background:#d9f0e2;
    color:#1c7444;
}

.seguimientos-tab--muted{
    background:#fff8f8;
    border-color:#f2dddd;
    color:#a85454;
}

.seguimientos-tab--muted strong{
    background:#fdeeee;
    color:#af4747;
}

.seguimientos-list-wrap{
    display:none;
}

.seguimientos-list-wrap.is-active{
    display:block;
}

.seguimientos-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.seguimientos-section-head--inside{
    margin-bottom:14px;
}

.seguimientos-section-kicker{
    display:inline-block;
    margin-bottom:5px;
    font-size:.8rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#70857a;
}

.seguimientos-section-title{
    font-size:1.1rem;
    font-weight:800;
    color:#18332b;
}

.seguimientos-section-count{
    color:#74887d;
    font-size:.88rem;
    font-weight:700;
    white-space:nowrap;
}

.seguimientos-list{
    display:grid;
    gap:10px;
}

.seguimiento-row{
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto;
    gap:12px;
    align-items:flex-start;
    background:#fff;
    border:1px solid #e4eee7;
    border-radius:20px;
    padding:12px;
    box-shadow:0 10px 24px rgba(16,24,40,.04);
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.seguimiento-row:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 28px rgba(16,24,40,.07);
}

.seguimiento-row--today{
    border-color:#eedeb8;
}

.seguimiento-row--late{
    border-color:#f0d1d1;
}

.seguimiento-row--next{
    border-color:#dfe8e2;
}

.seguimiento-row__avatar{
    width:52px;
    height:52px;
    border-radius:50%;
    background:#edf7f0;
    color:#14733d;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:1.15rem;
    flex:0 0 52px;
}

.seguimiento-row__main{
    min-width:0;
}

.seguimiento-row__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:5px;
}

.seguimiento-row__title-wrap{
    min-width:0;
    flex:1;
}

.seguimiento-row__title-wrap strong{
    display:block;
    font-size:1.05rem;
    line-height:1.2;
    color:#1b302a;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.seguimiento-row__subtitle{
    margin-top:3px;
    color:#52675e;
    font-size:.92rem;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.seguimiento-row__subtitle--muted{
    color:#7a8d84;
}

.seguimiento-row__meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    color:#72857c;
    font-size:.87rem;
}

.seguimiento-row__meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.seguimiento-row__actions{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
}

.seguimiento-btn{
    min-height:40px;
    border-radius:12px;
    padding:0 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    text-decoration:none;
    font-size:.88rem;
    font-weight:800;
    border:1px solid transparent;
    cursor:pointer;
    transition:all .16s ease;
}

.seguimiento-btn--ghost{
    background:#f3f0ff;
    border-color:#e3ddff;
    color:#5f51d8;
}

.seguimiento-btn--ghost:hover{
    background:#ece8ff;
    color:#5042ca;
}

.seguimiento-btn--done{
    background:#eef6f1;
    border-color:#d8e8de;
    color:#2d6950;
}

.seguimiento-btn--done:hover{
    background:#e5f2ea;
    color:#255943;
}

.seguimiento-chip{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 10px;
    border-radius:999px;
    border:1px solid transparent;
    font-size:.8rem;
    font-weight:800;
    white-space:nowrap;
}

.seguimiento-chip--status.is-today{
    background:#fff9eb;
    border-color:#efddb0;
    color:#a26a00;
}

.seguimiento-chip--status.is-next{
    background:#f3f6f4;
    border-color:#dfe8e2;
    color:#64786f;
}

.seguimiento-chip--status.is-late{
    background:#fff2f2;
    border-color:#f0c9c9;
    color:#b23b3b;
}

.seguimiento-chip--whatsapp{
    background:#eaf7ef;
    border-color:#cfe8d7;
    color:#1d7f49;
}

.seguimiento-chip--instagram{
    background:#fff1f8;
    border-color:#f3d4e6;
    color:#b14582;
}

.seguimiento-chip--facebook{
    background:#eef4ff;
    border-color:#d6e2ff;
    color:#3763c9;
}

.seguimiento-chip--llamada{
    background:#eef7ff;
    border-color:#d5e7fb;
    color:#2f6eab;
}

.seguimiento-chip--otro{
    background:#f3f6f4;
    border-color:#dfe8e2;
    color:#64786f;
}

.soft-accordion{
    margin-top:14px;
    background:#fff;
    border:1px solid #e5eee8;
    border-radius:20px;
    box-shadow:0 10px 24px rgba(16,24,40,.04);
    overflow:hidden;
}

.soft-accordion summary{
    list-style:none;
    cursor:pointer;
    padding:16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    font-weight:800;
    color:#18332b;
}

.soft-accordion summary::-webkit-details-marker{
    display:none;
}

.soft-accordion summary strong{
    min-width:28px;
    height:28px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff2f2;
    color:#b23b3b;
    font-size:.82rem;
}

.soft-accordion__content{
    padding:0 14px 14px;
}

.empty-state{
    background:#fff;
    border:1px solid #e5eee8;
    border-radius:20px;
    padding:32px 20px;
    text-align:center;
    box-shadow:0 10px 24px rgba(16,24,40,.04);
}

.empty-state__icon{
    width:64px;
    height:64px;
    border-radius:18px;
    margin:0 auto 14px;
    background:#edf7f0;
    color:#14733d;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.4rem;
}

.empty-state h3{
    margin:0 0 8px;
    color:#18332b;
}

.empty-state p{
    margin:0;
    color:#6f8479;
}

@media (max-width: 900px){
    .seguimientos-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .seguimiento-row{
        grid-template-columns:48px minmax(0,1fr);
    }

    .seguimiento-row__actions{
        grid-column:1 / -1;
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        padding-left:60px;
    }
}

@media (max-width: 640px){
    .seguimientos-shell{
        padding:0 12px;
    }

    .seguimientos-hero__copy h1{
        font-size:1.4rem;
    }

    .seguimientos-tab{
        min-height:40px;
        padding:0 12px;
        font-size:.86rem;
    }

    .seguimientos-section-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .seguimiento-row{
        padding:12px;
        border-radius:18px;
    }

    .seguimiento-row__avatar{
        width:48px;
        height:48px;
        flex-basis:48px;
        font-size:1.05rem;
    }

    .seguimiento-row__title-wrap strong{
        font-size:1rem;
    }

    .seguimiento-row__actions{
        padding-left:0;
        flex-wrap:wrap;
    }

    .seguimiento-btn{
        flex:1 1 calc(50% - 6px);
    }

    .soft-accordion summary{
        padding:14px 15px;
    }

    .soft-accordion__content{
        padding:0 12px 12px;
    }
}