/*
 * HairWorks platform admin (admin.hairworks.in). Sits on top of the Metronic bundles the admin already loads, so every
 * Metronic class a page uses (grid, spacing, form-control, btn, card, table...) keeps working but takes this look.
 * Design source: docs/admin/admin_design/HairWorks Admin.dc.html
 */
:root {
    --hw-bg: #f6f7fb;
    --hw-ink: #181c32;
    --hw-text: #3f4254;
    --hw-muted: #5e6278;
    --hw-line: #eceef5;
    --hw-line-soft: #eef0f6;
    --hw-field: #dfe2ec;
    --hw-pink: #d9136a;
    --hw-pink-dark: #a80f4f;
    --hw-pink-soft: #ffedf4;
    --hw-pink-soft-text: #b30d58;
    --hw-grad: linear-gradient(135deg, #e3206f, #c70e60);
    --hw-shadow: 0 2px 10px rgba(24, 28, 50, .04);
}

body.hw-admin {
    margin: 0;
    background: var(--hw-bg);
    color: var(--hw-ink);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.hw-admin a { color: var(--hw-pink); text-decoration: none; }
body.hw-admin a:hover { color: var(--hw-pink-dark); }
body.hw-admin button, body.hw-admin input, body.hw-admin select, body.hw-admin textarea { font-family: inherit; }
body.hw-admin code { background: var(--hw-bg); padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--hw-ink); }

/* ------------------------------------------------------------------ shell */
/* flex: none matters: the page body is a column flex box one screen tall, and without it the shell shrinks to that one screen, so the sticky
   sidebar ran out of room and scrolled away with the page */
.hw-shell { display: flex; flex: none; align-items: flex-start; min-height: 100vh; }

.hw-side {
    position: sticky; top: 0; flex: none; width: 260px; height: 100vh; height: 100dvh; box-sizing: border-box;
    background: var(--hw-ink); display: flex; flex-direction: column; overflow: hidden; transition: width .2s ease; z-index: 60;
}
.hw-side-head { flex: none; height: 72px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hw-side-logo { display: flex; align-items: center; min-width: 0; }
.hw-side-logo .full { background: #fff; border-radius: 12px; padding: 3px 10px; }
.hw-side-logo .full img { height: 38px; width: auto; display: block; }
.hw-side-logo .mini { display: none; width: 40px; height: 40px; border-radius: 11px; }
.hw-side-tag { flex: none; padding: 18px 18px 6px; }
.hw-side-tag span { background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.hw-nav {
    flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px 16px 18px; display: flex; flex-direction: column; gap: 4px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) rgba(255, 255, 255, .06);
    /* a soft glow at the top or the bottom edge while there is more to scroll to, so the list never looks cut off */
    background:
        linear-gradient(var(--hw-ink) 30%, rgba(24, 28, 50, 0)) top / 100% 30px no-repeat local,
        linear-gradient(rgba(24, 28, 50, 0), var(--hw-ink) 70%) bottom / 100% 30px no-repeat local,
        radial-gradient(farthest-side at 50% 0, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)) top / 100% 12px no-repeat scroll,
        radial-gradient(farthest-side at 50% 100%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)) bottom / 100% 12px no-repeat scroll;
}
.hw-nav::-webkit-scrollbar { width: 8px; }
.hw-nav::-webkit-scrollbar-track { background: rgba(255, 255, 255, .06); border-radius: 8px; }
.hw-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .4); border-radius: 8px; }
.hw-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .6); }
.hw-nav-items { display: flex; flex-direction: column; gap: 4px; }
.hw-nav-items[hidden] { display: none; }
button.hw-fold { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #aab0c8; padding: 16px 12px 6px; }
button.hw-fold:hover { color: #fff; }
button.hw-fold:focus-visible { outline: 2px solid #ff8ab8; outline-offset: 2px; border-radius: 8px; }
button.hw-fold svg { transition: transform .15s; }
button.hw-fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
/* on a short screen the menu tightens before it scrolls */
@media (max-height: 800px) {
    .hw-side-head { height: 60px; }
    .hw-side-tag { padding-top: 10px; }
    .hw-nav-head, button.hw-fold { padding-top: 10px; }
    body.hw-admin .hw-nav a { padding-top: 8px; padding-bottom: 8px; }
    .hw-side-foot { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-height: 620px) { .hw-side-tag { display: none; } }
.hw-nav-head { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #aab0c8; padding: 16px 12px 6px; white-space: nowrap; }
.hw-nav-rule { display: none; height: 1px; background: rgba(255, 255, 255, .1); margin: 10px 4px; }
body.hw-admin .hw-nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #d6d8e6;
    font-size: 14.5px; font-weight: 700; white-space: nowrap;
}
body.hw-admin .hw-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
body.hw-admin .hw-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 #ff5c9c; }
.hw-nav svg { flex: none; }
.hw-side-foot { flex: none; border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.hw-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--hw-grad); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.hw-side-foot .who { min-width: 0; flex: 1; }
.hw-side-foot .email { font-size: 13px; color: #e4e6f0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-side-foot button { all: unset; cursor: pointer; font-size: 13px; font-weight: 700; color: #ff8ab8; }
.hw-side-foot button:hover { color: #fff; text-decoration: underline; }

.hw-shell.is-collapsed .hw-side { width: 76px; }
.hw-shell.is-collapsed .hw-side-logo .full,
.hw-shell.is-collapsed .hw-label-text,
.hw-shell.is-collapsed .hw-side-tag,
.hw-shell.is-collapsed .hw-nav-head,
.hw-shell.is-collapsed .hw-side-foot .who { display: none; }
.hw-shell.is-collapsed .hw-side-logo .mini { display: block; }
.hw-shell.is-collapsed .hw-nav-rule { display: block; }
.hw-shell.is-collapsed .hw-fold { display: none; }
.hw-shell.is-collapsed .hw-nav-items[hidden] { display: flex; } /* every icon shows when the menu is the narrow one */
.hw-shell.is-collapsed .hw-nav { padding: 8px 12px 16px; }
.hw-shell.is-collapsed .hw-nav a { justify-content: center; }
.hw-shell.is-collapsed .hw-side-foot { justify-content: center; }

.hw-content { flex: 1; min-width: 0; }
.hw-top {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hw-line); height: 72px; box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.hw-burger {
    all: unset; cursor: pointer; flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--hw-field);
    display: flex; align-items: center; justify-content: center; color: var(--hw-text);
}
.hw-burger:hover { border-color: var(--hw-pink); color: var(--hw-pink); }
.hw-crumb { font-size: 14px; font-weight: 600; color: var(--hw-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.hw-crumb b { color: var(--hw-ink); font-weight: 800; }
.hw-main { max-width: 1160px; margin: 0 auto; padding: 40px 28px 96px; }
.hw-main.is-narrow { max-width: 980px; }

.hw-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; background: var(--hw-ink); color: #fff;
    font-size: 14.5px; font-weight: 600; padding: 14px 22px; border-radius: 14px; box-shadow: 0 14px 34px rgba(24, 28, 50, .3);
    display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); animation: hw-toast 5s ease forwards;
}
.hw-toast i { color: #ff8ab8; font-style: normal; font-weight: 800; }
@keyframes hw-toast { 0%, 88% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ------------------------------------------------------------------ type */
.hw-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hw-pink); margin-bottom: 10px; }
.hw-h1, body.hw-admin h1.hw-h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 0; color: var(--hw-ink); }
.hw-h2 { font-size: 22px; letter-spacing: -.015em; font-weight: 800; margin: 0 0 22px; color: var(--hw-ink); }
.hw-h3 { font-size: 20px; letter-spacing: -.015em; font-weight: 800; margin: 0 0 16px; color: var(--hw-ink); }
.hw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.hw-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.hw-muted { color: var(--hw-muted); }
.hw-hint { font-size: 13px; color: var(--hw-muted); margin-top: 6px; line-height: 1.45; }
.hw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ cards, tables */
.hw-card, body.hw-admin .card {
    background: #fff; border: 1px solid var(--hw-line); border-radius: 20px; box-shadow: var(--hw-shadow); overflow: hidden;
}
.hw-card.is-pad { padding: clamp(22px, 3vw, 34px); overflow: visible; }
.hw-gap { margin-bottom: 24px; }
body.hw-admin .card.shadow-sm { box-shadow: var(--hw-shadow) !important; }
body.hw-admin .card-header { background: #fff; border-bottom: 1px solid var(--hw-line-soft); padding: 18px 26px; }
body.hw-admin .card-header .card-title { font-size: 20px; font-weight: 800; letter-spacing: -.015em; color: var(--hw-ink); margin: 0; }
body.hw-admin .card-body { padding: clamp(22px, 3vw, 30px); }
body.hw-admin .card-footer { background: #fbfbfd; border-top: 1px solid var(--hw-line-soft); padding: 16px 26px; }

.hw-table-wrap { overflow-x: auto; }
.hw-table, body.hw-admin .table { width: 100%; border-collapse: collapse; margin: 0; }
.hw-table th, body.hw-admin .table thead th {
    padding: 14px 20px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--hw-muted); background: #fbfbfd; border: 0; white-space: nowrap;
}
.hw-table td, body.hw-admin .table tbody td { padding: 16px 20px; border: 0; border-top: 1px solid var(--hw-line-soft); font-size: 14px; vertical-align: middle; color: var(--hw-ink); }
body.hw-admin .table.table-row-bordered > :not(caption) > * > * { border-bottom-width: 0; }
.hw-table td.num, .hw-table th.num { text-align: right; }
.hw-sub { color: var(--hw-muted); font-size: 13px; }
.hw-foot { padding: 16px 22px; border-top: 1px solid var(--hw-line-soft); background: #fbfbfd; font-size: 13px; color: var(--hw-text); display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; }
.hw-empty { padding: 36px; text-align: center; color: var(--hw-muted); font-size: 15px; border-top: 1px solid var(--hw-line-soft); }

/* ------------------------------------------------------------------ chips */
.hw-chip, body.hw-admin .badge {
    display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.4;
    background: #eef0f6; color: var(--hw-text);
}
.hw-chip.is-success, body.hw-admin .badge-light-success, body.hw-admin .badge-success { background: #d9f5e7; color: #0f6a41; }
.hw-chip.is-info, body.hw-admin .badge-light-info, body.hw-admin .badge-info { background: #dcecff; color: #1d4f91; }
.hw-chip.is-warn, body.hw-admin .badge-light-warning, body.hw-admin .badge-warning { background: #fff0d6; color: #8a5200; }
.hw-chip.is-danger, body.hw-admin .badge-light-danger, body.hw-admin .badge-danger { background: #ffe1e1; color: #b42318; }
.hw-chip.is-neutral, body.hw-admin .badge-secondary { background: #eef0f6; color: var(--hw-text); }
.hw-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.hw-pill b { font-size: 16px; font-weight: 800; }
.hw-lever { background: var(--hw-pink-soft); color: var(--hw-pink-soft-text); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }

/* ------------------------------------------------------------------ forms */
body.hw-admin .form-label, .hw-label { display: block; font-size: 13px; font-weight: 700; color: var(--hw-text); margin-bottom: 6px; }
body.hw-admin .form-control, body.hw-admin .form-select, .hw-input {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--hw-field); border-radius: 12px; font-size: 15px;
    background-color: #fff; color: var(--hw-ink); outline: none; box-shadow: none;
}
body.hw-admin .form-control-sm, body.hw-admin .form-select-sm { padding: 9px 12px; font-size: 14px; }
body.hw-admin .form-control:focus, body.hw-admin .form-select:focus, .hw-input:focus { border-color: var(--hw-pink); box-shadow: 0 0 0 3px var(--hw-pink-soft); }
body.hw-admin .form-control.is-invalid, body.hw-admin .form-select.is-invalid { border-color: #b42318; background-image: none; }
body.hw-admin .invalid-feedback { color: #b42318; font-size: 13px; font-weight: 600; }
body.hw-admin .form-text { font-size: 13px; color: var(--hw-muted); margin-top: 6px; line-height: 1.45; }
body.hw-admin .form-check-input:checked { background-color: var(--hw-pink); border-color: var(--hw-pink); }
body.hw-admin input[type="checkbox"].hw-check { width: 20px; height: 20px; accent-color: var(--hw-pink); margin: 0; flex: none; }

.hw-btn, body.hw-admin .btn {
    display: inline-block; cursor: pointer; border: 0; border-radius: 12px; font-weight: 700; font-size: 15px; padding: 13px 24px; line-height: 1.2; text-align: center;
}
body.hw-admin .btn-sm { font-size: 13.5px; padding: 9px 16px; border-radius: 10px; }
.hw-btn.is-primary, body.hw-admin .btn-primary { background: var(--hw-grad); color: #fff !important; box-shadow: 0 8px 20px rgba(217, 19, 106, .28); }
.hw-btn.is-primary:hover, body.hw-admin .btn-primary:hover { filter: brightness(1.06); }
.hw-btn.is-soft, body.hw-admin .btn-light { background: var(--hw-pink-soft); color: var(--hw-pink-soft-text) !important; box-shadow: none; }
.hw-btn.is-soft:hover, body.hw-admin .btn-light:hover { background: #ffd3e5; }
.hw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hw-line-soft); }
.hw-actions .note { font-size: 14px; color: var(--hw-muted); }

body.hw-admin .alert { border-radius: 16px; border: 1px solid transparent; padding: 16px 20px; font-size: 15px; }
body.hw-admin .alert-danger { background: #ffe1e1; border-color: #f6b9b4; color: #7a1710; }
body.hw-admin .alert-success { background: #d9f5e7; border-color: #a9e6c8; color: #0f6a41; }
body.hw-admin .alert-warning { background: #fff0d6; border-color: #f2d49a; color: #6c4200; }
.hw-lockbanner { background: #ffe1e1; border: 1px solid #f6b9b4; border-radius: 18px; padding: 18px 22px; margin-bottom: 24px; color: #7a1710; font-size: 15px; line-height: 1.55; display: flex; gap: 14px; align-items: flex-start; }
.hw-lockbanner b { display: block; font-size: 16px; }

/* ------------------------------------------------------------------ grids */
.hw-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hw-grid.is-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.hw-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 12px 48px; }
.hw-group-title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hw-pink); margin-bottom: 6px; }
.hw-feat-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--hw-line-soft); }
.hw-feat-name { font-size: 15px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* the segmented control: plain radio buttons, no script */
.hw-seg { display: inline-flex; border: 1px solid var(--hw-field); border-radius: 12px; overflow: hidden; flex: none; }
.hw-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hw-seg label { margin: 0; cursor: pointer; padding: 8px 14px; font-size: 13.5px; font-weight: 700; background: #fff; color: var(--hw-text); border-left: 1px solid var(--hw-field); }
.hw-seg label:first-of-type { border-left: 0; }
.hw-seg input:checked + label.is-inherit { background: #eef0f6; color: var(--hw-ink); box-shadow: inset 0 0 0 2px #c9cde0; }
.hw-seg input:checked + label.is-on { background: #d9f5e7; color: #0f6a41; box-shadow: inset 0 0 0 2px #7fd3a8; }
.hw-seg input:checked + label.is-off { background: #ffe1e1; color: #b42318; box-shadow: inset 0 0 0 2px #f1a29b; }
.hw-seg input:focus-visible + label { outline: 3px solid var(--hw-pink-soft); outline-offset: -3px; }

/* the plan matrix */
.hw-matrix-row { display: flex; align-items: center; padding: 11px 8px; margin: 0 -8px; border-bottom: 1px solid var(--hw-line-soft); border-radius: 8px; }
.hw-matrix-row.is-lever { background: #fff8fb; }
.hw-matrix-row .name { flex: 2; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hw-matrix-row .cell { flex: 1; text-align: center; font-size: 17px; font-weight: 800; }
.hw-matrix-row.is-group .name { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hw-pink); }
.hw-yes { color: #0f6a41; }
.hw-no { color: #aab0c8; }

/* the live preview beside the plan editor */
.hw-preview { background: linear-gradient(145deg, #181c32 0%, #2a1630 100%); border-radius: 24px; padding: 28px; color: #fff; position: sticky; top: 88px; }
.hw-preview .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff8ab8; margin-bottom: 10px; }
.hw-preview .sheet { background: #fff; border-radius: 18px; padding: 18px 20px; color: var(--hw-ink); }
.hw-preview .row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; font-weight: 600; }
.hw-preview .row.is-off { color: #aab0c8; font-weight: 500; }
.hw-preview .row.is-group { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hw-pink); margin-top: 8px; }
.hw-preview .mark { width: 16px; text-align: center; font-weight: 800; }
.hw-matrix-row .cell, .hw-preview .mark { font-variant-emoji: text; }

/* sign in */
.hw-login { max-width: 440px; margin: 40px auto 0; }
.hw-login .logo { text-align: center; margin-bottom: 20px; }
.hw-login .logo img { height: 84px; width: auto; mix-blend-mode: multiply; }
.hw-login form { background: #fff; border: 1px solid var(--hw-line); border-radius: 24px; padding: 36px 32px 32px; box-shadow: 0 30px 70px rgba(24, 28, 50, .1); }

@media (max-width: 899px) {
    .hw-main { padding: 28px 16px 80px; }
    .hw-top { padding: 0 14px; }
}

/* ------------------------------------------------------------------ prospects: board and view switch */
.hw-seg { display: inline-flex; border: 1px solid var(--hw-field); border-radius: 12px; overflow: hidden; background: #fff; }
.hw-seg a { padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--hw-text); }
.hw-seg a[aria-current] { background: var(--hw-pink-soft); color: var(--hw-pink-soft-text); }

.hw-board { position: relative; display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 14px; }
.hw-col { flex: 0 0 272px; background: #eef0f6; border-radius: 16px; padding: 10px; transition: background .15s; --hw-stage: var(--hw-field); }
.hw-col.is-danger { --hw-stage: #e5484d; }
.hw-col.is-warn { --hw-stage: #f5a524; }
.hw-col.is-info { --hw-stage: #3b82f6; }
.hw-col.is-success { --hw-stage: #17a35b; }
.hw-col.is-over { background: var(--hw-pink-soft); }
.hw-col header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.hw-col-title { font-weight: 800; font-size: 14px; color: var(--hw-ink); display: inline-flex; align-items: center; gap: 8px; }
.hw-col-title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--st, var(--hw-field)); }
.hw-col-count { font-weight: 800; font-size: 12.5px; background: #fff; border-radius: 999px; padding: 2px 10px; color: var(--hw-text); }
.hw-col-body { display: flex; flex-direction: column; gap: 10px; min-height: 64px; }
.hw-card-k { background: #fff; border: 1px solid var(--hw-line); border-radius: 12px; padding: 12px; box-shadow: var(--hw-shadow); cursor: grab; display: flex; flex-direction: column; gap: 6px; }
.hw-card-k.is-overdue { border-color: #f4b4b4; background: #fff8f8; }
.hw-card-k.is-dragging { opacity: .45; }
.hw-card-k.is-saving { opacity: .7; }
.hw-k-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 14.5px; color: var(--hw-ink); }
.hw-k-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.hw-k-phone { font-weight: 800; font-size: 14.5px; }
.hw-k-notes { font-size: 12.5px; color: var(--hw-muted); background: var(--hw-bg); border-radius: 8px; padding: 6px 8px; }
.hw-k-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hw-k-flag { font-size: 12px; font-weight: 800; color: #b42318; }
.hw-card-k select { margin-top: 2px; }

/* ------------------------------------------------------------------ prospects: pipeline strip, toolbar, bulk bar, delete dialog */
.pr-st-new { --st: #e5484d; }
.pr-st-no_answer { --st: #f5a524; }
.pr-st-callback { --st: #d98a1c; }
.pr-st-interested { --st: #3b82f6; }
.pr-st-setup_booked { --st: #6366f1; }
.pr-st-won { --st: #17a35b; }
.pr-st-lost { --st: #8b90a0; }
.pr-st-do_not_call { --st: #5e6278; }

.pr-strip { display: flex; gap: 6px; margin-bottom: 10px; }
.pr-seg {
    flex-basis: 0; min-width: 96px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px;
    background: color-mix(in srgb, var(--st) 13%, #fff); color: var(--hw-ink) !important; transition: background .15s, transform .15s;
}
.pr-seg b { font-size: 24px; font-weight: 800; line-height: 1.1; color: color-mix(in srgb, var(--st) 80%, #181c32); }
.pr-seg span { font-size: 13px; font-weight: 600; color: var(--hw-text); }
.pr-seg:hover { background: color-mix(in srgb, var(--st) 22%, #fff); }
.pr-seg[aria-current] { background: color-mix(in srgb, var(--st) 30%, #fff); box-shadow: inset 0 0 0 2px var(--st); }

.pr-notes { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 18px; font-size: 13.5px; color: var(--hw-muted); }
.pr-notes b { color: var(--hw-ink); font-weight: 800; }
.pr-notes .is-hot, .pr-notes .is-hot b { color: #b42318; }

.pr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pr-search { display: flex; align-items: center; gap: 8px; }
.pr-search .form-control { width: 260px; }
.pr-bar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pr-bar-end form { margin: 0; }
.pr-link { all: unset; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--hw-pink); }
.pr-link:hover { color: var(--hw-pink-dark); text-decoration: underline; }
.pr-flash { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }

.pr-bulk {
    position: sticky; top: 12px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px;
    padding: 10px 14px; background: var(--hw-ink); color: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(24, 28, 50, .25);
}
.pr-bulk[hidden] { display: none; }
.pr-bulk b { margin-right: 6px; }
.pr-bulk .form-select { width: 170px; }

.pr-table th.pr-check, .pr-table td.pr-check { width: 38px; padding-right: 0; }
.pr-table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--hw-pink); cursor: pointer; }
.pr-table tr.is-overdue { background: #fff6f6; }
.pr-name { font-weight: 800; font-size: 15px; color: var(--hw-ink); }
.pr-phone { font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.pr-when { margin-top: 6px; }
.pr-hot { color: #b42318; margin-left: 8px; }
.pr-ok { color: #146c3a; margin-left: 8px; }
.pr-slow { color: #8a5200; margin-left: 8px; }
.pr-outcome { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pr-outcome .form-control, .pr-outcome .form-select { width: 100%; }
.pr-stage { font-weight: 700; background-color: color-mix(in srgb, var(--st) 14%, #fff); }
.pr-notes-text { margin-top: 6px; font-size: 13px; color: var(--hw-muted); max-width: 320px; }
.pr-actions { white-space: nowrap; vertical-align: top; }
.pr-actions form { display: inline; }
.pr-actions .btn + form, .pr-actions form + form { margin-left: 6px; }

.hw-k-links { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; }
.hw-k-actions { display: flex; gap: 6px; margin-top: 4px; }
.hw-k-actions form { margin: 0; }
.hw-k-phone { font-size: 17px; }

.pr-dialog { border: 0; border-radius: 16px; padding: 22px 24px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(24, 28, 50, .35); color: var(--hw-ink); }
.pr-dialog::backdrop { background: rgba(24, 28, 50, .45); }
.pr-dialog p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.pr-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 720px) {
    .pr-strip { overflow-x: auto; padding-bottom: 4px; }
    .pr-seg { min-width: 108px; }
    .pr-search .form-control { width: 100%; }
    .pr-search { flex: 1 1 100%; }
}

.hw-main.is-wide { max-width: none; padding-left: 32px; padding-right: 32px; }
.hw-k-top .hw-chip { white-space: nowrap; flex: none; }
.pr-bar-end .form-select { min-width: 220px; }

/* ------------------------------------------------------------------ prospects: call-backs, chips, history, report */
.pr-due { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #fff7e6; color: #6b4300; font-size: 14.5px; }
.pr-due.has-late { background: #ffe9e9; color: #7a1a12; }
.pr-due b { font-size: 18px; font-weight: 800; margin-right: 4px; }
.pr-due-late { margin-left: 10px; font-weight: 800; color: #b42318; }

.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hw-card-k .pr-chips { margin-top: 0; }
.pr-chips:empty { display: none; }
.pr-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--hw-line-soft); color: var(--hw-text) !important; white-space: nowrap; }
.pr-chip[hidden] { display: none; }
.pr-chip.is-hot { background: #ffe1e1; color: #b42318 !important; }
.pr-chip.is-warn { background: #fff0d6; color: #8a5200 !important; }

.pr-pair { display: flex; gap: 8px; width: 100%; }
.pr-pair > * { flex: 1 1 0; min-width: 0; }
.pr-pair [hidden] { display: none; }
.pr-owner { width: 190px; }

.pr-edit { display: grid; grid-template-columns: minmax(0, 760px) minmax(280px, 1fr); gap: 20px; align-items: start; }
.pr-history .card-body { max-height: 720px; overflow-y: auto; }
.pr-event { padding: 10px 0; border-bottom: 1px solid var(--hw-line-soft); font-size: 14px; }
.pr-event:last-child { border-bottom: 0; }
.pr-event-top { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 1100px) { .pr-edit { grid-template-columns: minmax(0, 1fr); } }

.pr-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.pr-bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) minmax(80px, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }
.pr-meter { display: block; height: 8px; border-radius: 999px; background: var(--hw-line-soft); overflow: hidden; }
.pr-meter i { display: block; height: 100%; background: var(--hw-pink); border-radius: 999px; }

/* ------------------------------------------------------------------ prospects: the "Call next" card */
.pr-focus {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin: 0 0 18px; padding: 22px 26px;
    background: var(--hw-ink); color: #fff; border-radius: 20px; box-shadow: 0 16px 40px rgba(24, 28, 50, .22); position: relative; overflow: hidden;
}
.pr-focus::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--hw-grad); }
.pr-focus.is-hot::before { background: #ff5c5c; }
.pr-focus-why { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ff8ab8; }
.pr-focus-reason { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: #d6d8e6; }
.pr-focus-reason b { color: #fff; font-variant-numeric: tabular-nums; }
.pr-focus-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff8ab8; }
.pr-focus.is-hot .pr-focus-dot { background: #ff5c5c; animation: pr-pulse 1.6s ease-out infinite; }
.pr-focus-name { margin: 6px 0 2px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.pr-focus-sub { font-size: 15px; color: #c9cce0; }
.pr-focus-note { margin-top: 10px; font-size: 14px; color: #e4e6f0; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 12px; max-width: 560px; }
.pr-focus-act { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
body.hw-admin a.pr-focus-call, body.hw-admin a.pr-focus-wa {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 16px; color: #fff;
    font-size: 17px; font-weight: 800; touch-action: manipulation; transition: transform .1s, filter .15s;
}
body.hw-admin a.pr-focus-call { background: var(--hw-grad); box-shadow: 0 8px 20px rgba(217, 19, 106, .45); }
body.hw-admin a.pr-focus-wa { background: #1fa855; min-height: 48px; font-size: 15px; }
body.hw-admin a.pr-focus-call:hover, body.hw-admin a.pr-focus-wa:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.pr-focus-after { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pr-focus-after > span { font-size: 13px; font-weight: 700; color: #aab0c8; margin-right: 4px; }
.pr-focus-after form { margin: 0; }
.pr-pill {
    all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 700; touch-action: manipulation; transition: background .15s;
}
.pr-pill:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.pr-pill:focus-visible { outline: 2px solid #ff8ab8; outline-offset: 2px; }
body.hw-admin a.pr-pill.is-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); color: #e4e6f0; }
@keyframes pr-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 92, 92, .6); } 70% { box-shadow: 0 0 0 9px rgba(255, 92, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 92, 92, 0); } }

/* ------------------------------------------------------------------ prospects: easier rows */
.pr-table tbody tr { transition: background .12s; }
.pr-table tbody tr:hover { background: #fafbfe; }
.pr-table tbody tr[class*="pr-st-"] td.pr-check { box-shadow: inset 4px 0 0 var(--st); }
.pr-table tr.is-overdue td.pr-check { box-shadow: inset 4px 0 0 #e5484d; }
.pr-hot::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #e5484d; animation: pr-pulse 1.6s ease-out infinite; vertical-align: middle; }
body.hw-admin a.pr-callbtn { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 10px; background: var(--hw-pink-soft); color: var(--hw-pink-soft-text); font-size: 15px; }
body.hw-admin a.pr-callbtn:hover { background: var(--hw-pink); color: #fff; }
body.hw-admin a.pr-wa { display: inline-flex; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #e3f6ea; color: #146c3a; font-size: 12.5px; font-weight: 700; }
body.hw-admin a.pr-wa:hover { background: #1fa855; color: #fff; }
.pr-outcome textarea { height: 38px; min-height: 38px; resize: none; overflow: hidden; transition: height .15s; }
.pr-outcome textarea:focus, .pr-outcome textarea:not(:placeholder-shown) { height: 84px; resize: vertical; overflow: auto; }
.pr-outcome button[type=submit]:not(.is-dirty) { background: var(--hw-line-soft); color: var(--hw-muted); box-shadow: none; }
.pr-outcome button[type=submit].is-dirty { background: var(--hw-grad); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .pr-hot::before, .pr-focus.is-hot .pr-focus-dot { animation: none; }
    .pr-focus-call, .pr-focus-wa, .pr-pill, .pr-outcome textarea { transition: none; }
}

@media (max-width: 860px) {
    .pr-focus { grid-template-columns: minmax(0, 1fr); padding: 18px 18px 18px 22px; }
    .pr-focus-act { min-width: 0; }
    .pr-focus-after > span { flex: 1 1 100%; }
    .pr-focus-after form { flex: 1 1 calc(50% - 8px); }
    .pr-focus-after .pr-pill { width: 100%; justify-content: center; min-height: 46px; }
    .pr-focus-after > a.pr-pill { flex: 1 1 100%; justify-content: center; min-height: 46px; }

    /* a prospect is a card, not a row of a wide table */
    .pr-table { min-width: 0 !important; }
    .pr-table thead { display: none; }
    .pr-table tbody, .pr-table tr, .pr-table td { display: block; width: 100%; }
    .pr-table tbody tr { position: relative; margin: 0 0 12px; padding: 14px 14px 10px 18px; border: 1px solid var(--hw-line); border-radius: 16px; background: #fff; box-shadow: var(--hw-shadow); }
    .pr-table tbody tr[class*="pr-st-"] { border-left: 5px solid var(--st); }
    .pr-table tr.is-overdue { border-color: #f4b4b4; background: #fff8f8; }
    .pr-table td { border: 0 !important; padding: 6px 0 !important; }
    .pr-table td.pr-check { position: absolute; top: 12px; right: 12px; width: auto; box-shadow: none !important; }
    .pr-table td.pr-actions { display: flex; gap: 8px; padding-top: 10px !important; }
    .pr-owner { width: 100%; }
}

/* ------------------------------------------------------------------ the menu on a phone: a drawer over the page, not a column beside it */
@media (max-width: 720px) {
    .hw-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(290px, 86vw); height: 100vh; height: 100dvh; box-shadow: 0 0 0 100vmax rgba(24, 28, 50, .5); transition: transform .2s ease; }
    .hw-shell.is-collapsed .hw-side { width: min(290px, 86vw); transform: translateX(-105%); box-shadow: none; }
    .hw-shell .hw-content { width: 100%; }
    /* until the page script has decided open or closed, the drawer stays shut, so it never flashes open on load */
    .hw-shell:not(.is-ready) .hw-side { transform: translateX(-105%); box-shadow: none; transition: none; }
    .hw-crumb { font-size: 13px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .hw-side { transition: none; } }
