* {
    box-sizing: border-box;
}

body {
    font: 14px system-ui, sans-serif;
    margin: 0;
    background: #f3f5f9;
    color: #1b2333;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
    background: #0b1f3a;
    color: #fff;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.brand {
    font-size: 20px;
}

.brand b {
    color: #38bdf8;
}

.brand small {
    display: block;
    font-size: 10px;
    opacity: .7;
}

nav a,
.me a {
    color: #cfe3ff;
    margin-right: 12px;
    text-decoration: none;
}

.me {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
}

/* =========================================================
   NOTIFICATION BELL
   The notification badge is absolutely positioned so that
   unread counts do NOT change the header width or wrapping.
   ========================================================= */

.notification-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    white-space: nowrap;
}

.notification-bell {
    display: block;
    line-height: 1;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;

    min-width: 16px;
    height: 16px;
    padding: 0 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #ef4444;
    color: #fff;

    font-size: 10px;
    font-weight: 700;
    line-height: 16px;

    border: 2px solid #0b1f3a;

    pointer-events: none;
}

.notification-count:empty {
    display: none;
}

/* =========================================================
   MAIN
   ========================================================= */

main {
    padding: 16px;
    max-width: 1300px;
    margin: auto;
}

/* =========================================================
   TABLES
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 16px;
}

td,
th {
    padding: 6px 8px;
    border-bottom: 1px solid #e3e8f0;
    text-align: left;
    vertical-align: top;
}

tr.red,
table.red {
    background: #fee2e2;
}

tr.red td {
    font-weight: 600;
}

tr.warn {
    background: #fef3c7;
}

/* =========================================================
   PILLS / DASHBOARD
   ========================================================= */

.pill {
    background: #e0ecff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(150px, 1fr)
    );
    gap: 10px;
}

.stat {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
}

.stat b {
    display: block;
    font-size: 24px;
}

.stat.red {
    background: #fee2e2;
    color: #b91c1c;
}

/* =========================================================
   CARDS / COLUMNS
   ========================================================= */

.card {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* =========================================================
   FORMS
   ========================================================= */

.form {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

input,
select,
textarea,
button {
    padding: 7px;
    border: 1px solid #c5cedd;
    border-radius: 6px;
    font: inherit;
}

button {
    background: #0b6bcb;
    color: #fff;
    border: 0;
    cursor: pointer;
}

button.link {
    background: none;
    color: #cfe3ff;
}

form.inline {
    display: inline-block;
    margin: 2px;
}

/* =========================================================
   MESSAGES / TEXT
   ========================================================= */

.err {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.muted {
    color: #6b7688;
}

.t {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* =========================================================
   LOGIN
   ========================================================= */

.login {
    display: grid;
    place-items: center;
    height: 100vh;
}

.login .card {
    width: 320px;
    display: grid;
    gap: 10px;
}

/* =========================================================
   RECENT CUSTOMER HISTORY
   ========================================================= */

#recent {
    background: #fff7d6;
    padding: 8px;
    margin: 8px 0;
    border-radius: 6px;
}

#recent:empty {
    display: none;
}

/* =========================================================
   V4IT PULSE OPERATIONAL UI
   ========================================================= */

.case-form {
    max-width: 800px;
    margin: 0 auto 14px;
    grid-template-columns: 1fr 1fr;
}

.case-form textarea {
    grid-column: 1 / -1;
    min-height: 170px;
    resize: vertical;
}

.case-form select,
.case-form input,
.case-form textarea {
    width: 100%;
}

/* =========================================================
   PRESENCE
   ========================================================= */

.presence-label {
    font-weight: 600;
    margin-right: 8px;
}

.presence-label.available {
    color: #86efac;
}

.presence-label.on-case {
    color: #7dd3fc;
}

.presence-label.break {
    color: #fde68a;
}

.presence-label.offline {
    color: #cbd5e1;
}

.me select {
    background: #fff;
    color: #1b2333;
}

.presence-select {
    min-width: 110px;
}

.presence-select:disabled {
    opacity: 1;
    cursor: default;
}

.me .link {
    padding: 2px 5px;
}

/* =========================================================
   SEARCH / REPORT FILTERS
   ========================================================= */

.searchbar,
.report-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}

.searchbar input {
    min-width: 320px;
}

.button-link {
    display: inline-block;
    background: #0b6bcb;
    color: #fff;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pager {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0 20px;
}

.pager .current {
    font-weight: 700;
    outline: 2px solid #93c5fd;
}

/* =========================================================
   CASE / CALLBACK PANELS
   ========================================================= */

.secondary {
    margin-top: 10px;
}

.secondary summary {
    cursor: pointer;
    color: #5b6575;
}

.close-panel {
    margin-top: 14px;
    padding: 14px;
    border: 2px solid #0b6bcb;
    border-radius: 10px;
    background: #f8fbff;
}

.close-panel textarea {
    min-height: 120px;
    width: 100%;
    margin: 8px 0;
    resize: vertical;
}

.callback-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 8px 0;
}

.timezone-panel {
    display: grid;
    gap: 5px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.timezone-panel select {
    width: 100%;
    max-width: 420px;
}

.issue-view {
    white-space: normal;
    line-height: 1.55;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* =========================================================
   ASSIGNMENT ALERT
   ========================================================= */

#assignment-alert {
    position: fixed;
    right: 16px;
    top: 70px;
    width: min(420px, calc(100vw - 32px));

    background: #fee2e2;
    color: #7f1d1d;

    border: 2px solid #dc2626;
    border-radius: 10px;

    padding: 14px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);

    z-index: 9999;
}

#assignment-alert .aa-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

#assignment-alert .aa-case {
    background: #fff;
    border-radius: 7px;
    padding: 9px;
    margin-top: 8px;
}

#assignment-alert .aa-case a {
    color: #991b1b;
    font-weight: 800;
    text-decoration: none;
}

#assignment-alert .aa-case span {
    color: #4b5563;
}

#assignment-alert .aa-actions {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .cols {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
    }

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

    .callback-fields {
        grid-template-columns: 1fr;
    }

    .searchbar input {
        min-width: 0;
        width: 100%;
    }

    header {
        gap: 10px;
    }

    .me {
        margin-left: 0;
        width: 100%;
    }
}


/* =========================================================
   SECURITY / ACCESSIBILITY UI HARDENING
   =========================================================
   CSS does not provide authorization or security controls.
   Server-side authorization remains mandatory. These rules only
   reduce UI ambiguity and make security-sensitive controls easier
   to use correctly.
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
}

button:hover:not(:disabled),
.button-link:hover,
nav a:hover,
.me a:hover {
    text-decoration: underline;
}

table th {
    white-space: nowrap;
}

.issue-view,
td,
th,
.card {
    overflow-wrap: anywhere;
}

/* Keep the persistent assignment alert visible above ordinary
   temporary notifications and provide enough room for multiple cases. */
#assignment-alert {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#assignment-alert .aa-case + .aa-case {
    margin-top: 8px;
}

#assignment-alert .aa-case a:focus-visible {
    outline-color: #991b1b;
}

#assignment-alert .aa-actions {
    line-height: 1.45;
}

/* Prevent accidental horizontal overflow from long customer data. */
main,
.card,
.stat,
table {
    min-width: 0;
}

/* Make long case/customer text readable on narrow screens. */
@media (max-width: 600px) {

    main {
        padding: 10px;
    }

    header {
        padding: 8px 10px;
    }

    .brand {
        font-size: 18px;
    }

    #assignment-alert {
        left: 10px;
        right: 10px;
        top: 62px;
        width: auto;
        max-height: calc(100vh - 74px);
    }

    .notification-link {
        margin-right: 6px;
    }

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

    .searchbar,
    .report-filters {
        align-items: stretch;
    }

    .searchbar > *,
    .report-filters > * {
        max-width: 100%;
    }
}

/* Respect users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* =========================================================
   TECH PORTAL V2 — GUIDED CASE WORKFLOW
   ========================================================= */
.case-hero{border-radius:18px;padding:22px;color:#fff;margin-bottom:16px;box-shadow:0 12px 32px rgba(15,23,42,.14);background:linear-gradient(135deg,#102a56,#174b86)}
.case-hero.warning{background:linear-gradient(135deg,#7a4b05,#b56b08)}
.case-hero.active{background:linear-gradient(135deg,#0b5b4b,#087f68)}
.case-hero.info{background:linear-gradient(135deg,#214b8f,#2d6ac4)}
.case-hero.neutral{background:linear-gradient(135deg,#334155,#475569)}
.case-hero.closed-hero{background:linear-gradient(135deg,#173b2e,#216b4b)}
.hero-kicker,.step-label,.info-label{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.78}
.hero-main{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:6px}.hero-main h1{font-size:30px;margin:0}.hero-main p{margin:4px 0 0;opacity:.85;font-size:15px}.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 13px;font-weight:800;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2)}
.status-badge.success{background:#dcfce7;color:#166534}.status-badge.warning{background:#fff7ed;color:#9a3412}.status-badge.info{background:#dbeafe;color:#1e40af}.status-badge.active{background:#d1fae5;color:#065f46}
.hero-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.hero-metrics>div{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13);padding:11px 13px;border-radius:12px}.hero-metrics small{display:block;font-size:10px;opacity:.72}.hero-metrics strong{display:block;font-size:18px;margin-top:3px}.hero-hint{margin-top:13px;font-size:13px;opacity:.9}.alert-inline{display:inline-block;margin-left:8px;background:#fee2e2;color:#991b1b;padding:4px 8px;border-radius:7px;font-weight:800}
.hero-outcome{display:flex;align-items:center;gap:13px;margin-top:18px;background:rgba(255,255,255,.10);padding:14px;border-radius:13px}.hero-outcome .outcome-icon{width:40px;height:40px}.hero-outcome small,.hero-outcome strong,.hero-outcome span{display:block}.hero-outcome small{font-size:10px;opacity:.7}.hero-outcome strong{font-size:17px}.hero-outcome span:last-child{font-size:12px;opacity:.82;margin-top:2px}
.case-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.info-card{background:#fff;border:1px solid #e3e8f0;border-radius:14px;padding:14px;box-shadow:0 4px 14px rgba(15,23,42,.04)}.info-card strong,.info-card span{display:block}.info-card strong{font-size:16px;margin:5px 0}.info-card span:not(.info-label){color:#667085;font-size:12px;margin-top:2px}.info-label{color:#667085!important;opacity:1}
.case-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.75fr);gap:14px;align-items:start}.clean-panel{background:#fff;border:1px solid #e3e8f0;border-radius:15px;padding:17px;margin-bottom:14px;box-shadow:0 5px 18px rgba(15,23,42,.045)}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:800;font-size:15px;margin-bottom:14px}.mini-tag{font-size:10px;text-transform:uppercase;letter-spacing:.08em;padding:4px 7px;border-radius:999px;background:#f1f5f9;color:#64748b}.customer-strip{display:flex;align-items:center;gap:12px}.avatar{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#e8f1ff;color:#2457a6;font-weight:900;font-size:17px}.customer-strip strong,.customer-strip span{display:block}.customer-strip span{font-size:12px;color:#667085;margin-top:3px}.issue-box{background:#f8fafc;border:1px solid #e7edf4;border-radius:11px;padding:14px;line-height:1.55}.issue-box.large{font-size:15px;min-height:100px}.notes-readonly{background:#f8fafc;border-radius:11px;padding:14px;line-height:1.6}.detail-list{margin:0}.detail-list div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf1f5}.detail-list div:last-child{border-bottom:0}.detail-list dt{color:#667085;font-size:12px}.detail-list dd{margin:0;text-align:right;font-weight:700;font-size:12px;max-width:62%;overflow-wrap:anywhere}.btn-full{width:100%}.btn-xl{width:100%;padding:13px 16px!important;font-size:15px!important;font-weight:850!important}.btn-primary{background:#1769e0!important;color:#fff!important;border:0!important;border-radius:10px!important}.btn-secondary{border:1px solid #cbd5e1!important;background:#fff!important;color:#1e293b!important;border-radius:9px!important}.safe-secondary{background:#f8fafc;border:1px solid #e5e7eb;border-radius:11px;padding:10px;margin-bottom:14px}.safe-secondary summary{cursor:pointer;font-weight:750;color:#475569}.safe-secondary form{margin-top:10px;display:grid;gap:8px}.safe-secondary label,.admin-assign label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#475569}.admin-assign form{display:grid;gap:9px}.admin-assign select{width:100%}
.closure-workflow{border:2px solid #dbeafe}.closure-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.closure-head h2{margin:4px 0 5px;font-size:22px}.closure-head p{margin:0;color:#667085;max-width:720px}.closure-rule{font-size:11px;font-weight:800;color:#8a4b00;background:#fff7ed;padding:8px 10px;border-radius:9px;white-space:nowrap}.outcome-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.outcome-card{position:relative;display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid #dbe2ea;border-radius:13px;background:#fff;cursor:pointer;transition:.15s ease}.outcome-card:hover{border-color:#8db8f2;transform:translateY(-1px);box-shadow:0 6px 15px rgba(30,64,175,.07)}.outcome-card:has(input:checked){border-color:#1769e0;background:#eff6ff;box-shadow:0 0 0 2px #bfdbfe}.outcome-card input{margin-top:3px;accent-color:#1769e0}.outcome-card .outcome-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f1f5f9;font-weight:900}.outcome-card strong,.outcome-card small{display:block}.outcome-card strong{font-size:14px}.outcome-card small{color:#667085;font-size:11px;line-height:1.35;margin-top:3px}.outcome-card.success .outcome-icon{background:#dcfce7;color:#166534}.outcome-card.callback .outcome-icon{background:#fef3c7;color:#92400e}.outcome-card.action .outcome-icon{background:#dbeafe;color:#1d4ed8}.callback-required-fields{margin-top:14px;padding:14px;border:1px solid #f2cf75;background:#fffbeb;border-radius:12px}.callback-callout{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}.callback-callout strong{display:block;color:#92400e}.callback-callout span{display:block;font-size:12px;color:#7c5a15}.callback-grid{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:9px}.callback-grid label,.closure-notes{display:grid;gap:5px;font-size:12px;font-weight:750;color:#475569}.closure-notes{margin-top:12px}.closure-notes textarea{min-height:100px}.close-review{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px;padding:12px;background:#f8fafc;border-radius:11px}.close-review span,.close-review small{display:block}.close-review span{font-weight:800}.close-review small{color:#667085;margin-top:2px}.close-review button{max-width:220px}
.timeline{position:relative;padding-left:20px}.timeline:before{content:"";position:absolute;left:6px;top:5px;bottom:5px;width:2px;background:#e2e8f0}.timeline-item{position:relative;display:flex;gap:12px;padding:0 0 17px}.timeline-dot{position:absolute;left:-18px;top:4px;width:10px;height:10px;border-radius:50%;background:#3b82f6;border:2px solid #fff;box-shadow:0 0 0 1px #bfdbfe}.timeline-item strong,.timeline-item span,.timeline-item p{display:block}.timeline-item strong{font-size:13px}.timeline-item span{font-size:11px;color:#667085;margin-top:2px}.timeline-item p{margin:6px 0 0;color:#475569;font-size:12px;line-height:1.45}.table-scroll{overflow:auto}.clean-table{margin:0;box-shadow:none}.cell-note{display:block;font-size:10px;color:#667085;margin-top:3px}.clean-table th{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#667085}.clean-table td{padding:10px 8px}
@media(max-width:900px){.case-summary-grid{grid-template-columns:repeat(2,1fr)}.case-layout{grid-template-columns:1fr}.hero-metrics{grid-template-columns:1fr 1fr 1fr}.closure-head{display:block}.closure-rule{display:inline-block;margin-top:10px}.callback-grid{grid-template-columns:1fr 1fr}.close-review{align-items:stretch;flex-direction:column}.close-review button{max-width:none}}
@media(max-width:600px){.case-summary-grid{grid-template-columns:1fr}.hero-main{align-items:flex-start;flex-direction:column}.hero-main h1{font-size:25px}.hero-metrics{grid-template-columns:1fr}.outcome-grid{grid-template-columns:1fr}.callback-grid{grid-template-columns:1fr}.case-hero{padding:17px}.clean-panel{padding:13px}}

/* =========================================================
   CALLBACK TIME PREVIEW
   ========================================================= */
.callback-time-preview{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:stretch;margin-top:10px;padding:12px;border:1px solid #dbe2ea;border-radius:12px;background:#f8fafc}
.callback-time-preview>div{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;min-width:0}
.callback-time-preview small,.callback-time-preview strong,.callback-time-preview span{display:block}
.callback-time-preview small{font-size:9px;font-weight:850;letter-spacing:.08em;color:#667085}
.callback-time-preview strong{font-size:14px;margin-top:4px;color:#172033}
.callback-time-preview span{font-size:11px;color:#667085;margin-top:2px;overflow-wrap:anywhere}
.callback-time-preview .preview-arrow{display:grid;place-items:center;background:transparent;border:0;padding:0 2px;color:#1769e0;font-size:22px;font-weight:800}
.callback-time-preview:not(.ready){display:block;color:#667085;font-size:12px}
.callback-time-preview:not(.ready) strong{font-size:12px;color:#475569}
@media(max-width:600px){.callback-time-preview{grid-template-columns:1fr}.callback-time-preview .preview-arrow{min-height:22px;transform:rotate(90deg)}}


/* =========================================================
   CALLBACK COMMAND CENTER
   ========================================================= */
.callback-page{max-width:1380px;margin:0 auto}.callback-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 18px}.callback-page-head h1{margin:4px 0 6px;font-size:28px;letter-spacing:-.02em;color:#12213a}.callback-page-head p{margin:0;color:#667085;max-width:760px;line-height:1.5}.eyebrow{display:block;font-size:10px;font-weight:850;letter-spacing:.09em;color:#667085;text-transform:uppercase}.callback-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.callback-stat{background:#fff;border:1px solid #e3e8f0;border-radius:14px;padding:15px 16px;box-shadow:0 4px 14px rgba(15,23,42,.04);position:relative;overflow:hidden}.callback-stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#1769e0}.callback-stat.due:before{background:#d97706}.callback-stat.missed:before{background:#dc2626}.callback-stat.completed:before{background:#15803d}.callback-stat span{display:block;color:#667085;font-size:12px}.callback-stat strong{display:block;margin-top:5px;font-size:28px;color:#12213a}.callback-stat.missed strong{color:#b91c1c}.callback-stat.due strong{color:#a16207}.callback-stat.completed strong{color:#166534}
.callback-card{background:#fff;border:1px solid #dfe5ed;border-radius:18px;margin-bottom:14px;overflow:hidden;box-shadow:0 6px 20px rgba(15,23,42,.055)}.callback-card.missed{border-color:#fecaca;box-shadow:0 8px 24px rgba(185,28,28,.08)}.callback-card.due{border-color:#f2cf75}.callback-card-main{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(150px,.75fr) minmax(190px,1fr) 28px minmax(190px,1fr);gap:14px;align-items:center;padding:18px}.callback-customer{display:flex;gap:11px;align-items:center;min-width:0}.callback-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:13px;display:grid;place-items:center;background:#e8f1ff;color:#2457a6;font-weight:900;font-size:17px}.callback-customer h2{font-size:16px;margin:3px 0 4px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.callback-contact{font-size:12px;color:#667085;overflow-wrap:anywhere}.callback-status{display:flex;align-items:center;gap:9px}.callback-status-dot{width:10px;height:10px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 4px #dbeafe}.callback-card.due .callback-status-dot{background:#d97706;box-shadow:0 0 0 4px #fef3c7}.callback-card.missed .callback-status-dot{background:#dc2626;box-shadow:0 0 0 4px #fee2e2}.callback-card.completed .callback-status-dot{background:#15803d;box-shadow:0 0 0 4px #dcfce7}.callback-status strong,.callback-status span{display:block}.callback-status strong{margin-top:3px;font-size:14px;color:#172033}.callback-result{font-size:11px;color:#667085;margin-top:2px}.callback-time-block{background:#f8fafc;border:1px solid #e7edf4;border-radius:12px;padding:11px 12px;min-width:0}.callback-time-block strong{display:block;margin-top:5px;font-size:14px;color:#172033}.callback-time-block span:last-child{display:block;font-size:11px;color:#667085;margin-top:3px;overflow-wrap:anywhere}.callback-time-block.customer-time{background:#f7fbff;border-color:#d7e7fb}.callback-time-block.agent-time{background:#f8fafc}.callback-arrow{display:grid;place-items:center;color:#1769e0;font-size:22px;font-weight:900}.callback-meta{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;border-top:1px solid #edf1f5;padding-top:13px}.callback-meta div{background:#fafbfc;border:1px solid #edf1f5;border-radius:10px;padding:9px 11px}.callback-meta span{display:block;font-size:10px;color:#667085;text-transform:uppercase;letter-spacing:.06em}.callback-meta strong{display:block;margin-top:3px;font-size:12px;overflow-wrap:anywhere}.callback-meta a{color:#1769e0}.callback-note{grid-column:1 / -1;background:#fffdf3;border:1px solid #f2df9c;border-radius:10px;padding:10px 12px;font-size:12px;color:#475569}.callback-note .eyebrow{margin-bottom:3px;color:#8a4b00}.callback-actions{border-top:1px solid #edf1f5;background:#fbfcfe;padding:10px 18px}.callback-action-panel{border:1px solid #e3e8f0;border-radius:12px;background:#fff;margin:8px 0;overflow:hidden}.callback-action-panel summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:12px 14px}.callback-action-panel summary::-webkit-details-marker{display:none}.callback-action-panel summary:hover{background:#f8fafc}.callback-action-panel summary strong,.callback-action-panel summary small{display:block}.callback-action-panel summary strong{font-size:13px;color:#172033}.callback-action-panel summary small{font-size:11px;color:#667085;margin-top:2px}.action-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#e8f1ff;color:#1769e0;font-weight:900;font-size:17px}.cancel-panel .action-icon{background:#fee2e2;color:#b91c1c}.callback-action-form{padding:0 14px 14px;display:grid;gap:10px}.result-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.result-choice{display:flex;gap:9px;align-items:flex-start;border:1px solid #dbe2ea;border-radius:11px;padding:11px;background:#fff;cursor:pointer}.result-choice:hover{border-color:#8db8f2;background:#f8fbff}.result-choice:has(input:checked){border-color:#1769e0;background:#eff6ff;box-shadow:0 0 0 2px #bfdbfe}.result-choice input{margin-top:3px;accent-color:#1769e0}.result-choice strong,.result-choice small{display:block}.result-choice strong{font-size:12px}.result-choice small{font-size:10px;color:#667085;line-height:1.35;margin-top:2px}.result-choice.success input{accent-color:#15803d}.result-choice.warning input{accent-color:#d97706}.callback-field-label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#475569}.callback-field-label textarea{min-height:78px;resize:vertical}.reschedule-grid{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:9px}.callback-action-form input,.callback-action-form select,.callback-action-form textarea{width:100%}.callback-action-form button{max-width:320px}.btn-danger{background:#b91c1c!important;color:#fff!important;border:0!important;border-radius:10px!important}.callback-closed{padding:13px 18px;background:#f8fafc;border-top:1px solid #edf1f5;color:#667085;font-size:12px}.callback-last-action{padding:9px 18px;background:#f8fafc;border-top:1px solid #edf1f5;font-size:11px;color:#667085}.callback-last-action span{font-weight:800;color:#475569;margin-right:6px}.callback-empty{text-align:center;padding:42px}.empty-icon{width:52px;height:52px;margin:0 auto 12px;display:grid;place-items:center;border-radius:16px;background:#dcfce7;color:#166534;font-size:24px;font-weight:900}.callback-empty h2{margin:0 0 5px}.callback-scope{display:flex;gap:8px}.callback-time-preview{margin-top:0}
@media(max-width:1100px){.callback-card-main{grid-template-columns:1fr 1fr}.callback-time-block.customer-time,.callback-time-block.agent-time{grid-column:span 1}.callback-arrow{display:none}.callback-meta{grid-column:1 / -1}.callback-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.callback-page-head{display:block}.callback-scope{margin-top:12px}.callback-stats{grid-template-columns:1fr 1fr}.callback-card-main{grid-template-columns:1fr;padding:14px}.callback-time-block.customer-time,.callback-time-block.agent-time{grid-column:auto}.callback-meta{grid-template-columns:1fr}.result-choice-grid,.reschedule-grid{grid-template-columns:1fr}.callback-actions{padding:8px 10px}.callback-action-form button{max-width:none}}
@media(max-width:480px){.callback-stats{grid-template-columns:1fr}.callback-page-head h1{font-size:23px}}

/* =========================================================
   CALLBACK COMMAND CENTER V2 — COMPACT QUEUE + FOCUSED WORKSPACE
   ========================================================= */
.callback-v2 .callback-page-head{margin-bottom:16px}
.callback-queue-panel{background:#fff;border:1px solid #dfe5ed;border-radius:18px;overflow:hidden;box-shadow:0 6px 20px rgba(15,23,42,.045)}
.callback-queue-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #edf1f5;background:linear-gradient(180deg,#fff,#fbfcfe)}
.callback-queue-head h2{margin:3px 0 4px;font-size:19px;color:#12213a}
.callback-queue-head p{margin:0;color:#667085;font-size:12px;line-height:1.45}
.queue-count{font-size:12px;font-weight:800;color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:7px 11px;white-space:nowrap}
.callback-list{display:grid}
.callback-list-row{display:grid;grid-template-columns:150px minmax(190px,1.25fr) minmax(180px,1fr) minmax(150px,.8fr) minmax(120px,.7fr) 125px;gap:14px;align-items:center;padding:14px 20px;text-decoration:none;color:inherit;border-bottom:1px solid #edf1f5;background:#fff;transition:background .15s ease,box-shadow .15s ease}
.callback-list-row:last-child{border-bottom:0}
.callback-list-row:hover{background:#f8fbff;box-shadow:inset 3px 0 0 #1769e0}
.callback-list-row.selected{background:#eff6ff;box-shadow:inset 3px 0 0 #1769e0}
.callback-list-row.missed{box-shadow:inset 3px 0 0 #dc2626}
.callback-list-row.due{box-shadow:inset 3px 0 0 #d97706}
.queue-priority span{display:block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#667085}
.queue-priority strong{display:block;margin-top:3px;font-size:12px;color:#172033}
.callback-list-row.missed .queue-priority span{color:#b91c1c}
.callback-list-row.due .queue-priority span{color:#a16207}
.queue-customer{display:flex;gap:10px;align-items:center;min-width:0}
.callback-avatar.small{width:38px;height:38px;flex-basis:38px;border-radius:11px;font-size:15px}
.queue-customer strong,.queue-customer span,.queue-time strong,.queue-time span,.queue-agent strong,.queue-agent span,.queue-case strong,.queue-case span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.queue-customer strong{font-size:13px;color:#172033}.queue-customer span,.queue-time span,.queue-agent span,.queue-case span{font-size:10px;color:#667085;margin-top:2px}
.queue-time strong{font-size:12px;color:#172033}.queue-agent strong,.queue-case strong{font-size:12px;color:#172033}
.queue-open{justify-self:end;color:#1769e0;font-size:11px;font-weight:850;white-space:nowrap}
.callback-workspace{background:#fff;border:1px solid #dfe5ed;border-radius:18px;margin-bottom:16px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.callback-workspace.missed{border-color:#fecaca}.callback-workspace.due{border-color:#f2cf75}
.callback-workspace-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:20px;border-bottom:1px solid #edf1f5;background:linear-gradient(180deg,#fff,#fbfcfe)}
.back-link{display:inline-block;margin-bottom:12px;color:#1769e0;text-decoration:none;font-size:11px;font-weight:800}.back-link:hover{text-decoration:underline}
.callback-workspace-head h2{margin:3px 0 3px;font-size:24px;color:#12213a}.callback-workspace-head p{margin:0;color:#667085;font-size:12px}
.callback-workspace-status{text-align:right;display:grid;gap:3px;justify-items:end}.callback-workspace-status .queue-priority-badge{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:900;letter-spacing:.07em;background:#e8f1ff;color:#2457a6}.callback-workspace.due .queue-priority-badge{background:#fef3c7;color:#92400e}.callback-workspace.missed .queue-priority-badge{background:#fee2e2;color:#991b1b}.callback-workspace-status strong{font-size:14px;color:#172033}.callback-workspace-status span:last-child{font-size:11px;color:#667085}
.callback-time-pair{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:12px;align-items:stretch;padding:16px 20px;background:#f8fafc;border-bottom:1px solid #edf1f5}.callback-time-pair>div:not(.time-pair-arrow){background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.callback-time-pair>div:first-child{background:#f7fbff;border-color:#cfe1fb}.callback-time-pair strong{display:block;margin-top:5px;font-size:15px;color:#172033}.callback-time-pair span:last-child{display:block;margin-top:3px;font-size:11px;color:#667085}.time-pair-arrow{display:grid;place-items:center;color:#1769e0;font-size:23px;font-weight:900}
.callback-workspace-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 20px;border-bottom:1px solid #edf1f5}.callback-workspace-meta>div{background:#fafbfc;border:1px solid #edf1f5;border-radius:10px;padding:9px 11px}.callback-workspace-meta span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#667085}.callback-workspace-meta strong{display:block;margin-top:3px;font-size:12px}.callback-workspace-meta a{color:#1769e0}
.callback-context{margin:14px 20px 0;padding:11px 13px;background:#fffdf3;border:1px solid #f2df9c;border-radius:10px;font-size:12px;color:#475569}.callback-context .eyebrow{margin-bottom:3px;color:#8a4b00}
.callback-work-actions{padding:4px 20px 14px;background:#fbfcfe}.callback-work-actions .callback-action-panel{margin-top:10px}
.callback-closed{padding:16px 20px;background:#f8fafc;color:#667085;font-size:12px;border-top:1px solid #edf1f5}
.callback-v2 .callback-time-preview{margin-top:0}
@media(max-width:1150px){.callback-list-row{grid-template-columns:135px minmax(170px,1.2fr) minmax(165px,1fr) minmax(130px,.8fr) 110px}.queue-case{display:none}}
@media(max-width:850px){.callback-list-row{grid-template-columns:120px 1fr 1fr 110px}.queue-agent{display:none}.callback-workspace-head{display:block}.callback-workspace-status{text-align:left;justify-items:start;margin-top:14px}.callback-workspace-meta{grid-template-columns:1fr 1fr}.callback-time-pair{grid-template-columns:1fr}.time-pair-arrow{min-height:20px;transform:rotate(90deg)}}
@media(max-width:600px){.callback-list-row{grid-template-columns:1fr auto;gap:9px;padding:12px 14px}.queue-priority{grid-column:1 / -1}.queue-time{grid-column:1 / -1}.queue-open{grid-column:2;grid-row:2;align-self:center}.callback-workspace-meta{grid-template-columns:1fr;padding:12px 14px}.callback-time-pair{padding:12px 14px}.callback-workspace-head{padding:15px}.callback-work-actions{padding:4px 10px 12px}.callback-context{margin-left:14px;margin-right:14px}}


/* CALLBACK COMMAND CENTER V3 — progressive disclosure + guided creation */
.callback-create-shell{margin-bottom:16px}.callback-create-panel{background:#fff;border:1px solid #dfe7f1;border-radius:16px;box-shadow:0 6px 20px rgba(15,23,42,.045);overflow:hidden}.callback-create-panel>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:16px 18px}.callback-create-panel>summary::-webkit-details-marker{display:none}.callback-create-panel>summary:hover{background:#f8fbff}.callback-create-panel[open]>summary{border-bottom:1px solid #edf1f5;background:#fbfdff}.create-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#e8f1ff;color:#1769e0;font-size:22px;font-weight:800}.callback-create-panel>summary strong,.callback-create-panel>summary small{display:block}.callback-create-panel>summary strong{font-size:14px;color:#172033}.callback-create-panel>summary small{font-size:11px;color:#667085;margin-top:2px}.callback-create-form{padding:20px;display:grid;gap:18px}.create-step{display:flex;align-items:flex-start;gap:11px}.step-number{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#e8f1ff;color:#1769e0;font-weight:900;font-size:12px}.create-step h3{margin:1px 0 2px;font-size:14px;color:#172033}.create-step p{margin:0;font-size:11px;color:#667085}.callback-create-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-left:39px}.callback-create-grid label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#475569}.callback-create-grid input,.callback-create-grid select,.callback-create-grid textarea{width:100%}.callback-create-grid textarea{min-height:92px;resize:vertical}.callback-create-grid .full-width{grid-column:1 / -1}.callback-create-time-grid{grid-template-columns:1fr 1fr 1.35fr}.field-hint{font-weight:500;color:#98a2b3}.callback-create-preview{margin-left:39px;display:grid;grid-template-columns:1fr 36px 1fr;gap:10px;align-items:center;padding:12px;border:1px solid #dbe7f5;border-radius:12px;background:#f7fbff}.callback-create-preview>div{background:#fff;border:1px solid #dce7f2;border-radius:10px;padding:10px}.callback-create-preview small,.callback-create-preview strong,.callback-create-preview span{display:block}.callback-create-preview small{font-size:9px;letter-spacing:.07em;color:#667085;font-weight:800}.callback-create-preview strong{margin-top:4px;font-size:13px;color:#172033}.callback-create-preview span{margin-top:2px;font-size:10px;color:#667085}.callback-create-preview .preview-arrow{display:grid;place-items:center;background:transparent;border:0;color:#1769e0;font-size:20px;font-weight:900}.callback-create-preview:not(.ready){display:block}.callback-create-preview:not(.ready)>strong{display:block}.callback-create-preview:not(.ready)>span{display:block;margin-top:3px}.create-review{margin-left:39px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border-radius:12px;background:#f8fafc;border:1px solid #e7edf4}.create-review strong,.create-review span{display:block}.create-review strong{font-size:13px;color:#172033}.create-review span{font-size:11px;color:#667085;margin-top:2px}.callback-action-panel[open] summary{background:#f8fbff;border-bottom:1px solid #edf1f5}.callback-action-panel:not([open]) summary{border-radius:12px}.callback-action-panel summary{min-height:58px}.callback-action-panel summary::after{content:'＋';margin-left:auto;color:#667085;font-weight:800}.callback-action-panel[open] summary::after{content:'−'}.callback-work-actions{display:grid;gap:9px}.callback-work-actions .callback-action-panel{margin:0}.callback-work-actions .callback-action-form{padding:16px}.callback-work-actions .result-choice-grid{margin-bottom:4px}.callback-work-actions .reschedule-grid{margin-bottom:2px}.callback-time-preview.ready{display:grid;grid-template-columns:1fr 36px 1fr;gap:10px;align-items:center;padding:12px;border:1px solid #dbe7f5;border-radius:12px;background:#f7fbff}.callback-time-preview.ready>div{background:#fff;border:1px solid #dce7f2;border-radius:10px;padding:10px}.callback-time-preview.ready small,.callback-time-preview.ready strong,.callback-time-preview.ready span{display:block}.callback-time-preview.ready small{font-size:9px;letter-spacing:.07em;color:#667085;font-weight:800}.callback-time-preview.ready strong{margin-top:4px;font-size:13px;color:#172033}.callback-time-preview.ready span{margin-top:2px;font-size:10px;color:#667085}.callback-time-preview.ready .preview-arrow{display:grid;place-items:center;background:transparent;border:0;color:#1769e0;font-size:20px;font-weight:900}.callback-time-preview:not(.ready){padding:11px;border:1px dashed #cbd5e1;border-radius:10px;background:#fafbfc}.callback-time-preview:not(.ready) strong,.callback-time-preview:not(.ready) span{display:block}.callback-time-preview:not(.ready) span{margin-top:3px;font-size:11px;color:#667085}.callback-create-form .btn-xl,.callback-work-actions .btn-xl{min-height:44px;padding:10px 18px}
@media(max-width:850px){.callback-create-grid,.callback-create-time-grid{grid-template-columns:1fr 1fr}.callback-create-preview{grid-template-columns:1fr}.callback-create-preview .preview-arrow{min-height:24px;transform:rotate(90deg)}.create-review{display:block}.create-review .btn-xl{width:100%;margin-top:12px}.callback-time-preview.ready{grid-template-columns:1fr}.callback-time-preview.ready .preview-arrow{min-height:24px;transform:rotate(90deg)}}
@media(max-width:600px){.callback-create-form{padding:14px}.callback-create-grid,.callback-create-time-grid{grid-template-columns:1fr;padding-left:0}.callback-create-preview,.create-review{margin-left:0}.callback-create-panel>summary{padding:14px}.callback-work-actions .callback-action-form{padding:12px}.callback-work-actions .result-choice-grid{grid-template-columns:1fr}.callback-time-preview.ready{padding:10px}}

/* Callback V3.1 — quarter-hour quick scheduling */
.quick-time-picker{margin:0 0 4px 39px;padding:12px;border:1px solid #dbe7f5;border-radius:12px;background:#f8fbff}
.quick-time-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.quick-time-head strong,.quick-time-head span{display:block}.quick-time-head strong{font-size:12px;color:#172033}.quick-time-head span{font-size:10px;color:#667085;margin-top:2px}
.quick-time-custom{background:#fff!important;color:#1769e0!important;border:1px solid #b9d2f5!important;border-radius:9px!important;padding:7px 10px!important;font-size:11px!important}
.quick-time-custom.active{background:#1769e0!important;color:#fff!important}
.quick-time-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.quick-time-slot{min-height:36px;padding:7px 5px!important;background:#fff!important;color:#172033!important;border:1px solid #d7e1ed!important;border-radius:8px!important;font-size:11px!important;font-weight:750!important}
.quick-time-slot:hover{border-color:#1769e0!important;background:#eff6ff!important;color:#1769e0!important}
.quick-time-slot.selected{background:#e8f1ff!important;border-color:#1769e0!important;color:#1557b0!important;box-shadow:0 0 0 2px #bfdbfe}
.time-picker-field .time-picker-hint{display:block;font-size:10px;font-weight:500;color:#667085;margin-top:2px}
.quick-time-picker + .callback-time-preview{margin-top:8px}
.reschedule-panel .quick-time-picker{margin-left:0}
@media(max-width:850px){.quick-time-picker{margin-left:0}.quick-time-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:500px){.quick-time-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-time-head{align-items:flex-start;flex-direction:column}.quick-time-custom{width:100%}}

/* =========================================================
   V4IT PULSE UNIFIED CARD SYSTEM — CORE OPERATIONS
   ========================================================= */
:root{
    --pulse-navy:#0b1f3a;
    --pulse-blue:#1769e0;
    --pulse-blue-soft:#e8f1ff;
    --pulse-bg:#f3f6fa;
    --pulse-border:#dfe7f1;
    --pulse-text:#172033;
    --pulse-muted:#667085;
    --pulse-green:#0f7a4d;
    --pulse-amber:#a45d00;
    --pulse-red:#b42318;
}
body{background:var(--pulse-bg);color:var(--pulse-text)}
main{max-width:1320px;padding:22px 24px 40px}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:8px 0 18px}
.page-intro h1{margin:3px 0 5px;font-size:30px;letter-spacing:-.025em;color:#102a56}
.page-intro p{margin:0;color:var(--pulse-muted);font-size:13px;line-height:1.55;max-width:820px}
.eyebrow{display:block;font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.12em;color:#667085;text-transform:uppercase}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.section-head h2{margin:2px 0 3px;font-size:19px;letter-spacing:-.015em;color:#172033}
.section-head>div>span:not(.eyebrow){display:block;color:var(--pulse-muted);font-size:11px;line-height:1.45}
.section-tag{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:6px 9px;border-radius:999px;background:#eef4fb;color:#315b91;border:1px solid #d9e5f3;font-size:10px;font-weight:850;letter-spacing:.04em}
.clean-panel{background:#fff;border:1px solid var(--pulse-border);border-radius:16px;box-shadow:0 6px 22px rgba(15,23,42,.045)}
.queue-shell{padding:17px;margin-bottom:20px}
.case-queue-list{display:grid;gap:10px}
.case-queue-card{background:#fff;border:1px solid #e0e7ef;border-radius:14px;padding:13px 14px;box-shadow:0 3px 12px rgba(15,23,42,.035);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.case-queue-card:hover{border-color:#bfd3eb;box-shadow:0 7px 20px rgba(15,23,42,.06);transform:translateY(-1px)}
.case-queue-card.is-near-limit{border-left:4px solid #d88900}
.case-queue-card.is-over-limit{border-left:4px solid #dc2626;background:#fffafa}
.queue-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.queue-card-top>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.case-number{font-weight:900;color:#1769e0;text-decoration:none;letter-spacing:.01em}
a.case-number:hover{text-decoration:underline}
.queue-priority,.type-chip{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.queue-priority{background:#eef2f7;color:#475569}
.queue-priority.urgent{background:#fee2e2;color:#991b1b}.queue-priority.high{background:#ffedd5;color:#9a3412}.queue-priority.medium{background:#e0ecff;color:#1e4f9b}.queue-priority.low{background:#ecfdf3;color:#166534}
.queue-card-alert{font-size:9px;font-weight:900;color:#b42318;letter-spacing:.07em}
.queue-card-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center}
.queue-card-customer,.customer-result-main,.case-register-customer,.team-member-head{display:flex;align-items:center;gap:11px;min-width:0}
.avatar{flex:0 0 42px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#e8f1ff;color:#2457a6;font-weight:900;font-size:16px}
.queue-card-customer strong,.queue-card-customer span,.customer-result-main strong,.customer-result-main span,.case-register-customer strong,.case-register-customer span,.team-member-head strong,.team-member-head span{display:block}
.queue-card-customer strong,.customer-result-main strong,.case-register-customer strong,.team-member-head strong{font-size:14px;color:#172033}
.queue-card-customer span,.customer-result-main span,.case-register-customer span,.team-member-head span{font-size:11px;color:#667085;margin-top:3px;line-height:1.45;overflow-wrap:anywhere}
.queue-card-status{display:grid;justify-items:end;gap:5px;text-align:right}
.queue-card-tech{font-size:10px;font-weight:750;color:#667085}
.status-chip{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:4px 9px;border-radius:999px;font-size:9px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}
.status-chip.pending{background:#fff7ed;color:#9a3412}.status-chip.accepted{background:#e8f1ff;color:#1e4f9b}.status-chip.active{background:#dcfce7;color:#166534}.status-chip.waiting{background:#fef3c7;color:#92400e}.status-chip.closed{background:#e8f5ee;color:#166534}
.queue-card-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid #edf1f5}
.queue-card-metrics>div{min-width:0}.queue-card-metrics span,.case-register-meta span,.team-metrics span{display:block;color:#8a94a6;font-size:9px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.queue-card-metrics strong,.case-register-meta strong,.team-metrics strong{display:block;margin-top:4px;font-size:11px;color:#253046;overflow-wrap:anywhere}
.queue-card-actions{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid #edf1f5}
.button-link-light{background:#fff!important;color:#1769e0!important;border:1px solid #c9d9ee!important}
.queue-assignment-fields{display:flex;gap:7px;align-items:center;flex:1}.queue-assignment-fields select,.queue-assignment-fields input{min-width:0;height:36px}.queue-assignment-fields select{width:180px}.queue-assignment-fields input{flex:1;min-width:220px}.queue-assignment-fields button{height:36px;white-space:nowrap}
.empty-state{padding:28px 18px;text-align:center;border:1px dashed #cbd7e5;border-radius:13px;background:#f9fbfd;color:#667085}.empty-state .empty-icon{margin:0 auto 8px}.empty-state strong,.empty-state span{display:block}.empty-state strong{font-size:14px;color:#334155}.empty-state span{font-size:11px;margin-top:3px}
.empty-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e8f1ff;color:#1769e0;font-weight:900}
.section-spacer{margin:25px 0 12px}.section-spacer h2{margin:3px 0}
.lookup-card,.case-create-card,.search-results,.case-list-section,.team-performance{padding:17px;margin-bottom:18px}
.searchbar-card{margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.searchbar-card input{width:100%;min-width:0;height:42px}.searchbar-card button{height:42px;padding:0 16px}
.unified-case-form{max-width:none;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 0 14px}.unified-case-form label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#475569}.unified-case-form input,.unified-case-form select,.unified-case-form textarea{width:100%;min-height:40px}.unified-case-form textarea{min-height:150px}.unified-case-form .full-width{grid-column:1 / -1}.form-review{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;background:#f8fafc;border:1px solid #e7edf4;border-radius:12px}.form-review strong,.form-review span{display:block}.form-review strong{font-size:13px}.form-review span{font-size:11px;color:#667085;margin-top:2px}
.customer-result-list,.case-register-list,.team-performance-grid{display:grid;gap:9px}.customer-result-card,.case-register-card,.team-member-card{background:#fff;border:1px solid #e1e8f0;border-radius:13px;padding:13px;box-shadow:0 2px 10px rgba(15,23,42,.025)}.customer-result-card{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(140px,.5fr) minmax(260px,1.4fr);gap:16px;align-items:center}.customer-result-case{display:flex;align-items:center;justify-content:space-between;gap:8px}.customer-result-case a{display:block;margin-top:3px;color:#1769e0;font-weight:850;text-decoration:none;font-size:13px}.customer-result-issue span,.customer-result-issue small{display:block}.customer-result-issue span{font-size:12px;color:#334155;line-height:1.45}.customer-result-issue small{font-size:10px;color:#8a94a6;margin-top:5px}
.case-register-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px 15px}.case-register-head{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px}.case-register-head>div{display:flex;align-items:center;gap:8px}.type-chip{background:#f1f5f9;color:#64748b}.case-register-meta{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding-top:10px;border-top:1px solid #edf1f5}.case-register-action{display:flex;justify-content:flex-end;align-items:center}.case-register-action .button-link{margin:0}
.team-performance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-member-head{justify-content:space-between}.team-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid #edf1f5}
.btn-primary{background:#1769e0!important;color:#fff!important;border:0!important;border-radius:9px!important}.btn-secondary{background:#fff!important;color:#1e293b!important;border:1px solid #cbd5e1!important;border-radius:9px!important}
.stat{border:1px solid #e0e7ef;border-radius:14px;box-shadow:0 4px 15px rgba(15,23,42,.035)}.grid{gap:10px}
.quick-time-picker{background:#f8fbff}.quick-time-custom.active{background:#1769e0!important;color:#fff!important}.time-picker-field input.custom-time-active{border-color:#1769e0;box-shadow:0 0 0 2px #dbeafe}.quick-time-slot{min-height:38px}
@media(max-width:900px){main{padding:17px 14px 30px}.customer-result-card{grid-template-columns:1fr 1fr}.customer-result-issue{grid-column:1 / -1}.team-performance-grid{grid-template-columns:1fr}.case-register-meta{grid-template-columns:1fr 1fr}.queue-card-main{grid-template-columns:1fr}.queue-card-status{justify-items:start;text-align:left}.queue-assignment-fields{flex-wrap:wrap}.queue-assignment-fields select{flex:1}.queue-assignment-fields input{min-width:180px}}
@media(max-width:600px){main{padding:14px 10px 25px}.page-intro{display:block}.page-intro h1{font-size:25px}.section-head{display:block}.section-tag{margin-top:8px}.queue-shell,.lookup-card,.case-create-card,.search-results,.case-list-section,.team-performance{padding:13px}.queue-card-metrics{grid-template-columns:1fr 1fr}.queue-card-actions{display:block}.queue-card-actions .button-link{display:inline-flex;margin-bottom:8px}.queue-assignment-fields{display:grid;grid-template-columns:1fr;width:100%}.queue-assignment-fields select,.queue-assignment-fields input,.queue-assignment-fields button{width:100%;min-width:0}.searchbar-card{grid-template-columns:1fr}.unified-case-form{grid-template-columns:1fr}.unified-case-form .full-width{grid-column:auto}.form-review{display:block}.form-review .btn-xl{margin-top:10px;width:100%}.customer-result-card{grid-template-columns:1fr}.customer-result-case{align-items:flex-start}.case-register-card{display:block}.case-register-meta{grid-template-columns:1fr 1fr;margin-top:10px}.case-register-action{margin-top:12px;justify-content:flex-start}.team-metrics{grid-template-columns:1fr 1fr}.team-member-head{align-items:flex-start;display:block}.team-member-head .status-chip{margin-top:8px}.hero-main{align-items:flex-start;display:block}.case-summary-grid{grid-template-columns:1fr 1fr}}


/* =========================================================
   V4IT PULSE UI POLISH V3.3
   One visual language across queue, cases and callbacks.
   ========================================================= */
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.005em}
main{max-width:1320px;padding:24px 24px 44px}
.page-intro{margin:6px 0 18px;align-items:center}
.page-intro h1,.callback-page-head h1{font-size:30px;font-weight:780;letter-spacing:-.035em;line-height:1.08;color:#102a56}
.page-intro p,.callback-page-head p{font-size:13px;color:#64748b}
.section-head h2,.callback-queue-head h2{font-size:19px;font-weight:760;letter-spacing:-.02em}
.clean-panel,.queue-shell,.lookup-card,.case-create-card,.search-results,.case-list-section,.team-performance,.callback-create-panel,.callback-workspace,.callback-queue-panel{border-radius:16px;box-shadow:0 8px 28px rgba(15,23,42,.055)}
.queue-shell{padding:18px;margin-bottom:22px}
.case-queue-card,.customer-result-card,.case-register-card,.team-member-card{border-radius:14px;box-shadow:0 3px 14px rgba(15,23,42,.035)}
.dashboard-callback-heading{margin:28px 0 12px;padding:0 2px;display:flex;align-items:flex-end}
.dashboard-callback-heading h2{margin:3px 0 4px;font-size:21px;font-weight:760;letter-spacing:-.025em;color:#172033}
.dashboard-callback-heading p{margin:0;color:#64748b;font-size:12px}
.callback-page{margin-top:0}
.callback-page-head{margin:0 0 18px;align-items:center}
.callback-page-head h1{margin:3px 0 5px}
.callback-page-head p{line-height:1.55;max-width:820px}
.callback-stats{gap:12px;margin-bottom:16px}
.callback-stat{min-height:82px;padding:14px 16px;border-radius:14px}
.callback-stat span{font-size:11px}
.callback-stat strong{font-size:27px;font-weight:780}
.callback-create-panel>summary{padding:17px 18px}
.callback-create-form{padding:22px}
.callback-create-grid{gap:14px}
.field-help{display:block;font-size:10px!important;line-height:1.45;color:#718096!important;font-weight:500!important;margin-top:-1px}
.field-help-error{color:#b42318!important}
input.field-invalid,select.field-invalid,textarea.field-invalid{border-color:#dc2626!important;box-shadow:0 0 0 3px rgba(220,38,38,.10)!important;background:#fffafa}
input.field-valid{border-color:#84b8a0}
.case-create-card{padding:18px}
.case-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:18px;align-items:stretch;margin:0 0 14px}
.case-customer-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;align-content:start;padding:2px}
.case-customer-fields label,.issue-field{display:grid;gap:6px;font-size:11px;font-weight:800;color:#475569}
.case-customer-fields input,.case-customer-fields select,.issue-field textarea{width:100%;min-height:42px}
.issue-field{min-height:100%;padding:15px;border:1px solid #e2e8f0;border-radius:13px;background:#f9fbfd}
.issue-field textarea{min-height:218px;resize:vertical;background:#fff}
.form-review{padding:14px 15px;border-radius:13px}
.form-review .btn-xl{min-width:150px}
.searchbar-card input{height:44px}
.case-register-list{gap:11px}
.case-register-card{padding:15px}
.callback-create-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick-time-picker{margin-left:39px;border-radius:13px}
@media(max-width:900px){main{padding:19px 16px 34px}.case-form-grid{grid-template-columns:1fr}.issue-field{min-height:0}.issue-field textarea{min-height:170px}.callback-create-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){main{padding:15px 11px 28px}.page-intro h1,.callback-page-head h1{font-size:25px}.dashboard-callback-heading{margin-top:23px}.case-customer-fields{grid-template-columns:1fr}.case-form-grid{gap:12px}.callback-create-grid{grid-template-columns:1fr}.quick-time-picker{margin-left:0}}

/* =========================================================
   V4IT PULSE UI CONSOLIDATION v3.5
   One visual language for every role and workspace.
   ========================================================= */
:root{
  --pulse-bg:#f3f6fa;
  --pulse-surface:#ffffff;
  --pulse-border:#dfe7f1;
  --pulse-border-strong:#cbd8e6;
  --pulse-text:#172033;
  --pulse-muted:#667085;
  --pulse-navy:#0b1f3a;
  --pulse-blue:#1769e0;
  --pulse-blue-soft:#e8f1ff;
  --pulse-green:#0f7a4d;
  --pulse-amber:#a45d00;
  --pulse-red:#b42318;
}

html{background:var(--pulse-bg)}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--pulse-bg);color:var(--pulse-text);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
main{width:100%;max-width:1360px;margin:0 auto;padding:26px 28px 48px}
h1,h2,h3,h4,p{overflow-wrap:anywhere}
button,input,select,textarea{font-family:inherit}

/* ----- shared page rhythm ----- */
.page-intro{margin:4px 0 18px;min-height:64px}
.page-intro h1,.callback-page-head h1{font-size:31px;line-height:1.08;font-weight:780;letter-spacing:-.035em;color:#102a56}
.page-intro p,.callback-page-head p{font-size:13px;line-height:1.55;color:var(--pulse-muted)}
.clean-panel,.lookup-card,.case-create-card,.case-list-section,.queue-shell,.team-performance,.dashboard-filter-card,.settings-page .card,.callback-create-panel,.callback-queue-panel,.callback-workspace,.callback-empty{background:var(--pulse-surface);border:1px solid var(--pulse-border);border-radius:16px;box-shadow:0 8px 28px rgba(15,23,42,.055)}
.section-head{margin-bottom:16px}
.section-head h2{font-size:20px;font-weight:760;letter-spacing:-.02em;color:#172033}
.section-head>div>span:not(.eyebrow){font-size:11px;color:var(--pulse-muted);line-height:1.5}
.eyebrow{font-size:10px;font-weight:850;letter-spacing:.12em;color:#667085}
.section-tag{font-size:10px}

/* ----- Dashboard: make admin and personal dashboards feel identical ----- */
.dashboard-filter-card{padding:18px;margin-bottom:18px}
.dashboard-filter-card .report-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto;gap:10px;align-items:end;margin:0}
.dashboard-filter-card .report-filters label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#475569}
.dashboard-filter-card .report-filters input{height:42px;width:100%}
.dashboard-filter-card .report-filters button,.dashboard-filter-card .report-filters .button-link{height:42px;display:inline-flex;align-items:center;justify-content:center}
.dashboard-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.dashboard-stat{min-height:104px;background:#fff;border:1px solid var(--pulse-border);border-radius:15px;padding:15px 17px;box-shadow:0 5px 18px rgba(15,23,42,.04);display:flex;flex-direction:column;justify-content:space-between}
.dashboard-stat span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:#718096}
.dashboard-stat strong{font-size:29px;line-height:1;font-weight:780;letter-spacing:-.025em;color:#102a56}
.dashboard-page-intro{margin-bottom:16px}
.dashboard-page-intro + .queue-shell{margin-bottom:0}
.dashboard-callback-heading{max-width:1360px;margin:28px 0 12px;padding:0 2px}
.dashboard-callback-heading h2{font-size:21px;color:#172033;font-weight:760}
.dashboard-callback-heading p{font-size:12px;color:var(--pulse-muted)}

/* ----- Queue / My Open Cases: protect card styling even after live refresh ----- */
.queue-shell{padding:18px;margin-bottom:20px}
.case-queue-list{display:grid!important;gap:10px!important}
.case-queue-card{display:block!important;background:#fff!important;border:1px solid #dfe7ef!important;border-radius:14px!important;padding:14px 15px!important;box-shadow:0 3px 14px rgba(15,23,42,.035)!important}
.case-queue-card .queue-card-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:11px!important}
.case-queue-card .queue-card-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important}
.case-queue-card .queue-card-customer{display:flex!important;align-items:center!important;gap:11px!important}
.case-queue-card .queue-card-customer strong{font-size:14px!important;color:#172033!important}
.case-queue-card .queue-card-customer span{font-size:11px!important;color:#667085!important;margin-top:3px!important}
.case-queue-card .queue-card-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important;padding-top:11px!important;border-top:1px solid #edf1f5!important}
.case-queue-card .queue-card-actions{display:flex!important;align-items:center!important;gap:8px!important;margin-top:12px!important;padding-top:11px!important;border-top:1px solid #edf1f5!important}
.case-queue-card form.inline{display:block!important;flex:1!important;margin:0!important}
.case-queue-card .queue-assignment-fields{display:grid!important;grid-template-columns:minmax(150px,190px) minmax(180px,1fr) auto!important;width:100%!important}

/* ----- Cases ----- */
.case-create-card{padding:19px;margin-bottom:18px}
.case-create-form{display:block!important;margin:0!important;padding:0!important}
.case-form-grid{display:grid!important;grid-template-columns:minmax(0,.95fr) minmax(0,1.45fr)!important;gap:20px!important;align-items:stretch!important;margin:0 0 15px!important}
.case-customer-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:13px!important;align-content:start!important;padding:0!important}
.case-customer-fields label,.issue-field{display:grid!important;gap:6px!important;font-size:11px!important;font-weight:800!important;color:#475569!important}
.case-customer-fields input,.case-customer-fields select{width:100%!important;min-height:42px!important}
.issue-field{min-height:100%!important;padding:16px!important;border:1px solid #dfe7ef!important;border-radius:14px!important;background:#f8fbff!important}
.issue-field textarea{width:100%!important;min-height:244px!important;resize:vertical!important;background:#fff!important}
.issue-field .field-help{font-weight:500!important}
.case-create-form .form-review{margin:0!important}
.case-list-section{padding:18px;margin-bottom:18px}
.case-register-list{display:grid!important;gap:11px!important}
.case-register-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:11px 15px!important;background:#fff!important;border:1px solid #dfe7ef!important;border-radius:14px!important;padding:15px!important;box-shadow:0 3px 14px rgba(15,23,42,.035)!important}
.case-register-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}

/* ----- Callback Command Center ----- */
.callback-page{max-width:none}
.callback-create-panel{overflow:hidden}
.callback-create-panel>summary{padding:17px 19px!important}
.callback-create-form{padding:21px!important;display:grid!important;gap:18px!important}
.callback-create-grid{padding-left:39px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important}
.callback-create-time-grid{grid-template-columns:1fr 1fr 1.25fr!important}
.callback-create-grid label{display:grid!important;gap:6px!important;min-width:0!important}
.callback-create-grid input,.callback-create-grid select,.callback-create-grid textarea{width:100%!important;min-width:0!important}
.callback-create-grid .full-width{grid-column:1 / -1!important}
.quick-time-picker{margin-left:39px!important;padding:13px!important;border:1px solid #dbe7f5!important;border-radius:13px!important;background:#f7fbff!important}
.quick-time-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important}
.quick-time-head strong,.quick-time-head span{display:block}
.quick-time-head strong{font-size:12px!important;color:#172033!important}
.quick-time-head span{font-size:10px!important;color:#667085!important;margin-top:2px!important}
.quick-time-grid{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important}
.quick-time-slot{min-height:38px!important;padding:7px 5px!important;border:1px solid #cbdbea!important;border-radius:9px!important;background:#fff!important;color:#1e4f9b!important;font-size:11px!important;font-weight:750!important;cursor:pointer!important}
.quick-time-slot:hover{border-color:#1769e0!important;background:#eff6ff!important}
.quick-time-slot.selected{background:#e8f1ff!important;border-color:#1769e0!important;color:#1557b0!important;box-shadow:0 0 0 2px #bfdbfe!important}
.quick-time-custom{min-height:36px!important;padding:7px 11px!important;background:#fff!important;color:#1769e0!important;border:1px solid #bcd0e8!important;border-radius:9px!important;font-size:11px!important;font-weight:800!important}
.quick-time-custom.active{background:#1769e0!important;color:#fff!important;border-color:#1769e0!important}
.callback-create-preview,.callback-time-preview{margin-left:39px!important}
.callback-create-preview.ready,.callback-time-preview.ready{display:grid!important;grid-template-columns:1fr 36px 1fr!important;gap:10px!important;align-items:center!important;padding:12px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:#f7fbff!important}
.callback-create-preview:not(.ready),.callback-time-preview:not(.ready){display:block!important;padding:12px!important;border:1px dashed #cbd5e1!important;border-radius:12px!important;background:#fafbfc!important}
.callback-create-preview>div,.callback-time-preview>div{background:#fff;border:1px solid #dce7f2;border-radius:10px;padding:10px}
.callback-create-preview strong,.callback-create-preview span,.callback-time-preview strong,.callback-time-preview span{display:block}
.create-review{margin-left:39px!important}

/* ----- Settings / Admin + Super Admin ----- */
.settings-page{display:block}
.settings-intro{margin-bottom:18px}
.settings-category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:18px!important}
.settings-page .stat{background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:14px!important;padding:15px!important;box-shadow:0 4px 15px rgba(15,23,42,.035)!important;min-height:86px!important}
.settings-page .stat b{display:block;font-size:13px;color:#172033;margin-bottom:4px}
.settings-page .stat .muted{font-size:11px;color:#667085;line-height:1.45}
.settings-page>.card{padding:18px!important;margin-bottom:16px!important}
.settings-page>.card h3,.settings-page .card h3{font-size:18px!important;letter-spacing:-.015em!important;color:#172033!important;margin:0 0 5px!important}
.settings-page .card>.muted,.settings-page .card>div.muted{font-size:11px!important;color:#667085!important;line-height:1.5!important}
.settings-page form.inline{display:block!important;margin:0!important}
.settings-page .form{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 12px!important}
.settings-page .form label,.settings-page form.inline>label{display:grid!important;gap:6px!important;font-size:11px!important;font-weight:800!important;color:#475569!important}
.settings-page .form input,.settings-page .form select,.settings-page form.inline input,.settings-page form.inline select{width:100%!important;min-height:40px!important}
.settings-page table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:14px!important;overflow:hidden!important;display:table!important}
.settings-page table th{background:#f7f9fc!important;color:#64748b!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.05em!important;font-weight:850!important;text-align:left!important;padding:11px!important;border-bottom:1px solid var(--pulse-border)!important}
.settings-page table td{padding:11px!important;border-bottom:1px solid #edf1f5!important;font-size:12px!important;color:#334155!important;vertical-align:top!important}
.settings-page table tr:last-child td{border-bottom:0!important}
.settings-page table .card{margin:5px 0!important;background:#f8fbff!important;border:1px solid #dbe7f5!important;box-shadow:none!important}
.settings-page .button-link{display:inline-flex!important;align-items:center!important;justify-content:center!important}
.settings-page button{min-height:40px!important;padding:9px 14px!important;border-radius:9px!important;font-weight:800!important}
.settings-page .settings-category-grid + .card{margin-top:0}

/* ----- Responsive ----- */
@media(max-width:1100px){
  .dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .callback-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .quick-time-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .case-form-grid{grid-template-columns:1fr!important}
  .issue-field textarea{min-height:190px!important}
}
@media(max-width:900px){
  main{padding:20px 16px 36px}
  .dashboard-filter-card .report-filters{grid-template-columns:1fr 1fr}
  .dashboard-filter-card .report-filters button,.dashboard-filter-card .report-filters .button-link{width:100%}
  .case-customer-fields{grid-template-columns:1fr 1fr!important}
  .callback-create-grid,.callback-create-time-grid{grid-template-columns:1fr 1fr!important}
  .quick-time-picker,.callback-create-preview,.callback-time-preview,.create-review{margin-left:0!important}
  .quick-time-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .settings-page .form{grid-template-columns:1fr 1fr!important}
  .settings-page table{display:block!important;overflow-x:auto!important;white-space:nowrap!important}
}
@media(max-width:600px){
  main{padding:16px 11px 28px}
  .page-intro{display:block}
  .page-intro h1,.callback-page-head h1{font-size:25px}
  .dashboard-stat-grid,.settings-category-grid{grid-template-columns:1fr!important}
  .dashboard-filter-card .report-filters,.case-customer-fields,.callback-create-grid,.callback-create-time-grid,.settings-page .form{grid-template-columns:1fr!important}
  .quick-time-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .quick-time-head{align-items:flex-start!important;flex-direction:column!important}
  .quick-time-custom{width:100%!important}
  .case-register-card{display:block!important}
  .case-register-meta{grid-template-columns:1fr 1fr!important}
  .case-queue-card .queue-card-main{grid-template-columns:1fr!important}
  .case-queue-card .queue-card-metrics{grid-template-columns:1fr 1fr!important}
  .case-queue-card .queue-card-actions{display:block!important}
  .case-queue-card .queue-assignment-fields{grid-template-columns:1fr!important}
  .callback-create-preview.ready,.callback-time-preview.ready{grid-template-columns:1fr!important}
  .callback-create-preview .preview-arrow,.callback-time-preview .preview-arrow{min-height:22px;transform:rotate(90deg)}
}

/* =========================================================
   V4IT PULSE V3.6 FINAL UI CONSISTENCY PASS
   Strong final selectors keep live-rendered pages in the same
   card culture across Sales, Team Lead/Admin and Super Admin.
   ========================================================= */
:root{
    --pulse-navy:#0b1f3a;
    --pulse-blue:#1769e0;
    --pulse-text:#12213a;
    --pulse-muted:#64748b;
    --pulse-border:#dfe7f1;
    --pulse-surface:#fff;
    --pulse-bg:#f3f6fa;
}
body{
    font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    background:var(--pulse-bg)!important;
    color:var(--pulse-text)!important;
}
main{max-width:1400px!important;margin:0 auto!important;}
h1,h2,h3,h4,.page-intro h1,.callback-page-head h1{font-family:inherit!important;color:var(--pulse-text)!important;}
.page-intro h1,.callback-page-head h1{font-weight:800!important;letter-spacing:-.035em!important;}
.page-intro p,.callback-page-head p,.field-help,.muted{color:var(--pulse-muted)!important;}

/* Case creation: never collapse into an inline legacy form. */
.case-create-card{padding:20px!important;margin-bottom:18px!important;}
.case-form-grid{display:grid!important;grid-template-columns:minmax(360px,.92fr) minmax(500px,1.45fr)!important;gap:20px!important;align-items:stretch!important;width:100%!important;}
.case-customer-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;align-content:start!important;width:100%!important;}
.case-customer-fields label,.issue-field{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;min-width:0!important;font-size:11px!important;font-weight:800!important;color:#475569!important;}
.case-customer-fields input,.case-customer-fields select,.issue-field textarea{width:100%!important;min-width:0!important;}
.issue-field{height:100%!important;}
.issue-field textarea{height:100%!important;min-height:230px!important;resize:vertical!important;line-height:1.5!important;}
.case-create-form{display:block!important;width:100%!important;}
.form-review{display:grid!important;grid-template-columns:minmax(230px,.55fr) minmax(360px,1.45fr)!important;gap:16px!important;align-items:center!important;width:100%!important;}
.form-review .btn-xl{width:100%!important;min-height:46px!important;}

/* Case register cards: consistent hierarchy and readable metadata. */
.case-register-list{display:grid!important;gap:12px!important;}
.case-register-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px 16px!important;padding:16px!important;background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:14px!important;box-shadow:0 4px 16px rgba(15,23,42,.035)!important;}
.case-register-meta{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;}
.case-register-meta>div{min-width:0!important;padding-top:9px!important;border-top:1px solid #edf1f5!important;}
.case-register-meta strong{overflow-wrap:anywhere!important;}

/* Callback creation/reschedule: one reusable three-column workspace. */
.callback-create-panel{width:100%!important;}
.callback-create-form{display:grid!important;gap:18px!important;padding:20px!important;width:100%!important;}
.callback-create-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;padding-left:39px!important;width:100%!important;}
.callback-create-time-grid{grid-template-columns:1fr 1fr 1.25fr!important;}
.callback-create-grid label{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;min-width:0!important;}
.callback-create-grid input,.callback-create-grid select,.callback-create-grid textarea{width:100%!important;min-width:0!important;}
.quick-time-picker{display:block!important;margin-left:39px!important;padding:14px!important;border:1px solid #dbe7f5!important;border-radius:13px!important;background:#f7fbff!important;visibility:visible!important;opacity:1!important;}
.quick-time-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:11px!important;}
.quick-time-grid{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important;min-height:38px!important;visibility:visible!important;opacity:1!important;}
.quick-time-slot{display:flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;width:100%!important;padding:7px 5px!important;border:1px solid #cbdbea!important;border-radius:9px!important;background:#fff!important;color:#1e4f9b!important;font-size:11px!important;font-weight:800!important;cursor:pointer!important;}
.quick-time-slot.selected{background:#e8f1ff!important;border-color:#1769e0!important;color:#1557b0!important;box-shadow:0 0 0 2px #bfdbfe!important;}
.time-picker-field input.custom-time-active{border-color:#1769e0!important;box-shadow:0 0 0 2px #dbeafe!important;background:#fff!important;}
.callback-create-preview,.callback-time-preview{width:100%!important;}
.callback-create-preview.ready,.callback-time-preview.ready{display:grid!important;grid-template-columns:1fr 36px 1fr!important;gap:10px!important;align-items:center!important;padding:12px!important;border:1px solid #dbe7f5!important;border-radius:12px!important;background:#f7fbff!important;}
.callback-create-preview:not(.ready),.callback-time-preview:not(.ready){display:block!important;padding:12px!important;border:1px dashed #cbd5e1!important;border-radius:12px!important;background:#fafbfc!important;}
.create-review{margin-left:39px!important;display:grid!important;grid-template-columns:minmax(230px,.55fr) minmax(360px,1.45fr)!important;gap:16px!important;align-items:center!important;padding:14px!important;border-radius:12px!important;background:#f8fafc!important;border:1px solid #e7edf4!important;}
.create-review .btn-xl{width:100%!important;min-height:46px!important;}

/* Settings: keep control-center cards visually consistent. */
.settings-page{max-width:none!important;}
.settings-page .settings-category-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:18px!important;}
.settings-page>.card{background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:16px!important;padding:18px!important;margin-bottom:16px!important;box-shadow:0 8px 28px rgba(15,23,42,.045)!important;}
.settings-page table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid var(--pulse-border)!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important;}
.settings-page th{background:#f7f9fc!important;color:#64748b!important;text-transform:uppercase!important;letter-spacing:.05em!important;font-size:10px!important;font-weight:850!important;padding:11px!important;}
.settings-page td{padding:11px!important;border-top:1px solid #edf1f5!important;font-size:12px!important;vertical-align:top!important;}

/* Dashboard / team cards. */
.dashboard-stat-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;}
.dashboard-stat{background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:14px!important;padding:16px!important;box-shadow:0 4px 16px rgba(15,23,42,.035)!important;}
.dashboard-stat span{display:block!important;color:#64748b!important;font-size:11px!important;font-weight:700!important;}
.dashboard-stat strong{display:block!important;margin-top:5px!important;color:var(--pulse-text)!important;font-size:28px!important;font-weight:800!important;}

@media(max-width:1050px){
    .case-form-grid{grid-template-columns:1fr!important;}
    .issue-field textarea{min-height:190px!important;height:auto!important;}
    .callback-create-grid{grid-template-columns:1fr 1fr!important;}
    .quick-time-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
    .dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
    .settings-page .settings-category-grid{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:700px){
    .case-customer-fields,.callback-create-grid,.callback-create-time-grid{grid-template-columns:1fr!important;}
    .quick-time-picker,.create-review{margin-left:0!important;}
    .quick-time-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
    .form-review,.create-review{display:block!important;}
    .form-review .btn-xl,.create-review .btn-xl{width:100%!important;margin-top:10px!important;}
    .callback-create-preview.ready,.callback-time-preview.ready{grid-template-columns:1fr!important;}
    .callback-create-preview .preview-arrow,.callback-time-preview .preview-arrow{min-height:22px!important;transform:rotate(90deg);}
    .settings-page .settings-category-grid{grid-template-columns:1fr!important;}
    .dashboard-stat-grid{grid-template-columns:1fr!important;}
}


/* V4IT Pulse V3.7 — authoritative form alignment and destructive-action UI. */
.case-create-card,.callback-create-panel{overflow:hidden!important;}
.case-create-form{width:100%!important;}
.case-form-grid{grid-template-columns:minmax(390px,.9fr) minmax(0,1.35fr)!important;gap:22px!important;}
.case-customer-fields{padding:14px!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#f8fafc!important;}
.case-customer-fields label{min-width:0!important;}
.case-customer-fields input,.case-customer-fields select{min-height:46px!important;background:#fff!important;}
.issue-field{padding:16px!important;background:#f8fbff!important;border-color:#dbe6f2!important;}
.issue-field textarea{min-height:255px!important;height:255px!important;}
.case-create-form .form-review{margin-top:4px!important;padding:15px 16px!important;background:#f7f9fc!important;border:1px solid #e4ebf3!important;border-radius:14px!important;}
.case-create-form .form-review>div{display:grid!important;gap:3px!important;}
.case-create-form .form-review strong{font-size:13px!important;color:#12213a!important;}
.case-create-form .form-review span{font-size:11px!important;line-height:1.45!important;color:#64748b!important;}
.callback-create-form{padding:24px!important;gap:16px!important;}
.callback-create-form .create-step{display:flex!important;align-items:flex-start!important;gap:12px!important;margin:2px 0 0!important;padding:13px 14px!important;border:1px solid #e4ebf3!important;border-radius:13px!important;background:#fbfcfe!important;}
.callback-create-form .create-step h3{margin:0!important;font-size:14px!important;line-height:1.25!important;}
.callback-create-form .create-step p{margin:3px 0 0!important;font-size:11px!important;color:#64748b!important;}
.callback-create-form .step-number{flex:0 0 28px!important;width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#e8f1ff!important;color:#1769e0!important;font-weight:850!important;}
.callback-create-grid{padding-left:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;}
.callback-create-grid label{font-size:11px!important;font-weight:800!important;color:#475569!important;}
.callback-create-grid input,.callback-create-grid select,.callback-create-grid textarea{min-height:44px!important;background:#fff!important;}
.callback-create-time-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr)!important;}
.quick-time-picker{margin-left:0!important;padding:16px!important;background:#f8fbff!important;border:1px solid #d8e5f2!important;border-radius:14px!important;}
.quick-time-head{margin-bottom:12px!important;}
.quick-time-head strong{font-size:13px!important;color:#12213a!important;}
.quick-time-head span{display:block!important;margin-top:2px!important;font-size:10px!important;color:#64748b!important;}
.quick-time-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;}
.quick-time-slot{min-height:42px!important;font-size:12px!important;border-radius:10px!important;}
.quick-time-custom{min-height:38px!important;padding:8px 12px!important;border:1px solid #b9cce4!important;border-radius:9px!important;background:#fff!important;color:#1769e0!important;font-weight:800!important;cursor:pointer!important;}
.quick-time-custom.active{background:#1769e0!important;color:#fff!important;border-color:#1769e0!important;}
.callback-create-preview,.callback-time-preview{margin-left:0!important;}
.callback-create-preview.ready,.callback-time-preview.ready{min-height:76px!important;}
.callback-create-form .create-review{margin-left:0!important;padding:15px 16px!important;}
.callback-danger-zone{margin-top:14px!important;padding-top:14px!important;border-top:1px solid #f1d1d1!important;display:flex!important;justify-content:flex-end!important;}
.destructive-panel{border-color:#efcaca!important;background:#fffafa!important;}
.btn-danger{background:#b42318!important;color:#fff!important;border-color:#b42318!important;}
.btn-small{padding:7px 10px!important;font-size:11px!important;margin-left:6px!important;}
@media(max-width:1050px){
  .case-form-grid{grid-template-columns:1fr!important;}
  .issue-field textarea{height:210px!important;min-height:210px!important;}
  .callback-create-grid,.callback-create-time-grid{grid-template-columns:1fr 1fr!important;}
  .quick-time-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media(max-width:700px){
  .case-customer-fields,.callback-create-grid,.callback-create-time-grid{grid-template-columns:1fr!important;}
  .quick-time-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .quick-time-head{align-items:flex-start!important;flex-direction:column!important;}
  .quick-time-custom{width:100%!important;}
  .case-create-form .form-review,.callback-create-form .create-review{grid-template-columns:1fr!important;}
}

/* ============================================================
   V4IT PULSE V3.9 CONSOLIDATED ROLE UI LAYER
   ============================================================ */
:root{--pulse-bg:#f3f6fa;--pulse-surface:#fff;--pulse-border:#d9e3ef;--pulse-text:#10213b;--pulse-muted:#667892;--pulse-blue:#1769e0}
html,body{background:var(--pulse-bg);color:var(--pulse-text)}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0}
main{max-width:1320px!important;margin:0 auto!important;padding:28px 30px 60px!important}
.page-intro{display:flex!important;justify-content:space-between!important;gap:24px!important;align-items:flex-end!important;margin:0 0 18px!important}
.page-intro h1{margin:3px 0 7px!important;font-size:32px!important;line-height:1.12!important;letter-spacing:-.025em!important}
.page-intro p{margin:0!important;color:var(--pulse-muted)!important;max-width:760px!important;font-size:13px!important;line-height:1.55!important}
.eyebrow{display:block!important;font-size:10px!important;font-weight:850!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:#60728b!important}
.section-tag,.queue-count,.type-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;border:1px solid #d5e2f1!important;background:#f5f9ff!important;color:#24599b!important;border-radius:999px!important;padding:5px 9px!important;font-size:10px!important;font-weight:800!important}
.clean-panel,.card,.queue-shell,.lookup-card,.case-create-card,.case-list-section,.report-section,.reports-filter-card{background:var(--pulse-surface)!important;border:1px solid var(--pulse-border)!important;border-radius:17px!important;box-shadow:0 8px 26px rgba(15,23,42,.045)!important}
.section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin-bottom:15px!important}
.section-head h2{margin:2px 0 4px!important;font-size:20px!important;letter-spacing:-.015em!important}
.section-head>div>span:not(.eyebrow){font-size:11px!important;color:var(--pulse-muted)!important;line-height:1.45!important}
header .notification-link{width:32px!important;height:32px!important;min-width:32px!important;flex:0 0 32px!important;margin:0 4px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important}
header .notification-bell{display:block!important;line-height:1!important;font-size:18px!important}
header .notification-count{position:absolute!important;top:-3px!important;right:-3px!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:17px!important;height:17px!important;padding:0 4px!important;border-radius:999px!important;background:#ef4444!important;color:#fff!important;font-size:10px!important;font-weight:800!important;line-height:17px!important;border:2px solid #0b2340!important;box-sizing:border-box!important}
header .notification-count:empty{display:none!important}
header .me{display:flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;min-width:0!important}
header .me form.inline{display:inline-flex!important;align-items:center!important;margin:0!important}
header .me .link{white-space:nowrap!important}
.case-create-card{padding:22px!important;overflow:visible!important;margin-bottom:20px!important}.case-create-form{display:block!important;width:100%!important}.case-form-grid{display:grid!important;grid-template-columns:minmax(420px,.82fr) minmax(520px,1.18fr)!important;gap:18px!important;align-items:stretch!important}.case-customer-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;align-content:start!important;background:#f8fbff!important;border:1px solid #dbe7f4!important;border-radius:15px!important;padding:16px!important}.case-customer-fields label,.case-create-form .issue-field{display:grid!important;gap:7px!important;align-content:start!important;font-size:11px!important;font-weight:850!important;color:#41536b!important}.case-customer-fields input,.case-customer-fields select,.case-create-form .issue-field textarea{width:100%!important;box-sizing:border-box!important;min-height:42px!important;border:1px solid #bfd0e4!important;border-radius:9px!important;background:#fff!important;color:#172b46!important;padding:10px 11px!important;font:inherit!important;font-weight:650!important}.case-create-form .issue-field{padding:16px!important;background:#f8fbff!important;border:1px solid #dbe7f4!important;border-radius:15px!important;min-height:100%!important}.case-create-form .issue-field textarea{min-height:255px!important;resize:vertical!important;line-height:1.5!important}.field-help{font-size:10px!important;line-height:1.4!important;color:#63758d!important;font-weight:600!important}.case-create-form .form-review{display:grid!important;grid-template-columns:minmax(250px,.5fr) minmax(320px,1fr)!important;gap:16px!important;align-items:center!important;margin-top:16px!important;padding:15px 16px!important;border:1px solid #dbe7f4!important;border-radius:15px!important;background:#f8fbff!important}.case-create-form .form-review>div{display:grid!important;gap:3px!important}.case-create-form .form-review strong{font-size:13px!important}.case-create-form .form-review span{font-size:11px!important;color:var(--pulse-muted)!important;line-height:1.45!important}.case-create-form .btn-xl{width:100%!important;min-height:48px!important}
.callback-create-shell{margin-bottom:18px!important}.callback-create-panel{background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:17px!important;box-shadow:0 8px 26px rgba(15,23,42,.045)!important;overflow:hidden!important}.callback-create-panel>summary{display:flex!important;align-items:center!important;gap:12px!important;padding:17px 20px!important;border-bottom:1px solid #e6edf5!important;cursor:pointer!important;list-style:none!important}.callback-create-panel>summary::-webkit-details-marker{display:none!important}.create-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;border-radius:10px!important;background:#eaf3ff!important;color:#1769e0!important;font-size:22px!important;font-weight:800!important}.callback-create-form{padding:20px!important}.create-step{display:flex!important;align-items:flex-start!important;gap:11px!important;margin:4px 0 12px!important}.step-number{display:flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;flex:0 0 28px!important;border-radius:50%!important;background:#e9f2ff!important;color:#1769e0!important;font-size:12px!important;font-weight:850!important}.create-step h3{margin:0!important;font-size:16px!important}.create-step p{margin:2px 0 0!important;color:var(--pulse-muted)!important;font-size:11px!important}.callback-create-grid,.callback-create-time-grid,.reschedule-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:0 0 18px!important}.callback-create-grid label,.reschedule-grid label{display:grid!important;gap:7px!important;align-content:start!important;font-size:11px!important;font-weight:850!important;color:#41536b!important}.callback-create-grid input,.callback-create-grid select,.reschedule-grid input,.reschedule-grid select,.callback-field-label textarea{width:100%!important;box-sizing:border-box!important;min-height:42px!important;border:1px solid #bfd0e4!important;border-radius:9px!important;background:#fff!important;color:#172b46!important;padding:10px 11px!important;font:inherit!important;font-weight:650!important}.callback-create-grid .full-width{grid-column:1/-1!important}.callback-create-grid textarea{min-height:120px!important;resize:vertical!important}.time-picker-hint,.field-hint{font-size:10px!important;color:#63758d!important;line-height:1.4!important;font-weight:600!important}.quick-time-picker{margin:0 0 18px!important;padding:16px!important;background:#f8fbff!important;border:1px solid #d8e5f2!important;border-radius:14px!important}.quick-time-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:12px!important}.quick-time-head strong{display:block!important;font-size:13px!important}.quick-time-head span{display:block!important;margin-top:2px!important;font-size:10px!important;color:var(--pulse-muted)!important}.quick-time-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}.quick-time-slot{min-height:42px!important;width:100%!important;border:1px solid #c7d8ea!important;border-radius:10px!important;background:#fff!important;color:#1557b0!important;font-size:12px!important;font-weight:850!important;cursor:pointer!important}.quick-time-slot:hover{border-color:#1769e0!important;background:#eef6ff!important}.quick-time-slot.selected{background:#e8f1ff!important;border-color:#1769e0!important;box-shadow:0 0 0 2px #c7ddff!important}.quick-time-custom{min-height:38px!important;padding:8px 12px!important;border:1px solid #b9cce4!important;border-radius:9px!important;background:#fff!important;color:#1769e0!important;font-weight:850!important;cursor:pointer!important}.quick-time-custom.active{background:#1769e0!important;color:#fff!important;border-color:#1769e0!important}.callback-create-preview.ready,.callback-time-preview.ready{display:grid!important;grid-template-columns:1fr 40px 1fr!important;gap:12px!important;align-items:center!important;min-height:80px!important;padding:14px!important;margin:0 0 18px!important;border:1px solid #cfe0f1!important;border-radius:13px!important;background:#f7fbff!important}.callback-create-preview.ready>div,.callback-time-preview.ready>div{display:grid!important;gap:3px!important}.callback-create-preview.ready small,.callback-time-preview.ready small{font-size:9px!important;font-weight:850!important;letter-spacing:.08em!important;color:#647892!important}.callback-create-preview.ready strong,.callback-time-preview.ready strong{font-size:14px!important}.callback-create-preview.ready span,.callback-time-preview.ready span{font-size:10px!important;color:#63758d!important}.preview-arrow{display:flex!important;align-items:center!important;justify-content:center!important;color:#1769e0!important;font-size:18px!important;font-weight:850!important}.callback-create-preview:not(.ready),.callback-time-preview:not(.ready){display:flex!important;align-items:center!important;min-height:58px!important;padding:14px!important;margin:0 0 18px!important;border:1px dashed #cbd8e7!important;border-radius:13px!important;background:#fbfcfe!important;color:#63758d!important}.callback-create-preview:not(.ready) strong,.callback-time-preview:not(.ready) strong{display:block!important;color:#1a2c45!important;margin-right:7px!important}.create-review{display:grid!important;grid-template-columns:minmax(250px,.5fr) minmax(320px,1fr)!important;gap:16px!important;align-items:center!important;padding:15px 16px!important;background:#f8fbff!important;border:1px solid #dbe7f4!important;border-radius:14px!important}.create-review>div{display:grid!important;gap:3px!important}.create-review strong{font-size:13px!important}.create-review span{font-size:10px!important;color:var(--pulse-muted)!important}.create-review .btn-xl{width:100%!important;min-height:48px!important}
.reports-filter-card{padding:18px!important;margin-bottom:18px!important}.reports-filter-card .report-filters{display:grid!important;grid-template-columns:180px 180px minmax(220px,1fr) auto auto!important;gap:12px!important;align-items:end!important}.report-filters label{display:grid!important;gap:6px!important;font-size:11px!important;font-weight:850!important;color:#41536b!important}.report-filters input,.report-filters select{width:100%!important;box-sizing:border-box!important;min-height:42px!important}.report-filters button,.report-filters .button-link{min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.reports-stat-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;margin-bottom:18px!important}.report-stat-card{background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:15px!important;padding:15px!important;box-shadow:0 5px 18px rgba(15,23,42,.035)!important}.report-stat-card span{display:block!important;color:#647892!important;font-size:10px!important;font-weight:800!important}.report-stat-card strong{display:block!important;margin-top:5px!important;font-size:24px!important;letter-spacing:-.02em!important}.report-member-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.report-member-card{border:1px solid #dce6f0!important;border-radius:14px!important;background:#fff!important;padding:15px!important}.report-member-head{display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:13px!important}.report-member-head strong{display:block!important;font-size:14px!important}.report-member-head span{display:block!important;font-size:10px!important;color:var(--pulse-muted)!important;margin-top:2px!important}.report-metric-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}.report-metric-grid>div{padding:9px!important;border:1px solid #e7edf4!important;border-radius:9px!important;background:#f9fbfd!important}.report-metric-grid span{display:block!important;color:#708096!important;font-size:9px!important;font-weight:800!important;text-transform:uppercase!important}.report-metric-grid strong{display:block!important;margin-top:3px!important;font-size:12px!important}.report-section{padding:18px!important;margin-bottom:18px!important}.report-table-wrap{overflow:auto!important;border:1px solid #dce6f0!important;border-radius:13px!important}.report-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;min-width:900px!important}.report-table th{background:#f7f9fc!important;color:#647892!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.06em!important;padding:11px!important;text-align:left!important;white-space:nowrap!important}.report-table td{padding:11px!important;border-top:1px solid #edf1f5!important;font-size:11px!important;color:#334155!important;vertical-align:top!important;white-space:nowrap!important}.report-empty{grid-column:1/-1!important}
.team-status-explainer{padding:18px!important;margin-bottom:12px!important}.team-status-card{padding:18px!important;margin-bottom:14px!important}.team-status-card table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid #dce6f0!important;border-radius:13px!important;overflow:hidden!important;background:#fff!important}.team-status-card th{background:#f7f9fc!important;color:#647892!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.06em!important;padding:10px!important;text-align:left!important}.team-status-card td{padding:10px!important;border-top:1px solid #edf1f5!important;font-size:11px!important}.team-status-card .presence-label{display:inline-flex!important;align-items:center!important;border-radius:999px!important;padding:5px 8px!important;font-size:9px!important;font-weight:850!important}.team-status-card .presence-label.available{background:#eaf8f0!important;color:#137443!important}.team-status-card .presence-label.on_case{background:#eaf2ff!important;color:#1557b0!important}.team-status-card .presence-label.break{background:#fff7e8!important;color:#9a6700!important}.team-status-card .presence-label.offline{background:#f1f3f5!important;color:#667085!important}.team-queue-group{padding:18px!important;border-bottom:1px solid #e5ebf2!important}.team-queue-group:last-child{border-bottom:0!important}.team-queue-group-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:14px!important;margin-bottom:14px!important}.team-queue-group-head h3{margin:2px 0 3px!important;font-size:18px!important}.team-queue-group-head span:not(.eyebrow):not(.section-tag){font-size:10px!important;color:var(--pulse-muted)!important}
@media(max-width:1100px){.case-form-grid{grid-template-columns:1fr!important}.callback-create-grid,.callback-create-time-grid,.reschedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.reports-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.report-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.reports-filter-card .report-filters{grid-template-columns:1fr 1fr!important}.reports-filter-card .report-filters button,.reports-filter-card .report-filters .button-link{width:100%!important}}
@media(max-width:760px){main{padding:20px 14px 40px!important}.page-intro{align-items:flex-start!important;flex-direction:column!important}.page-intro h1{font-size:27px!important}.case-customer-fields,.callback-create-grid,.callback-create-time-grid,.reschedule-grid{grid-template-columns:1fr!important}.quick-time-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.callback-create-preview.ready,.callback-time-preview.ready{grid-template-columns:1fr!important}.preview-arrow{transform:rotate(90deg)!important;min-height:20px!important}.case-create-form .form-review,.create-review{grid-template-columns:1fr!important}.reports-stat-grid,.report-member-grid{grid-template-columns:1fr!important}.report-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.reports-filter-card .report-filters{grid-template-columns:1fr!important}}

/* ============================================================
   V4IT PULSE V3.11 FINAL SHARED HEADER + TEAM WORKSPACE
   Applies consistently to Sales, Tech, Team Lead/Admin and Super Admin.
   ============================================================ */
header.pulse-header{
    min-height:64px!important;
    padding:9px 18px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:18px!important;
    row-gap:8px!important;
    background:#0b1f3a!important;
    color:#fff!important;
    box-shadow:0 1px 0 rgba(255,255,255,.06)!important;
}
header.pulse-header .brand{
    min-width:112px!important;
    line-height:1.05!important;
    font-size:20px!important;
    white-space:nowrap!important;
}
header.pulse-header .brand small{
    margin-top:3px!important;
    line-height:1.1!important;
}
header.pulse-header .pulse-nav{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:17px!important;
    overflow:hidden!important;
}
header.pulse-header .pulse-nav a{
    margin:0!important;
    padding:8px 0!important;
    color:#d9e8fb!important;
    font-size:13px!important;
    line-height:1!important;
    white-space:nowrap!important;
}
header.pulse-header .pulse-nav a:hover,
header.pulse-header .pulse-nav a:focus-visible{
    color:#fff!important;
}
header.pulse-header .pulse-userbar{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:9px!important;
    white-space:nowrap!important;
    font-size:12px!important;
    color:#f4f8ff!important;
}
header.pulse-header .pulse-userbar form.inline{
    margin:0!important;
    display:inline-flex!important;
    align-items:center!important;
}
header.pulse-header .pulse-userbar .notification-link{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    flex:0 0 30px!important;
    margin:0 2px 0 0!important;
}
header.pulse-header .pulse-userbar .notification-bell{
    font-size:18px!important;
    line-height:1!important;
}
header.pulse-header .pulse-userbar .notification-count{
    top:-3px!important;
    right:-4px!important;
    min-width:17px!important;
    height:17px!important;
    padding:0 4px!important;
    border:2px solid #0b1f3a!important;
    font-size:10px!important;
    line-height:13px!important;
}
header.pulse-header .presence-select{
    min-height:36px!important;
    width:auto!important;
    min-width:108px!important;
    margin:0!important;
}
header.pulse-header .pulse-userbar .link{
    padding:5px 0!important;
    margin:0!important;
    font-size:12px!important;
    color:#d9e8fb!important;
}
header.pulse-header .pulse-userbar .link:hover{color:#fff!important}

.team-page-intro{margin-bottom:20px!important}
.team-overview-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important;
    margin-bottom:18px!important;
}
.team-overview-card{
    position:relative!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1px solid var(--pulse-border)!important;
    border-radius:17px!important;
    padding:19px!important;
    box-shadow:0 8px 26px rgba(15,23,42,.045)!important;
}
.team-overview-card:before{
    content:""!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:4px!important;
    background:#1769e0!important;
}
.team-overview-card.sales:before{background:#0f9f6e!important}
.team-overview-card.technical:before{background:#1769e0!important}
.team-overview-card.onsite:before{background:#8b5cf6!important}
.team-overview-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
}
.team-overview-head h2{margin:3px 0 4px!important;font-size:22px!important;line-height:1.15!important;letter-spacing:-.02em!important}
.team-overview-head p{margin:0!important;color:var(--pulse-muted)!important;font-size:11px!important;line-height:1.45!important}
.team-overview-metrics{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin-top:16px!important;
}
.team-overview-metrics>div{
    padding:10px!important;
    background:#f8fbff!important;
    border:1px solid #e1eaf3!important;
    border-radius:10px!important;
}
.team-overview-metrics span,
.team-member-metrics span,
.team-member-foot span{
    display:block!important;
    color:#718199!important;
    font-size:9px!important;
    font-weight:800!important;
    text-transform:uppercase!important;
    letter-spacing:.04em!important;
}
.team-overview-metrics strong{display:block!important;margin-top:3px!important;font-size:17px!important}
.team-status-card{
    padding:20px!important;
    margin-bottom:16px!important;
}
.team-status-head{margin-bottom:16px!important}
.team-status-head h2{font-size:21px!important}
.team-member-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
}
.team-member-card{
    background:#fff!important;
    border:1px solid #dce6f0!important;
    border-radius:14px!important;
    padding:14px!important;
    box-shadow:0 4px 14px rgba(15,23,42,.025)!important;
}
.team-member-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:13px!important;
}
.team-member-identity{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.team-member-identity .avatar{flex:0 0 38px!important;width:38px!important;height:38px!important}
.team-member-identity strong{display:block!important;font-size:13px!important;line-height:1.2!important}
.team-member-identity span{display:block!important;margin-top:3px!important;color:var(--pulse-muted)!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:260px!important}
.team-member-head .presence-label{flex:0 0 auto!important;white-space:nowrap!important}
.team-member-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
.team-member-metrics>div{padding:9px!important;background:#f8fafc!important;border:1px solid #e7edf4!important;border-radius:9px!important}
.team-member-metrics strong{display:block!important;margin-top:3px!important;font-size:14px!important}
.team-member-foot{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin-top:11px!important;padding-top:10px!important;border-top:1px solid #edf1f5!important}
.team-member-foot strong{font-size:10px!important;color:#3b4d65!important}
.team-member-empty,.team-empty-panel{min-height:150px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:5px!important;text-align:center!important;border:1px dashed #cbd8e7!important;background:#fbfcfe!important;border-radius:14px!important;padding:28px!important}
.team-admin-panel{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    padding:18px 20px!important;
    margin-top:4px!important;
}
.team-admin-panel h2{margin:3px 0 5px!important;font-size:18px!important}
.team-admin-panel p{margin:0!important;color:var(--pulse-muted)!important;font-size:11px!important;line-height:1.5!important;max-width:760px!important}
.team-admin-panel .button-link{flex:0 0 auto!important}

@media(max-width:1180px){
    header.pulse-header{grid-template-columns:auto minmax(0,1fr)!important}
    header.pulse-header .pulse-userbar{grid-column:1/-1!important;justify-content:flex-end!important;padding-top:2px!important;border-top:1px solid rgba(255,255,255,.08)!important}
    .team-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
    header.pulse-header{grid-template-columns:1fr!important;padding:10px 14px!important}
    header.pulse-header .pulse-nav{overflow-x:auto!important;gap:15px!important;padding-bottom:2px!important}
    header.pulse-header .pulse-userbar{grid-column:auto!important;justify-content:flex-start!important;flex-wrap:wrap!important;white-space:normal!important}
    .team-overview-grid,.team-member-grid{grid-template-columns:1fr!important}
    .team-admin-panel{align-items:flex-start!important;flex-direction:column!important}
    .team-member-head{align-items:flex-start!important;flex-direction:column!important}
}


/* V3.12 — shared portal search */
.portal-search-panel{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0 0 16px!important;padding:13px 15px!important;background:#fff!important;border:1px solid var(--pulse-border)!important;border-radius:14px!important;box-shadow:0 4px 16px rgba(15,23,42,.03)!important}.portal-search-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}.portal-search-copy strong{font-size:12px!important;color:#172033!important}.portal-search-copy span{font-size:10px!important;color:var(--pulse-muted)!important}.portal-search-field{display:block!important;min-width:280px!important}.portal-search-field input,.inline-search input{height:38px!important;border:1px solid #c9d7e7!important;border-radius:9px!important;background:#fff!important;padding:0 11px!important;font-size:12px!important;color:#172033!important;outline:none!important}.portal-search-field input:focus,.inline-search input:focus{border-color:#1769e0!important;box-shadow:0 0 0 3px rgba(23,105,224,.12)!important}.inline-search{display:inline-flex!important;align-items:center!important;min-width:230px!important}.section-head-actions{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}[data-filter-input]::placeholder{color:#8795a8!important}.queue-card[hidden],.case-register-card[hidden],.team-overview-card[hidden],.team-member-card[hidden],.callback-list-row[hidden],#users-table tr[hidden]{display:none!important}

/* V3.12 — shared header stability */
header.pulse-header{grid-template-columns:auto minmax(260px,1fr) max-content!important;white-space:nowrap!important;overflow:visible!important}header.pulse-header .pulse-nav{white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}header.pulse-header .pulse-nav::-webkit-scrollbar{display:none!important}header.pulse-header .pulse-userbar{white-space:nowrap!important;flex-wrap:nowrap!important;overflow:visible!important}

/* V3.12 — persistent assignment alarm */
#assignment-alert{position:fixed!important;left:50%!important;top:18px!important;transform:translateX(-50%)!important;width:min(720px,calc(100vw - 28px))!important;z-index:2147483000!important;background:#fff!important;color:#172033!important;border:3px solid #dc2626!important;border-radius:16px!important;box-shadow:0 18px 60px rgba(127,29,29,.32),0 0 0 9999px rgba(9,20,38,.42)!important;padding:0!important;overflow:hidden!important;animation:assignmentAlertPulse 1.1s ease-in-out infinite alternate!important}#assignment-alert .aa-title{display:flex!important;align-items:center!important;gap:9px!important;background:#dc2626!important;color:#fff!important;padding:13px 17px!important;font-size:15px!important;font-weight:950!important;letter-spacing:.02em!important}.aa-pulse{font-size:13px!important;animation:aaDot .65s ease-in-out infinite alternate!important}.aa-message{padding:13px 17px 6px!important;font-size:14px!important;line-height:1.45!important}.aa-case{margin:9px 17px!important;padding:12px!important;background:#fff6f6!important;border:1px solid #fecaca!important;border-radius:10px!important}.aa-case-title{font-size:13px!important;font-weight:900!important;color:#991b1b!important}.aa-case-issue{margin-top:4px!important;font-size:11px!important;color:#475569!important;line-height:1.4!important}.aa-open{display:inline-flex!important;margin-top:8px!important;background:#dc2626!important;color:#fff!important;border-radius:8px!important;padding:7px 10px!important;font-size:11px!important;font-weight:850!important;text-decoration:none!important}.aa-footer{padding:10px 17px 14px!important;color:#64748b!important;font-size:10px!important;line-height:1.45!important}.pulse-toast{position:fixed!important;right:18px!important;top:78px!important;max-width:min(420px,calc(100vw - 36px))!important;background:#0b6bcb!important;color:#fff!important;padding:13px 15px!important;border-radius:10px!important;z-index:2147482000!important;text-decoration:none!important;font-weight:800!important;box-shadow:0 10px 30px rgba(15,23,42,.2)!important}@keyframes assignmentAlertPulse{from{box-shadow:0 18px 60px rgba(127,29,29,.28),0 0 0 9999px rgba(9,20,38,.40)}to{box-shadow:0 20px 70px rgba(220,38,38,.48),0 0 0 9999px rgba(9,20,38,.52)}}@keyframes aaDot{from{opacity:.35;transform:scale(.8)}to{opacity:1;transform:scale(1.25)}}
@media(max-width:900px){header.pulse-header{grid-template-columns:auto minmax(0,1fr)!important}header.pulse-header .pulse-userbar{grid-column:1/-1!important;justify-content:flex-end!important;border-top:1px solid rgba(255,255,255,.08)!important;padding-top:6px!important}.portal-search-panel{align-items:stretch!important;flex-direction:column!important}.portal-search-field{min-width:0!important;width:100%!important}.inline-search{min-width:190px!important}}
@media(max-width:600px){header.pulse-header .pulse-userbar{justify-content:flex-start!important;overflow-x:auto!important}.section-head-actions{align-items:stretch!important;flex-direction:column!important}.inline-search{width:100%!important}.inline-search input{width:100%!important}.aa-case{margin-left:11px!important;margin-right:11px!important}}

.user-edit-danger{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #f2b8b8;
  border-radius:14px;
  background:#fff7f7;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.user-edit-danger strong{display:block;color:#9b1c1c}
.user-edit-danger span{color:#6b7280;flex:1 1 280px}


/* Live operations correction pass — compact queues and actionable assignment alert */
#assignment-alert{
  width:min(820px,calc(100vw - 28px))!important;
  top:16px!important;
  border:2px solid #dc2626!important;
  box-shadow:0 16px 42px rgba(15,23,42,.20)!important;
  animation:assignmentAlertPulseClean 1.2s ease-in-out infinite alternate!important;
}
#assignment-alert .aa-title{padding:12px 16px!important;font-size:14px!important}
#assignment-alert .aa-message{padding:11px 16px 4px!important;font-size:12px!important;color:#334155!important}
#assignment-alert .aa-case{margin:9px 16px!important;padding:12px!important;background:#fff!important;border:1px solid #dbe3ed!important}
#assignment-alert .aa-case-title{font-size:12px!important;color:#172033!important}
#assignment-alert .aa-case-issue{font-size:10px!important;margin-top:4px!important}
#assignment-alert .aa-actions{display:flex!important;align-items:flex-start!important;gap:8px!important;flex-wrap:wrap!important;margin-top:10px!important}
#assignment-alert .aa-action-form{display:inline-flex!important;margin:0!important}
#assignment-alert .aa-action-form button,#assignment-alert .aa-open{height:34px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:8px!important;padding:0 12px!important;font-size:11px!important;font-weight:850!important;cursor:pointer!important;text-decoration:none!important;box-sizing:border-box!important}
#assignment-alert .aa-accept{background:#137443!important;color:#fff!important;border:1px solid #137443!important}
#assignment-alert .aa-open{margin-top:0!important;background:#1769e0!important;color:#fff!important;border:1px solid #1769e0!important}
#assignment-alert .aa-return-details{margin:0!important;min-width:190px!important}
#assignment-alert .aa-return-details summary{height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 11px!important;border:1px solid #d97706!important;border-radius:8px!important;background:#fff7ed!important;color:#9a6700!important;font-size:11px!important;font-weight:850!important;cursor:pointer!important;list-style:none!important;box-sizing:border-box!important}
#assignment-alert .aa-return-details summary::-webkit-details-marker{display:none!important}
#assignment-alert .aa-return-form{margin-top:8px!important;padding:10px!important;background:#f8fafc!important;border:1px solid #dbe3ed!important;border-radius:9px!important;display:grid!important;gap:7px!important}
#assignment-alert .aa-return-form label{display:grid!important;gap:4px!important;font-size:9px!important;font-weight:800!important;color:#52637a!important}
#assignment-alert .aa-return-form select,#assignment-alert .aa-return-form input{width:100%!important;height:32px!important;border:1px solid #cbd5e1!important;border-radius:7px!important;background:#fff!important;padding:0 8px!important;font-size:10px!important;box-sizing:border-box!important}
#assignment-alert .aa-return-confirm{height:31px!important;border:1px solid #b45309!important;border-radius:7px!important;background:#b45309!important;color:#fff!important;font-size:10px!important;font-weight:850!important;cursor:pointer!important}
#assignment-alert .aa-footer{padding:8px 16px 11px!important;font-size:9px!important}
@keyframes assignmentAlertPulseClean{from{box-shadow:0 16px 42px rgba(15,23,42,.18),0 0 0 0 rgba(220,38,38,0)}to{box-shadow:0 18px 50px rgba(220,38,38,.28),0 0 0 5px rgba(220,38,38,.08)}}

/* Remove the old full-page backdrop. The assignment alert remains prominent without disabling the portal underneath. */

.team-live-table-wrap,.team-member-table-wrap{width:100%;overflow:auto;border:1px solid #dfe7f0;border-radius:12px;background:#fff}
.team-live-table,.team-member-table{width:100%;border-collapse:separate;border-spacing:0;min-width:980px}
.team-live-table th,.team-member-table th{position:sticky;top:0;z-index:1;background:#f7f9fc;color:#60728a;font-size:9px;text-transform:uppercase;letter-spacing:.06em;text-align:left;padding:10px 9px;border-bottom:1px solid #dfe7f0;white-space:nowrap}
.team-live-table td,.team-member-table td{padding:10px 9px;border-bottom:1px solid #edf1f5;font-size:10px;color:#334155;vertical-align:middle;background:#fff}
.team-live-table tbody tr:last-child td,.team-member-table tbody tr:last-child td{border-bottom:0}
.team-live-table tbody tr:hover td,.team-member-table tbody tr:hover td{background:#fbfdff}
.team-live-table .case-number{font-size:11px;font-weight:900}
.live-case-customer{display:flex;flex-direction:column;gap:3px;min-width:180px;max-width:280px}
.live-case-customer strong{font-size:11px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-case-customer span{font-size:9px;color:#74849a;line-height:1.35;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-row-actions{display:flex;align-items:center;gap:6px;min-width:250px}
.live-row-actions>.inline{margin:0!important}
.live-assign-fields{display:grid;grid-template-columns:140px 170px auto;gap:5px;align-items:center}
.live-assign-fields select,.live-assign-fields input{height:30px!important;border:1px solid #cbd5e1!important;border-radius:7px!important;background:#fff!important;padding:0 7px!important;font-size:9px!important;min-width:0!important}
.btn-compact{height:30px!important;padding:0 9px!important;font-size:9px!important;white-space:nowrap!important}
.team-live-row.is-near-limit td{background:#fffaf0!important}
.team-live-row.is-over-limit td{background:#fff5f5!important}
.sla-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:23px!important;padding:4px 7px!important;border-radius:999px!important;font-size:8px!important;font-weight:900!important;white-space:nowrap!important}
.sla-badge.normal{background:#eef6ff!important;color:#315b8d!important}
.sla-badge.warning{background:#fff2c7!important;color:#8a5b00!important}
.sla-badge.danger{background:#fee2e2!important;color:#b42318!important}
.team-member-table{min-width:900px}
.team-member-inline{display:flex;align-items:center;gap:8px;min-width:190px}
.team-member-inline .avatar{width:30px!important;height:30px!important;flex:0 0 30px!important}
.team-member-inline>div:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}
.team-member-inline strong{font-size:10px;color:#172033;white-space:nowrap}
.team-member-inline span{font-size:8px;color:#7b8ba0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.team-member-table .presence-label{font-size:8px!important;padding:5px 8px!important;white-space:nowrap}
.team-member-table .is-offline td{background:#fafbfc!important;color:#7a8798!important}
.team-member-table .is-offline .team-member-inline{opacity:.72}
.team-status-card{padding:14px!important}
.team-status-head{margin-bottom:12px!important}
@media(max-width:900px){
  #assignment-alert{top:8px!important;width:calc(100vw - 16px)!important}
  .live-row-actions{min-width:210px!important}
  .live-assign-fields{grid-template-columns:1fr!important}
}

/* ============================================================
   V4IT PULSE V4.0 — OPERATIONS QUEUE POLISH
   Dense dispatch UI, stronger SLA hierarchy, premium team table.
   ============================================================ */
.live-queue-table-wrap{
    width:100%;
    overflow:auto;
    border:1px solid #d8e2ee;
    border-radius:14px;
    background:#fff;
    box-shadow:0 3px 14px rgba(15,23,42,.035);
}
.live-queue-table{
    width:100%;
    min-width:1040px;
    border-collapse:separate;
    border-spacing:0;
}
.live-queue-table th{
    position:sticky;
    top:0;
    z-index:2;
    padding:11px 12px;
    background:#f7f9fc;
    color:#687991;
    border-bottom:1px solid #dbe4ee;
    font-size:9px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.075em;
    text-align:left;
    text-transform:uppercase;
    white-space:nowrap;
}
.live-queue-table td{
    padding:12px;
    border-bottom:1px solid #edf1f5;
    background:#fff;
    color:#334155;
    font-size:11px;
    vertical-align:middle;
}
.live-queue-table tbody tr:last-child td{border-bottom:0}
.live-queue-table tbody tr{transition:background .15s ease}
.live-queue-table tbody tr:hover td{background:#f9fbfe}
.live-queue-row.is-working td:first-child{box-shadow:inset 3px 0 0 #2d7bdc}
.live-queue-row.is-near-limit td{background:#fffaf0}
.live-queue-row.is-near-limit:hover td{background:#fff7e4}
.live-queue-row.is-over-limit td{background:#fff5f5}
.live-queue-row.is-over-limit:hover td{background:#ffeded}
.live-queue-case{display:grid;gap:2px;min-width:250px;max-width:360px}
.live-queue-case .case-number{font-size:12px;line-height:1.15}
.live-queue-case strong{font-size:12px;color:#172033;line-height:1.25}
.live-queue-case span{display:block;max-width:340px;overflow:hidden;color:#74849a;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.live-tech-name{font-weight:750;color:#334155;white-space:nowrap}
.queue-time-value{font-variant-numeric:tabular-nums;color:#243650;white-space:nowrap}
.queue-sla-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:92px;
    min-height:28px;
    padding:5px 9px;
    border:1px solid transparent;
    border-radius:8px;
    font-size:9px;
    line-height:1;
    font-weight:950;
    letter-spacing:.045em;
    white-space:nowrap;
}
.queue-sla-badge.normal{background:#eef6ff;color:#285a93;border-color:#d4e5f7}
.queue-sla-badge.accepted{background:#eaf8f1;color:#137443;border-color:#ccebdc}
.queue-sla-badge.warning{background:#fff1c7;color:#8a5700;border-color:#f0d47b}
.queue-sla-badge.danger{background:#fee2e2;color:#b42318;border-color:#f5b7b7;box-shadow:0 0 0 2px rgba(180,35,24,.06)}
.queue-open-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:31px;
    padding:0 10px;
    border:1px solid #cbd9e8;
    border-radius:8px;
    background:#fff;
    color:#1769e0;
    font-size:10px;
    font-weight:900;
    text-decoration:none;
    white-space:nowrap;
}
.queue-open-action:hover{background:#eef6ff;border-color:#a9c5e6}
.queue-empty-state{
    min-height:180px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    border:1px dashed #cbd8e7;
    border-radius:14px;
    background:#fbfcfe;
    text-align:center;
}
.queue-empty-icon{width:42px;height:42px;display:grid;place-items:center;margin-bottom:4px;border-radius:13px;background:#eaf4ff;color:#1769e0;font-size:18px;font-weight:950}
.queue-empty-state strong{font-size:14px;color:#334155}
.queue-empty-state span{font-size:11px;color:#74849a}

/* Stronger Team Lead queue chrome */
.queue-shell .section-head{align-items:center}
.queue-shell .section-head .inline-search{min-width:270px}
.team-queue-group{padding:19px 18px!important;border-bottom:1px solid #e5ebf2!important}
.team-queue-group:last-child{border-bottom:0!important}
.team-queue-group-head{align-items:center!important;margin-bottom:13px!important}
.team-queue-group-head h3{font-size:17px!important;font-weight:800!important;color:#172033!important}
.team-queue-group-head span:not(.eyebrow):not(.section-tag){font-size:10px!important;color:#718199!important}
.team-live-table-wrap{border-color:#d7e2ed!important;border-radius:13px!important;box-shadow:0 3px 12px rgba(15,23,42,.025)!important}
.team-live-table{min-width:1060px!important}
.team-live-table th{padding:11px 10px!important;background:#f5f8fb!important;color:#62748c!important;font-size:9px!important;font-weight:900!important;letter-spacing:.07em!important}
.team-live-table td{padding:11px 10px!important;font-size:10px!important}
.team-live-table tbody tr{transition:background .15s ease!important}
.team-live-table tbody tr:hover td{background:#f9fbfe!important}
.team-live-table tbody tr.is-near-limit td{background:#fffaf0!important}
.team-live-table tbody tr.is-over-limit td{background:#fff3f3!important}
.team-live-table tbody tr.is-over-limit td:first-child{box-shadow:inset 3px 0 0 #dc2626!important}
.team-live-table tbody tr.is-near-limit td:first-child{box-shadow:inset 3px 0 0 #d88900!important}
.team-live-table .case-number{font-size:11px!important}
.team-live-table .live-case-customer{max-width:300px!important}
.team-live-table .live-case-customer strong{font-size:11px!important}
.team-live-table .live-case-customer span{font-size:9px!important}
.team-live-table .status-chip{font-size:8px!important;padding:5px 8px!important}
.team-live-table .button-link-light{min-height:30px!important;padding:6px 9px!important;border:1px solid #cbd9e8!important;border-radius:8px!important;background:#fff!important;color:#1769e0!important;font-size:9px!important;font-weight:900!important}
.team-live-table .live-row-actions{min-width:250px!important}
.team-live-table .sla-badge{min-height:27px!important;min-width:88px!important;padding:5px 8px!important;border-radius:8px!important;font-size:8px!important;letter-spacing:.035em!important}
.team-live-table .sla-badge.normal{background:#eef6ff!important;color:#285a93!important;border-color:#d4e5f7!important}
.team-live-table .sla-badge.warning{background:#fff1c7!important;color:#8a5700!important;border-color:#f0d47b!important}
.team-live-table .sla-badge.danger{background:#fee2e2!important;color:#b42318!important;border-color:#f5b7b7!important;box-shadow:0 0 0 2px rgba(180,35,24,.06)!important}

/* Team tab: move from generic spreadsheet styling to an operations roster */
.team-status-card{padding:18px!important;border-radius:17px!important;box-shadow:0 7px 24px rgba(15,23,42,.045)!important}
.team-status-head{align-items:center!important;margin-bottom:14px!important}
.team-status-head h2{font-size:19px!important;font-weight:800!important}
.team-status-head .section-tag{font-size:9px!important;padding:6px 10px!important}
.team-member-table-wrap{border-color:#d6e1ec!important;border-radius:13px!important;box-shadow:0 3px 13px rgba(15,23,42,.025)!important}
.team-member-table{min-width:960px!important}
.team-member-table th{padding:11px 10px!important;background:#f5f8fb!important;color:#62748c!important;font-size:9px!important;font-weight:900!important;letter-spacing:.07em!important}
.team-member-table td{padding:12px 10px!important;font-size:10px!important;color:#334155!important}
.team-member-table tbody tr{transition:background .15s ease!important}
.team-member-table tbody tr:hover td{background:#f9fbfe!important}
.team-member-table tbody tr.is-offline td{background:#fafbfd!important}
.team-member-inline{min-width:220px!important;gap:10px!important}
.team-member-inline .avatar{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:10px!important;font-size:13px!important}
.team-member-inline strong{font-size:11px!important;font-weight:850!important}
.team-member-inline span{font-size:8px!important;color:#7b8ba0!important}
.team-member-table .presence-label{position:relative!important;padding:6px 9px 6px 20px!important;border:1px solid transparent!important;border-radius:8px!important;font-size:8px!important;font-weight:900!important;letter-spacing:.03em!important;text-transform:uppercase!important}
.team-member-table .presence-label:before{content:"";position:absolute;left:8px;top:50%;width:6px;height:6px;border-radius:50%;transform:translateY(-50%);background:currentColor;opacity:.8}
.team-member-table .presence-label.available{background:#eaf8f0!important;color:#137443!important;border-color:#ccebdc!important}
.team-member-table .presence-label.on_case{background:#eaf2ff!important;color:#1557b0!important;border-color:#cfe0f7!important}
.team-member-table .presence-label.break{background:#fff7e8!important;color:#9a6700!important;border-color:#f0dfb9!important}
.team-member-table .presence-label.offline{background:#f1f3f5!important;color:#667085!important;border-color:#e0e4e8!important}
.team-member-table td:nth-child(5),.team-member-table td:nth-child(6){font-weight:850!important;color:#1f3552!important}
.team-member-table td:nth-child(7) .sla-badge{min-width:28px!important;min-height:25px!important;border-radius:7px!important}

@media(max-width:900px){
    .queue-shell .section-head .inline-search{min-width:0;width:100%}
    .queue-shell .section-head{align-items:stretch!important}
}

/* ============================================================
   V4IT PULSE V4.1 — OPERATIONS WORKSPACE REFINEMENT
   Fixes dense dashboard/queue layout, SLA semantics and roster
   visibility without changing workflow or permissions.
   ============================================================ */
.dashboard-stat-grid-ops{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important;
    margin-bottom:18px!important;
}
.dashboard-stat-grid-ops .ops-stat{
    min-height:112px!important;
    padding:16px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    border-radius:14px!important;
    background:#fff!important;
    border:1px solid #dbe5ef!important;
    box-shadow:0 6px 20px rgba(15,23,42,.04)!important;
}
.dashboard-stat-grid-ops .ops-stat span{
    font-size:9px!important;
    font-weight:900!important;
    letter-spacing:.075em!important;
    text-transform:uppercase!important;
    color:#667a92!important;
}
.dashboard-stat-grid-ops .ops-stat strong{
    font-size:27px!important;
    line-height:1!important;
    margin-top:7px!important;
}
.dashboard-stat-grid-ops .ops-stat small{
    margin-top:7px!important;
    font-size:9px!important;
    line-height:1.3!important;
    color:#8492a5!important;
}
.dashboard-team-cases{margin-bottom:18px!important}

.queue-overview-grid{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:10px!important;
    margin-bottom:18px!important;
}
.queue-overview-card{
    min-height:92px!important;
    padding:15px 16px!important;
    border:1px solid #dbe5ef!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 6px 20px rgba(15,23,42,.035)!important;
}
.queue-overview-card span{
    display:block!important;
    color:#667a92!important;
    font-size:9px!important;
    font-weight:900!important;
    letter-spacing:.07em!important;
    text-transform:uppercase!important;
}
.queue-overview-card strong{
    display:block!important;
    margin-top:5px!important;
    color:#172033!important;
    font-size:25px!important;
    line-height:1!important;
}
.queue-overview-card small{
    display:block!important;
    margin-top:6px!important;
    color:#8492a5!important;
    font-size:9px!important;
}

/* Keep the queue compact enough to behave like a dispatch board. */
.team-live-table{
    min-width:0!important;
    table-layout:fixed!important;
}
.team-live-table th:nth-child(1){width:76px!important}
.team-live-table th:nth-child(2){width:78px!important}
.team-live-table th:nth-child(3){width:26%!important}
.team-live-table th:nth-child(4){width:105px!important}
.team-live-table th:nth-child(5){width:112px!important}
.team-live-table th:nth-child(6){width:86px!important}
.team-live-table th:nth-child(7){width:100px!important}
.team-live-table th:nth-child(8){width:245px!important}
.team-live-table td{overflow:hidden!important}
.team-live-table .live-case-customer{max-width:100%!important;min-width:0!important}
.team-live-table .live-case-customer span{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.team-live-table .live-row-actions{
    min-width:0!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:7px!important;
    align-items:start!important;
}
.team-live-table .live-row-actions>.button-link-light{align-self:start!important}
.team-live-table .live-row-actions form.inline{min-width:0!important;width:100%!important}
.team-live-table .live-assign-fields{
    display:grid!important;
    grid-template-columns:minmax(95px,1fr) minmax(90px,1fr) auto!important;
    gap:5px!important;
    align-items:center!important;
}
.team-live-table .live-assign-fields select,
.team-live-table .live-assign-fields input{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
.team-live-table .live-assign-fields button{white-space:nowrap!important}

/* SLA is a state, not a countdown for accepted work. */
.team-live-table .sla-badge.accepted{
    background:#eaf8f1!important;
    color:#137443!important;
    border-color:#ccebdc!important;
}
.team-live-table .sla-badge.warning{
    background:#fff1c7!important;
    color:#8a5700!important;
    border-color:#f0d47b!important;
}
.team-live-table .sla-badge.danger{
    background:#fee2e2!important;
    color:#b42318!important;
    border-color:#f5b7b7!important;
}
.team-live-table tbody tr.is-over-limit td{
    background:#fff5f5!important;
}
.team-live-table tbody tr.is-near-limit td{
    background:#fffaf0!important;
}

/* Team roster: expose outcome counts without turning it into a spreadsheet wall. */
.team-member-table{
    min-width:1180px!important;
}
.team-member-table th:nth-child(1){width:48px!important}
.team-member-table th:nth-child(2){width:220px!important}
.team-member-table th:nth-child(3){width:105px!important}
.team-member-table th:nth-child(4){width:105px!important}
.team-member-table th:nth-child(5),
.team-member-table th:nth-child(6),
.team-member-table th:nth-child(7),
.team-member-table th:nth-child(8),
.team-member-table th:nth-child(9),
.team-member-table th:nth-child(10){width:78px!important}
.team-member-table th:nth-child(11){width:125px!important}
.team-member-table td:nth-child(5),
.team-member-table td:nth-child(6),
.team-member-table td:nth-child(7),
.team-member-table td:nth-child(8),
.team-member-table td:nth-child(9),
.team-member-table td:nth-child(10){text-align:center!important;font-variant-numeric:tabular-nums!important}
.team-count{
    display:inline-flex!important;
    min-width:25px!important;
    min-height:25px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 6px!important;
    border-radius:7px!important;
    font-weight:900!important;
}
.team-count.resolved{background:#eaf8f1!important;color:#137443!important}
.team-count.unresolved{background:#fff1e8!important;color:#a84b12!important}

.team-overview-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important;
    margin-bottom:16px!important;
}
.team-overview-card{
    min-height:108px!important;
    padding:15px!important;
    border-radius:14px!important;
    box-shadow:0 6px 20px rgba(15,23,42,.035)!important;
}
.team-overview-card:before{width:3px!important}
.team-overview-head h2{
    margin:4px 0 2px!important;
    font-size:25px!important;
    line-height:1!important;
}
.team-overview-head p{font-size:9px!important}
.team-overview-card .eyebrow{font-size:8px!important}
.team-overview-card.callbacks:before{background:#d88900!important}
.team-overview-card.resolved:before{background:#0f9f6e!important}
.team-overview-card.unresolved:before{background:#dc5b4f!important}

@media(max-width:1200px){
    .dashboard-stat-grid-ops{grid-template-columns:repeat(3,minmax(0,1fr))!important}
    .queue-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
    .team-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
    .team-live-table{min-width:1010px!important;table-layout:auto!important}
}
@media(max-width:900px){
    .dashboard-stat-grid-ops,.queue-overview-grid,.team-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .team-live-table{min-width:1000px!important}
}
@media(max-width:600px){
    .dashboard-stat-grid-ops,.queue-overview-grid,.team-overview-grid{grid-template-columns:1fr 1fr!important}
    .dashboard-stat-grid-ops .ops-stat{min-height:96px!important}
}

/* V5 — V4IT branded login */
body.login{
  min-height:100vh!important;
  margin:0!important;
  padding:28px!important;
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  overflow:auto!important;
  background:
    radial-gradient(circle at 12% 18%,rgba(35,112,225,.20),transparent 34%),
    radial-gradient(circle at 88% 82%,rgba(18,184,166,.14),transparent 32%),
    #071b34!important;
}
.login-shell{width:min(980px,100%);display:grid;grid-template-columns:1.05fr .95fr;min-height:560px;background:#fff;border:1px solid rgba(255,255,255,.14);border-radius:28px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.30)}
.login-brand-panel{position:relative;display:flex;flex-direction:column;justify-content:center;padding:58px;background:linear-gradient(145deg,#082a4d,#0b4d78 58%,#087f78);color:#fff;overflow:hidden}
.login-brand-panel:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-150px;top:-130px;box-shadow:0 0 0 34px rgba(255,255,255,.035),0 0 0 70px rgba(255,255,255,.025)}
.login-orbit{width:76px;height:76px;border-radius:22px;display:grid;place-items:center;position:relative;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.20);box-shadow:inset 0 0 24px rgba(255,255,255,.06),0 14px 32px rgba(0,0,0,.18);margin-bottom:34px}
.login-orbit span{font-size:23px;font-weight:950;letter-spacing:-.08em}.login-orbit i{position:absolute;width:94px;height:94px;border:1px solid rgba(122,232,220,.42);border-radius:50%;border-left-color:transparent;transform:rotate(-28deg);animation:loginSpin 8s linear infinite}.login-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:900;color:#9fe8e0}.login-brand-panel h1{font-size:48px;line-height:1;margin:9px 0 15px;letter-spacing:-.05em}.login-brand-panel h1 b{color:#3fe1d1}.login-brand-panel p{max-width:440px;color:rgba(255,255,255,.78);font-size:15px;line-height:1.7;margin:0}.login-live-line{margin-top:34px;display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:#d8fffa}.login-live-line span{width:8px;height:8px;border-radius:50%;background:#42e3a3;box-shadow:0 0 0 6px rgba(66,227,163,.12);animation:loginPulse 1.8s ease-in-out infinite}
.login-card{width:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:58px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:0!important;background:#fff!important}.login-card-head{margin-bottom:27px}.login-card-head h2{font-size:29px;line-height:1.1;margin:8px 0 7px;color:#10213d}.login-card-head p{margin:0;color:#718099;font-size:12px;line-height:1.6}.login-field{display:grid;gap:7px;margin-bottom:15px}.login-field span{font-size:11px;font-weight:850;color:#2d3b52}.login-field input{height:48px!important;border:1px solid #d6dfeb!important;border-radius:11px!important;background:#f8fafc!important;padding:0 13px!important;box-sizing:border-box!important;font-size:13px!important;outline:none!important;transition:.18s ease!important}.login-field input:focus{border-color:#1c73df!important;background:#fff!important;box-shadow:0 0 0 4px rgba(28,115,223,.10)!important}.login-submit{height:49px!important;margin-top:8px!important;border:0!important;border-radius:11px!important;background:linear-gradient(135deg,#1769e0,#0a8a86)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;letter-spacing:.01em!important;cursor:pointer!important;box-shadow:0 10px 24px rgba(23,105,224,.22)!important;transition:transform .18s ease,box-shadow .18s ease!important}.login-submit:hover{transform:translateY(-1px);box-shadow:0 13px 30px rgba(23,105,224,.28)!important}.login-submit span{float:right;margin-right:12px;font-size:18px;line-height:12px}.login-security{margin-top:17px;text-align:center;color:#9aa7b8;font-size:9px;font-weight:750;letter-spacing:.04em}.login-card .err{margin-bottom:14px!important;border-radius:9px!important}
@keyframes loginSpin{to{transform:rotate(332deg)}}@keyframes loginPulse{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
@media(max-width:760px){body.login{padding:14px}.login-shell{grid-template-columns:1fr;min-height:0;border-radius:20px}.login-brand-panel{padding:34px 30px}.login-brand-panel h1{font-size:38px}.login-brand-panel p{font-size:13px}.login-card{padding:34px 30px!important}.login-orbit{margin-bottom:22px}}

/* V5 — compact queue action drawer */
.team-live-table{min-width:900px!important}.team-live-table th,.team-live-table td{padding:9px 10px!important}.team-live-table th:first-child,.team-live-table td:first-child{min-width:105px}.team-live-table th:nth-child(5),.team-live-table td:nth-child(5){min-width:110px}.team-live-table th:nth-child(6),.team-live-table td:nth-child(6){min-width:92px}.team-live-table th:nth-child(7),.team-live-table td:nth-child(7){min-width:95px}.live-row-actions{display:flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important}.queue-assignment{position:relative!important}.queue-assignment summary{list-style:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;height:32px!important;padding:0 10px!important;border:1px solid #b9cde7!important;border-radius:8px!important;background:#f8fbff!important;color:#1769e0!important;font-size:10px!important;font-weight:850!important;cursor:pointer!important}.queue-assignment summary::-webkit-details-marker{display:none!important}.queue-assignment[open] summary{background:#1769e0!important;color:#fff!important}.queue-assignment>form{position:absolute!important;right:0!important;top:39px!important;z-index:50!important;width:310px!important;padding:12px!important;background:#fff!important;border:1px solid #d4dfed!important;border-radius:12px!important;box-shadow:0 16px 40px rgba(15,23,42,.16)!important}.live-assign-fields{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.live-assign-fields label{display:grid!important;gap:4px!important;font-size:9px!important;font-weight:800!important;color:#52637a!important}.live-assign-fields select,.live-assign-fields input{width:100%!important;box-sizing:border-box!important;height:34px!important}.live-assign-fields button{width:100%!important}.team-live-row.is-over-limit td{background:#fff7f7!important}.team-live-row.is-near-limit td{background:#fffbf0!important}.team-live-row .queue-sla-badge.danger{font-weight:950!important;box-shadow:0 0 0 3px rgba(220,38,38,.08)!important}.team-live-row .queue-sla-badge.warning{font-weight:900!important}.team-period-filter{margin-top:0!important}.team-period-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:14px}.team-period-grid>div{border:1px solid #e0e8f2;border-radius:12px;background:#f8fafc;padding:13px}.team-period-grid span{display:block;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#73839a}.team-period-grid strong{display:block;margin-top:6px;font-size:21px;color:#12213b;font-variant-numeric:tabular-nums}.team-member-table{min-width:1080px!important}.team-member-table th,.team-member-table td{padding:10px 9px!important}.presence-label.offline{opacity:.72}.team-live-member-row.is-offline{background:#fafafa!important}
@media(max-width:900px){.team-period-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.queue-assignment>form{position:fixed!important;right:14px!important;top:auto!important;bottom:14px!important;width:min(310px,calc(100vw - 28px))!important}}
@media(max-width:600px){.team-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* =========================================================
   V4IT PULSE — OPERATIONS CONSOLE UI PASS
   Dense information is intentionally rendered as calm,
   high-scan tables instead of oversized metric cards.
   Inspired by mature service-desk / enterprise workspaces:
   clear hierarchy, restrained depth, sticky headers, compact
   rows, strong status semantics and predictable actions.
   ========================================================= */

.ops-table-wrap{width:100%;overflow:auto;border:1px solid var(--pulse-border);border-radius:13px;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.025)}
.ops-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;min-width:780px;margin:0}
.ops-table th{position:sticky;top:0;z-index:2;background:#f7f9fc;color:#667892;font-size:9px;font-weight:900;letter-spacing:.075em;text-transform:uppercase;text-align:left;padding:11px 12px;border-bottom:1px solid var(--pulse-border);white-space:nowrap}
.ops-table td{padding:10px 12px;border-bottom:1px solid #edf1f5;font-size:11px;color:#334155;vertical-align:middle;background:#fff;transition:background .15s ease}
.ops-table tbody tr:last-child td{border-bottom:0}
.ops-table tbody tr:hover td{background:#f8fbff}
.ops-table .num,.ops-table .mono{font-variant-numeric:tabular-nums}
.ops-table .num{text-align:right}
.ops-table .mono{font-feature-settings:"tnum" 1}
.ops-person{display:flex;align-items:center;gap:9px;min-width:160px}
.ops-person strong{font-size:12px;color:#172033;white-space:nowrap}
.ops-person span{display:block;font-size:10px;color:#7a8799;margin-top:2px}
.avatar-sm{width:30px!important;height:30px!important;min-width:30px!important;border-radius:9px!important;font-size:12px!important}
.avatar-xs{width:27px!important;height:27px!important;min-width:27px!important;border-radius:8px!important;font-size:10px!important}

.dashboard-kpi-panel,.team-overview-panel{padding:18px;margin-bottom:18px}
.dashboard-kpi-table,.team-overview-table,.team-period-table,.report-kpi-table{min-width:0!important;table-layout:fixed}
.dashboard-kpi-table td,.team-overview-table td,.team-period-table td,.report-kpi-table td{width:16.666%;padding:13px 14px;border-right:1px solid #edf1f5}
.dashboard-kpi-table td:last-child,.team-overview-table td:last-child,.team-period-table td:last-child,.report-kpi-table td:last-child{border-right:0}
.dashboard-kpi-table td span,.team-overview-table td span,.team-period-table td span,.report-kpi-table td span{display:block;color:#718096;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.dashboard-kpi-table td strong,.team-overview-table td strong,.team-period-table td strong,.report-kpi-table td strong{display:block;margin-top:5px;color:#102a56;font-size:22px;line-height:1;font-weight:800;letter-spacing:-.025em}
.team-overview-table td small{display:block;margin-top:5px;color:#8794a6;font-size:9px;line-height:1.3}
.team-performance{padding:18px}
.team-performance-table{min-width:900px!important}
.team-performance-table th:nth-child(n+3),.team-performance-table td:nth-child(n+3){text-align:right}
.team-performance-table td:nth-child(2){min-width:100px}
.team-performance-table .presence-label{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:10px}
.team-performance-table .presence-label::before{content:"";width:7px;height:7px;border-radius:50%;background:#94a3b8}
.team-performance-table .presence-label.available::before{background:#16a34a}
.team-performance-table .presence-label.on-case::before{background:#2563eb}
.team-performance-table .presence-label.break::before{background:#d97706}

/* Case register: one compact row per case rather than a stack of cards. */
.case-list-section{padding:18px}
.case-register-table{min-width:1050px!important}
.case-register-table th:nth-child(1){width:100px}
.case-register-table th:nth-child(2){width:30%}
.case-register-table th:nth-child(3){width:115px}
.case-register-table th:nth-child(4){width:135px}
.case-register-table th:nth-child(5){width:135px}
.case-register-table th:nth-child(6){width:145px}
.case-register-table th:nth-child(7){width:145px}
.case-table-customer{display:flex;align-items:center;gap:9px;min-width:260px;max-width:390px}
.case-table-customer>div:last-child{min-width:0}
.case-table-customer strong,.case-table-customer span{display:block;overflow:hidden;text-overflow:ellipsis}
.case-table-customer strong{font-size:12px;color:#172033;white-space:nowrap}
.case-table-customer span{font-size:10px;color:#718096;line-height:1.35;white-space:nowrap;margin-top:2px}
.case-register-table .type-chip{display:block;width:max-content;margin-top:5px;font-size:8px;padding:3px 6px;border-radius:999px}
.case-register-table .case-number{font-size:11px;font-weight:900}
.table-action{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border:1px solid #c9d8ea;border-radius:8px;background:#f8fbff;color:#1769e0;text-decoration:none;font-size:10px;font-weight:850;white-space:nowrap;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.table-action:hover{background:#eaf3ff;border-color:#a9c6e8;text-decoration:none;transform:translateY(-1px)}
.table-delete{min-height:30px!important;padding:6px 9px!important;margin-left:5px!important;border-radius:8px!important;background:#fff2f2!important;color:#b42318!important;border:1px solid #f3c4c0!important;font-size:10px!important;font-weight:850!important}

/* Live queue alignment — keep customer identity and issue on a single visual axis. */
.team-live-table{min-width:1120px!important}
.team-live-table th,.team-live-table td{vertical-align:middle!important}
.team-live-table th:nth-child(1){width:95px}
.team-live-table th:nth-child(2){width:31%}
.team-live-table th:nth-child(3){width:115px}
.team-live-table th:nth-child(4){width:140px}
.team-live-table th:nth-child(5){width:135px}
.team-live-table th:nth-child(6){width:95px}
.team-live-table th:nth-child(7){width:105px}
.live-case-customer{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:2px!important;min-width:240px!important;max-width:390px!important;padding:1px 0!important}
.live-case-customer strong{font-size:11px!important;line-height:1.25!important}
.live-case-customer span{font-size:9px!important;line-height:1.35!important;color:#7a8799!important;max-width:100%!important}
.team-live-table .live-row-actions{justify-content:flex-start!important;min-width:235px!important}

/* Team period controls: aligned as a single control bar. */
.team-period-filter{padding-bottom:2px}
.team-period-filter.report-filters{display:grid!important;grid-template-columns:160px 160px auto auto auto auto auto!important;gap:8px!important;align-items:end!important}
.team-period-filter.report-filters label{display:grid!important;gap:5px!important;font-size:10px!important;font-weight:850!important;color:#52637a!important}
.team-period-filter.report-filters input{height:40px!important;width:100%!important}
.team-period-filter.report-filters .button-link,.team-period-filter.report-filters button{height:40px!important;white-space:nowrap!important}
.team-period-table td{width:16.666%!important}

/* Reports: compact KPI strip + comparison table. */
.report-section{padding:18px!important}
.report-kpi-table td{background:#fff}
.report-team-table{min-width:1200px!important}
.report-team-table th:nth-child(n+3),.report-team-table td:nth-child(n+3){text-align:right}
.report-team-table td:nth-child(1),.report-team-table td:nth-child(2){text-align:left}
.report-team-table .ops-person{min-width:150px}
.report-team-table tbody tr:hover td{background:#f8fbff}

/* Audit log: modern governance console rather than a legacy CRUD table. */
.audit-page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.audit-panel{padding:18px}
.audit-table{min-width:980px!important}
.audit-table th:nth-child(1){width:145px}.audit-table th:nth-child(2){width:170px}.audit-table th:nth-child(3){width:150px}.audit-table th:nth-child(4){width:140px}.audit-table th:nth-child(5){width:auto}.audit-table th:nth-child(6){width:125px}
.audit-user{display:flex;align-items:center;gap:8px;min-width:145px}
.audit-user strong{font-size:11px;color:#172033;white-space:nowrap}
.audit-action-badge{display:inline-flex;align-items:center;min-height:25px;padding:5px 8px;border-radius:7px;background:#eef4fb;color:#355b86;border:1px solid #d9e4ef;font-size:9px;font-weight:900;letter-spacing:.035em;white-space:nowrap}
.audit-details{max-width:430px;line-height:1.35;color:#52637a!important;white-space:normal!important;overflow-wrap:anywhere}
.audit-actions{display:flex;align-items:center;gap:4px;white-space:nowrap}
.audit-edit-row td{padding:14px!important;background:#f8fbff!important;border-bottom:1px solid #dfe8f2!important}
.audit-edit-row form{display:grid!important;grid-template-columns:180px 220px minmax(260px,1fr) auto!important;gap:9px!important;align-items:start!important;padding:12px!important;border:1px solid #dbe6f1!important;border-radius:11px!important;background:#fff!important}
.audit-edit-row form input,.audit-edit-row form textarea{min-height:38px!important;width:100%!important}
.audit-edit-row form textarea{min-height:80px!important;resize:vertical!important}

/* Quiet motion: enterprise software should feel alive, not animated. */
.ops-table tbody tr,.table-action,.status-chip,.section-tag{transition:background-color .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease}

@media(max-width:1050px){
  .dashboard-kpi-table,.team-overview-table,.team-period-table,.report-kpi-table{min-width:760px!important}
  .team-period-filter.report-filters{grid-template-columns:1fr 1fr repeat(5,max-content)!important;overflow-x:auto;padding-bottom:3px}
}
@media(max-width:760px){
  .audit-page-intro{display:block}
  .dashboard-kpi-panel,.team-overview-panel,.team-performance,.case-list-section,.report-section,.audit-panel{padding:13px}
  .dashboard-kpi-table,.team-overview-table,.team-period-table,.report-kpi-table{min-width:700px!important}
  .team-period-filter.report-filters{grid-template-columns:1fr 1fr!important;overflow:visible}
  .team-period-filter.report-filters .button-link,.team-period-filter.report-filters button{width:100%}
  .team-period-filter.report-filters .button-link:nth-last-child(-n+4){grid-column:auto}
  .audit-edit-row form{grid-template-columns:1fr!important}
}


/* ============================================================
   V4IT PULSE V4.0 — OPERATIONS DENSITY / STATUS / ACTION POLISH
   ============================================================ */

/* Live queue: customer context gets the space; status/action columns stay compact. */
.team-live-table,
.live-queue-table,
.case-register-table,
.users-admin-table{
    width:100%!important;
    table-layout:fixed!important;
}
.team-live-table th:nth-child(1){width:8%!important}
.team-live-table th:nth-child(2){width:28%!important}
.team-live-table th:nth-child(3){width:9%!important}
.team-live-table th:nth-child(4){width:12%!important}
.team-live-table th:nth-child(5){width:12%!important}
.team-live-table th:nth-child(6){width:9%!important}
.team-live-table th:nth-child(7){width:12%!important}
.team-live-table th:nth-child(8){width:10%!important}

.live-queue-table th:nth-child(1){width:31%!important}
.live-queue-table th:nth-child(2){width:10%!important}
.live-queue-table th:nth-child(3){width:13%!important}
.live-queue-table th:nth-child(4){width:12%!important}
.live-queue-table th:nth-child(5){width:9%!important}
.live-queue-table th:nth-child(6){width:9%!important}
.live-queue-table th:nth-child(7){width:11%!important}
.live-queue-table th:nth-child(8){width:5%!important}

.live-queue-table td,
.team-live-table td{
    vertical-align:middle!important;
}
.live-queue-case{
    min-width:0!important;
    display:grid!important;
    gap:3px!important;
}
.live-queue-case-head{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    min-width:0!important;
}
.live-queue-case-head .type-chip{
    flex:0 0 auto!important;
    max-width:76px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}
.live-queue-case strong{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
    color:#172033!important;
}
.live-queue-case span:not(.type-chip){
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#718096!important;
    font-size:10px!important;
}
.live-queue-table .status-chip,
.team-live-table .status-chip{
    white-space:nowrap!important;
}
.live-row-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    min-width:0!important;
}
.live-row-actions .button-link{
    white-space:nowrap!important;
    min-width:0!important;
}
.live-row-actions .queue-assignment{
    min-width:0!important;
}

/* Case register: actions are a single clean control group, never a crushed stack. */
.case-register-table th:nth-child(1){width:9%!important}
.case-register-table th:nth-child(2){width:31%!important}
.case-register-table th:nth-child(3){width:10%!important}
.case-register-table th:nth-child(4){width:12%!important}
.case-register-table th:nth-child(5){width:12%!important}
.case-register-table th:nth-child(6){width:11%!important}
.case-register-table th:nth-child(7){width:8%!important}
.case-register-table th:nth-child(8){width:7%!important}
.case-register-table td{
    vertical-align:middle!important;
}
.case-register-table td:last-child{
    min-width:112px!important;
    white-space:nowrap!important;
}
.table-row-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
}
.table-row-actions form.inline{
    display:inline-flex!important;
    margin:0!important;
}
.table-row-actions .table-action,
.table-row-actions .table-delete{
    min-width:46px!important;
    min-height:32px!important;
    padding:7px 10px!important;
    border-radius:8px!important;
    white-space:nowrap!important;
    text-align:center!important;
}
.table-row-actions .table-delete{
    border:1px solid #fecaca!important;
    background:#fff5f5!important;
    color:#b91c1c!important;
}
.table-row-actions .table-delete:hover{
    background:#fee2e2!important;
    border-color:#fca5a5!important;
}

/* Team presence is visually ordered and unmistakable. */
.team-member-table .presence-label{
    min-width:76px!important;
    justify-content:center!important;
}
.team-member-table .presence-label.available{
    background:#eaf8f0!important;
    color:#137443!important;
    box-shadow:inset 0 0 0 1px #ccebd9!important;
}
.team-member-table .presence-label.on_case{
    background:#eaf2ff!important;
    color:#1557b0!important;
    box-shadow:inset 0 0 0 1px #cfe0fb!important;
}
.team-member-table .presence-label.break{
    background:#fff7e8!important;
    color:#9a6700!important;
    box-shadow:inset 0 0 0 1px #f4dfac!important;
}
.team-member-table .presence-label.offline{
    background:#f3f5f7!important;
    color:#788597!important;
}
.team-member-table tbody tr{
    transition:background .16s ease,transform .16s ease!important;
}
.team-member-table tbody tr:hover{
    background:#f8fbff!important;
}
.team-member-table tbody tr:first-child td:first-child strong{
    color:#1769e0!important;
}

/* Callback attention: operational signal rather than another generic card. */
.callback-attention-banner{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:12px!important;
    margin:0 0 16px!important;
    padding:12px 14px!important;
    border:1px solid #f2cf75!important;
    border-radius:12px!important;
    background:linear-gradient(90deg,#fffaf0,#fffdf8)!important;
    box-shadow:0 5px 18px rgba(180,120,0,.06)!important;
}
.callback-attention-icon{
    width:34px!important;
    height:34px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:10px!important;
    background:#fff0c7!important;
    color:#9a6700!important;
    font-weight:900!important;
}
.callback-attention-banner strong,
.callback-attention-banner span{
    display:block!important;
}
.callback-attention-banner strong{
    font-size:12px!important;
    color:#6f4a00!important;
}
.callback-attention-banner span{
    margin-top:2px!important;
    font-size:10px!important;
    color:#8a6a2f!important;
}
.callback-attention-banner .button-link{
    white-space:nowrap!important;
}
.callback-list-row.due,
.callback-list-row.missed{
    box-shadow:inset 3px 0 0 #d97706!important;
}
.callback-list-row.missed{
    box-shadow:inset 3px 0 0 #dc2626!important;
}
.callback-list-row.due .queue-priority,
.callback-list-row.missed .queue-priority{
    font-weight:900!important;
}
.quick-time-picker{
    background:#f8fbff!important;
}
.quick-time-head{
    align-items:center!important;
}
.slot-rule-badge{
    display:inline-flex!important;
    align-items:center!important;
    min-height:28px!important;
    padding:5px 9px!important;
    border:1px solid #cfe0f1!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#41617f!important;
    font-size:9px!important;
    font-weight:850!important;
    letter-spacing:.04em!important;
    white-space:nowrap!important;
}
.quick-time-slot{
    transition:transform .12s ease,box-shadow .12s ease,background .12s ease!important;
}
.quick-time-slot:hover{
    transform:translateY(-1px)!important;
}
.quick-time-empty{
    grid-column:1 / -1!important;
    padding:14px!important;
    border:1px dashed #cbd8e7!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#718096!important;
    font-size:11px!important;
    text-align:center!important;
}
.time-picker-field select,
.callback-field-label select{
    min-height:42px!important;
    background:#fff!important;
}

/* Current users: proper admin directory, not a raw settings table. */
.users-table-wrap{
    overflow:auto!important;
    border:1px solid var(--pulse-border)!important;
    border-radius:14px!important;
    background:#fff!important;
}
.settings-page .users-admin-table{
    min-width:940px!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
}
.settings-page .users-admin-table th{
    position:sticky!important;
    top:0!important;
    z-index:1!important;
    padding:12px 13px!important;
    background:#f7f9fc!important;
}
.settings-page .users-admin-table td{
    padding:12px 13px!important;
    vertical-align:middle!important;
    background:#fff!important;
}
.settings-page .users-admin-table tbody tr:hover td{
    background:#f8fbff!important;
}
.settings-page .users-admin-table th:nth-child(1){width:23%!important}
.settings-page .users-admin-table th:nth-child(2){width:20%!important}
.settings-page .users-admin-table th:nth-child(3){width:13%!important}
.settings-page .users-admin-table th:nth-child(4){width:13%!important}
.settings-page .users-admin-table th:nth-child(5){width:13%!important}
.settings-page .users-admin-table th:nth-child(6){width:12%!important}
.settings-page .users-admin-table th:nth-child(7){width:12%!important}
.settings-user-cell{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    min-width:0!important;
}
.settings-user-cell>div:last-child{
    min-width:0!important;
}
.settings-user-cell strong,
.settings-user-cell span{
    display:block!important;
}
.settings-user-cell strong{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:12px!important;
    color:#172033!important;
}
.settings-user-cell span{
    margin-top:2px!important;
    font-size:9px!important;
    color:#8290a2!important;
}
.settings-username{
    display:block!important;
    max-width:230px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#52657d!important;
}
.settings-role-badge,
.settings-status-badge{
    display:inline-flex!important;
    align-items:center!important;
    min-height:25px!important;
    padding:4px 8px!important;
    border-radius:999px!important;
    font-size:9px!important;
    font-weight:850!important;
    letter-spacing:.04em!important;
    white-space:nowrap!important;
}
.settings-role-badge.super_admin{
    background:#eee8ff!important;
    color:#6541a5!important;
}
.settings-role-badge.admin{
    background:#eaf2ff!important;
    color:#1557b0!important;
}
.settings-role-badge.tech,
.settings-role-badge.sales{
    background:#f1f5f9!important;
    color:#475569!important;
}
.settings-status-badge.active{
    background:#eaf8f0!important;
    color:#137443!important;
}
.settings-status-badge.inactive,
.settings-status-badge.locked{
    background:#fff0f0!important;
    color:#b42318!important;
}
.settings-user-actions{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
}
.settings-user-actions .button-link,
.settings-user-actions .btn-danger{
    min-height:32px!important;
    padding:6px 9px!important;
    border-radius:8px!important;
    white-space:nowrap!important;
    font-size:10px!important;
}
.settings-user-actions form.inline{
    display:inline-flex!important;
    margin:0!important;
}

/* Reports filter: team + member selection is first-class. */
.reports-filter-card .report-filters{
    grid-template-columns:150px 150px minmax(150px,.7fr) minmax(190px,1fr) auto auto!important;
}
.report-team-table td{
    vertical-align:middle!important;
}
.report-team-table .ops-person{
    min-width:150px!important;
}

/* Dashboard technical table uses the same availability hierarchy as Live Team Queue. */
.team-performance-table tbody tr{
    transition:background .15s ease!important;
}
.team-performance-table tbody tr:hover{
    background:#f8fbff!important;
}
.team-performance-table .presence-label{
    min-width:76px!important;
    justify-content:center!important;
}

/* Mobile keeps the density but permits intentional horizontal scrolling. */
@media(max-width:900px){
    .callback-attention-banner{
        grid-template-columns:auto minmax(0,1fr)!important;
    }
    .callback-attention-banner .button-link{
        grid-column:2!important;
        justify-self:start!important;
    }
}
@media(max-width:760px){
    .live-queue-table,
    .team-live-table,
    .case-register-table,
    .users-admin-table{
        min-width:980px!important;
    }
    .callback-attention-banner{
        grid-template-columns:auto minmax(0,1fr)!important;
    }
    .callback-attention-banner .button-link{
        grid-column:2!important;
    }
    .slot-rule-badge{
        align-self:flex-start!important;
    }
}

/* V11 work-report send workflow */
.v11-report-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.v11-report-form label{display:flex;flex-direction:column;gap:7px;font-weight:600}
.v11-report-form input,.v11-report-form select{width:100%;min-width:0}
.v11-report-form .v11-pdf-upload,.v11-report-form .v11-mail-preview,.v11-report-form .form-note,.v11-report-form button{grid-column:1/-1}
.v11-report-form .v11-pdf-upload{padding:16px;border:1px dashed var(--border,#cbd5e1);border-radius:12px;background:var(--panel-soft,#f8fafc)}
.v11-report-form .v11-pdf-upload small,.v11-report-form .form-note{font-weight:400;color:var(--muted,#64748b)}
.v11-mail-preview{padding:18px;border:1px solid var(--border,#dbe3ee);border-radius:12px;background:var(--panel-soft,#f8fafc);line-height:1.65}
.v11-mail-preview p{margin:10px 0}
@media(max-width:760px){.v11-report-form{grid-template-columns:1fr}.v11-report-form>*{grid-column:1/-1}}

/* V11 Work Reports: dedicated responsive layout, isolated from legacy case forms. */
.v11-report-intro{align-items:center!important;margin:0 0 22px!important}
.v11-report-intro .section-tag{white-space:nowrap!important}
.v11-report-compose{padding:0!important;overflow:hidden!important;margin-bottom:20px!important}
.v11-report-panel-head{display:flex!important;align-items:center!important;gap:14px!important;padding:23px 26px!important;border-bottom:1px solid #e6edf6!important;background:linear-gradient(115deg,#f8fbff 0%,#fff 70%)!important}
.v11-report-icon{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;border-radius:13px!important;background:#e8f1ff!important;color:#1459b8!important;font-size:25px!important;font-weight:800!important}
.v11-report-panel-head h2{margin:0 0 5px!important;font-size:20px!important;font-weight:800!important;color:#122b50!important}
.v11-report-panel-head p{margin:0!important;color:#64748b!important;font-size:12px!important;line-height:1.5!important}
.v11-report-form{display:flex!important;flex-direction:column!important;gap:22px!important;padding:25px 26px 26px!important;width:100%!important;box-sizing:border-box!important}
.v11-report-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px 20px!important;width:100%!important}
.v11-report-form .v11-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;min-width:0!important;margin:0!important;color:#344761!important;font-size:12px!important;font-weight:750!important;line-height:1.4!important}
.v11-report-form .v11-field>span{display:flex!important;align-items:center!important;gap:6px!important;min-height:17px!important}
.v11-report-form .v11-field b{color:#d14343!important;font-weight:900!important}
.v11-report-form .v11-field small{font-size:10px!important;color:#718198!important;font-weight:500!important}
.v11-report-form .v11-field input,.v11-report-form .v11-field select{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;height:44px!important;min-height:44px!important;border:1px solid #cbd8e8!important;border-radius:10px!important;background:#fff!important;color:#172b46!important;padding:10px 12px!important;font-size:13px!important;font-weight:500!important;line-height:1.3!important;box-shadow:0 1px 2px rgba(15,23,42,.025)!important}
.v11-report-form .v11-field input:focus,.v11-report-form .v11-field select:focus{outline:0!important;border-color:#4d8de8!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)!important}
.v11-upload-card{display:flex!important;align-items:center!important;gap:16px!important;padding:19px!important;border:1px dashed #9fb9dc!important;border-radius:14px!important;background:#f7faff!important;min-width:0!important}
.v11-upload-symbol{display:grid!important;place-items:center!important;flex:0 0 50px!important;width:50px!important;height:58px!important;border-radius:10px!important;background:#e5efff!important;color:#1d5bb7!important;font-size:13px!important;font-weight:900!important;letter-spacing:.04em!important}
.v11-upload-copy{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
.v11-upload-copy strong{font-size:13px!important;color:#1b3150!important}
.v11-upload-copy span{font-size:11px!important;line-height:1.5!important;color:#5e6f86!important}
.v11-upload-copy small{font-size:10px!important;color:#7a8aa0!important}
.v11-report-form .v11-file-picker{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin:0!important;color:#52637a!important;font-size:11px!important;font-weight:600!important}
.v11-file-picker span{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:10px 13px!important;border-radius:9px!important;background:#1769e0!important;color:#fff!important;font-size:11px!important;font-weight:800!important;cursor:pointer!important;white-space:nowrap!important}
.v11-file-picker input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
.v11-file-picker em{max-width:180px!important;overflow-wrap:anywhere!important;color:#63758d!important;font-style:normal!important;font-size:10px!important}
.v11-email-preview{border:1px solid #dce6f2!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important;min-width:0!important}
.v11-preview-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:15px!important;padding:17px 20px!important;border-bottom:1px solid #e7edf5!important;background:#f8fbff!important}
.v11-preview-heading .eyebrow{font-size:9px!important;letter-spacing:.1em!important;font-weight:900!important;color:#6480a5!important}
.v11-preview-heading h3{margin:3px 0 0!important;font-size:15px!important;color:#193253!important}
.v11-preview-badge{display:inline-flex!important;padding:6px 9px!important;border-radius:999px!important;background:#eaf3ff!important;color:#255b9d!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important}
.v11-preview-subject{display:flex!important;align-items:flex-start!important;gap:14px!important;padding:12px 20px!important;border-bottom:1px solid #edf1f6!important;background:#fcfdff!important}
.v11-preview-subject span{flex:0 0 55px!important;color:#7a8ba2!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.05em!important;padding-top:2px!important}
.v11-preview-subject strong{font-size:12px!important;color:#203a5c!important;overflow-wrap:anywhere!important;font-weight:750!important}
.v11-preview-body{padding:18px 20px 12px!important;font-size:12px!important;line-height:1.7!important;color:#26384f!important}
.v11-preview-body p{margin:0 0 13px!important;font-size:12px!important;line-height:1.7!important}
.v11-email-signature{border-top:1px solid #edf1f5!important;margin-top:16px!important;padding-top:12px!important;color:#52647a!important}
.v11-email-signature p{margin-bottom:10px!important}
.v11-email-signature strong{color:#26384f!important}
.v11-send-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;padding-top:2px!important}
.v11-send-assurance{display:flex!important;align-items:flex-start!important;gap:10px!important;min-width:0!important}
.v11-check{display:grid!important;place-items:center!important;flex:0 0 26px!important;width:26px!important;height:26px!important;border-radius:50%!important;background:#e7f7ed!important;color:#177245!important;font-weight:900!important}
.v11-send-assurance strong{display:block!important;color:#1d3b5e!important;font-size:12px!important}
.v11-send-assurance p{margin:3px 0 0!important;color:#6b7c92!important;font-size:10px!important;line-height:1.5!important}
.v11-report-form .v11-send-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:22px!important;min-height:46px!important;min-width:205px!important;padding:12px 17px!important;border-radius:10px!important;font-size:12px!important;font-weight:850!important;box-shadow:0 5px 12px rgba(23,105,224,.18)!important}
.v11-send-button span:last-child{font-size:18px!important;line-height:1!important}
.v11-report-form .v11-send-button:hover{filter:brightness(.97)!important;transform:translateY(-1px)!important}
@media(max-width:760px){.v11-report-form{padding:18px!important;gap:18px!important}.v11-report-fields{grid-template-columns:1fr!important;gap:14px!important}.v11-report-panel-head{padding:18px!important}.v11-upload-card{align-items:flex-start!important;flex-wrap:wrap!important;padding:14px!important}.v11-upload-copy{flex-basis:calc(100% - 70px)!important}.v11-report-form .v11-file-picker{flex-basis:100%!important;padding-left:66px!important}.v11-send-footer{align-items:stretch!important;flex-direction:column!important}.v11-report-form .v11-send-button{width:100%!important}.v11-preview-heading{align-items:flex-start!important;flex-direction:column!important}.v11-preview-subject,.v11-preview-body{padding-left:14px!important;padding-right:14px!important}}

/* V11 Quotes — professional compose, selectable price plans, and pre-send review */
.quote-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:26px auto 18px;max-width:1280px;padding:0 2px}
.quote-intro h1{font-size:clamp(27px,3vw,36px);line-height:1.15;margin:7px 0 8px;color:#0a2342;font-weight:800;letter-spacing:-.035em}
.quote-intro p{margin:0;color:#647895;font-size:14px;max-width:760px}
.quote-intro-tags{display:flex;gap:8px;flex-wrap:wrap}
.quote-compose-card,.quote-register-card,.quote-review-card{max-width:1280px;margin:0 auto 22px;background:#fff;border:1px solid #dbe5f1;border-radius:18px;box-shadow:0 12px 34px rgba(19,49,83,.055);overflow:hidden}
.quote-compose-card{padding:26px}
.quote-card-heading,.quote-register-heading,.quote-review-top{display:flex;align-items:center;gap:15px;margin-bottom:23px}
.quote-heading-icon,.quote-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#e7f1ff,#f1f6ff);color:#075bd8;font-weight:850;font-size:20px;flex:none}
.quote-card-heading h2,.quote-register-heading h2,.quote-review-top h2{font-size:22px;color:#0c2341;margin:3px 0 4px;font-weight:800;letter-spacing:-.025em}
.quote-card-heading p,.quote-register-heading p{margin:0;color:#6b7e98;font-size:13px}
.quote-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}
.quote-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#233b59;font-size:13px;font-weight:700}
.quote-field>span{display:flex;gap:7px;align-items:center}.quote-field b{color:#d43d4e}.quote-field small{font-weight:500;color:#7587a0;background:#f1f5fa;border-radius:5px;padding:2px 6px}
.quote-field input,.quote-field select,.quote-field textarea{box-sizing:border-box;width:100%;min-height:43px;border:1px solid #cbd8e8;border-radius:9px;padding:10px 12px;background:#fbfdff;color:#152c49;font:inherit;font-weight:500;outline:none;transition:border-color .15s,box-shadow .15s}
.quote-field textarea{min-height:88px;resize:vertical}.quote-field input:focus,.quote-field select:focus,.quote-field textarea:focus{border-color:#4388ef;box-shadow:0 0 0 3px rgba(37,111,225,.12);background:#fff}
.quote-plans-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:29px 0 13px;padding-top:22px;border-top:1px solid #e6edf6}
.quote-plans-head h3{margin:0 0 4px;font-size:17px;color:#102a49}.quote-plans-head p{margin:0;color:#72839b;font-size:13px}.quote-plan-count,.quote-register-count{padding:7px 11px;border:1px solid #d9e6f7;border-radius:999px;background:#f4f8ff;color:#225eae;font-size:12px;font-weight:750;white-space:nowrap}
.quote-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.quote-plan-option{display:grid;grid-template-columns:20px minmax(0,1fr) minmax(125px,155px);align-items:center;gap:11px;min-height:62px;padding:12px 13px;border:1px solid #dce5f0;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;position:relative}
.quote-plan-option:has(.quote-plan-check:checked){border-color:#5a95ef;background:#f5f9ff;box-shadow:0 0 0 2px rgba(45,117,225,.07)}
.quote-plan-check{position:absolute;opacity:0;width:1px;height:1px}.quote-plan-checkmark{display:grid;place-items:center;width:20px;height:20px;border:1.5px solid #b8c8dc;border-radius:6px;color:transparent;font-size:13px;font-weight:900;background:#fff}.quote-plan-check:checked+.quote-plan-checkmark{background:#1769df;border-color:#1769df;color:#fff}.quote-plan-check:focus-visible+.quote-plan-checkmark{outline:3px solid #b9d4ff}
.quote-plan-name{font-size:13px;font-weight:750;color:#213b5c}.quote-plan-price{display:flex;align-items:center;gap:6px;color:#7b8ca2;font-size:10px;font-weight:800}.quote-plan-price input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d3deeb;border-radius:7px;padding:8px 7px;background:#f8fafc;color:#193451;font:inherit;font-size:13px}.quote-plan-price input:enabled{background:#fff;border-color:#aac6ed}.quote-plan-price input:disabled{opacity:.5;cursor:not-allowed}
.quote-form-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:22px;align-items:stretch;margin-top:24px}.quote-terms-field textarea{min-height:120px}.quote-total-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border:1px solid #d4e2f4;border-radius:13px;padding:19px;background:linear-gradient(145deg,#f4f8ff,#fff)}.quote-total-card>span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#617795}.quote-total-card strong{font-size:27px;letter-spacing:-.04em;color:#0a2b53}.quote-total-card small{color:#7586a0;font-size:11px;line-height:1.5;margin-bottom:9px}.quote-total-card button{width:100%;min-height:45px;border:0;border-radius:9px;background:#075fdb;color:white;font-weight:800;font-size:13px;cursor:pointer;box-shadow:0 6px 14px rgba(6,95,219,.2)}.quote-total-card button:hover,.quote-send-confirm:hover{background:#064fb7}
.quote-register-card{padding:24px 0 0}.quote-register-heading{justify-content:space-between;padding:0 25px;margin-bottom:18px}.quote-register-table{min-width:1000px}.quote-register-table th{padding:13px 15px;background:#f6f9fd;color:#627792;text-transform:uppercase;letter-spacing:.055em;font-size:10px;border-top:1px solid #e7edf5;border-bottom:1px solid #e1e9f3;text-align:left}.quote-register-table td{padding:14px 15px;border-bottom:1px solid #e8eef6;vertical-align:top;color:#273e5b;font-size:12px}.quote-register-table td small{display:block;color:#8291a6;font-size:10px;margin-top:5px;overflow-wrap:anywhere}.quote-register-table tbody tr:hover{background:#fbfdff}.quote-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:850;letter-spacing:.035em;background:#edf2f8;color:#52647a;white-space:nowrap}.status-draft{background:#eef2f8;color:#596c83}.status-sent{background:#e9f3ff;color:#1557a5}.status-delivered{background:#e5f8ee;color:#167448}.status-bounced,.status-send-failed{background:#fff0ef;color:#b12c35}.status-reply-received{background:#eee9ff;color:#5c40a4}.status-expired,.status-cancelled{background:#f0f1f3;color:#697484}.status-accepted{background:#def7e8;color:#146a43}.quote-review-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 11px;border-radius:8px;background:#0b62d8;color:#fff!important;text-decoration:none;font-weight:750;white-space:nowrap}.quote-action-muted{font-size:11px;color:#75869b}.quote-revision-details{margin-top:9px}.quote-revision-details summary{cursor:pointer;color:#315d91;font-size:11px;font-weight:750}.quote-revision-details form{min-width:190px;display:grid;gap:6px;margin-top:8px}.quote-revision-details textarea,.quote-revision-details input{width:100%;box-sizing:border-box;border:1px solid #d2deec;border-radius:6px;padding:7px;font:inherit;font-size:11px}.quote-revision-details button{border:1px solid #c8d8ee;background:#f5f8fc;border-radius:6px;padding:7px;cursor:pointer;color:#23486f;font-weight:700}.quote-empty{text-align:center!important;padding:40px 15px!important}.quote-empty .quote-empty-icon{margin:0 auto 12px}.quote-empty strong{display:block;font-size:15px;color:#173555}.quote-empty p{color:#7a8ca3}.quote-register-note{display:flex;gap:10px;align-items:flex-start;padding:15px 24px;background:#f7faff;color:#71829a;font-size:11px;line-height:1.55}.quote-register-note strong{color:#24496f;white-space:nowrap}.quote-review-card{padding:27px;max-width:980px}.quote-review-top{justify-content:space-between;padding-bottom:17px;border-bottom:1px solid #e7edf5}.quote-email-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0 0 20px}.quote-email-meta>div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;padding:10px 0;border-bottom:1px solid #edf1f6}.quote-email-meta dt{color:#73849c;font-size:12px;font-weight:700}.quote-email-meta dd{margin:0;color:#183657;font-size:13px;font-weight:650;overflow-wrap:anywhere}.quote-email-body{padding:24px;background:#fff;border:1px solid #e2e9f2;border-radius:12px;color:#253a53;font-size:14px;line-height:1.7}.quote-email-body h3{font-size:15px;color:#183452}.quote-email-body hr{border:0;border-top:1px solid #dce5ef;margin:22px 0}.quote-preview-table{width:100%;border-collapse:collapse;margin:17px 0}.quote-preview-table th,.quote-preview-table td{padding:11px;border:1px solid #dce5ef;text-align:left;font-size:12px}.quote-preview-table th{width:170px;background:#f7f9fc}.quote-preview-options{padding:0;margin:0;list-style:none}.quote-preview-options li{display:flex;justify-content:space-between;gap:14px;padding:7px 10px;border-bottom:1px solid #edf1f6}.quote-preview-options li:last-child{border-bottom:0}.quote-confirm-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding-top:20px;border-top:1px solid #e7edf5}.quote-confirm-footer strong{color:#173554;font-size:14px}.quote-confirm-footer p{color:#71839b;font-size:12px;margin:5px 0 0}.quote-send-confirm{border:0;border-radius:9px;background:#0b62d8;color:#fff;padding:13px 19px;font-weight:800;cursor:pointer;white-space:nowrap}
@media(max-width:800px){.quote-intro{align-items:flex-start;flex-direction:column;padding:0 14px}.quote-compose-card{padding:18px;margin:0 10px 18px}.quote-form-grid,.quote-plan-grid,.quote-form-bottom,.quote-email-meta{grid-template-columns:1fr}.quote-plan-option{grid-template-columns:20px minmax(0,1fr) minmax(112px,135px)}.quote-register-card{margin:0 10px 18px}.quote-review-card{padding:17px;margin:0 10px 18px}.quote-confirm-footer{align-items:stretch;flex-direction:column}.quote-send-confirm{width:100%}.quote-email-body{padding:14px}.quote-register-heading{padding:0 16px}.quote-register-note{flex-direction:column;gap:3px}}
.quote-reply-link{display:block;margin-top:7px;font-size:11px;font-weight:800;color:#5d43a6;text-decoration:underline;text-underline-offset:3px}.quote-reply-body{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;background:#f7f9fc;border:1px solid #e0e8f2;border-radius:10px;padding:18px;color:#203a58;max-height:65vh;overflow:auto}


/* V11 Reply & Postcode workflow additions (preserving V10 styling) */
/* V11 proposed appointment/pickup fields and dated communication history */
.quote-schedule-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px;border:1px solid #dbe5f2;border-radius:14px;background:#f7faff;margin:4px 0 12px}
.quote-schedule-fields[hidden]{display:none!important}
.quote-schedule-fields h3,.quote-schedule-fields p{grid-column:1/-1;margin:0}
.quote-schedule-fields p{color:#60738e;font-size:13px;margin-top:-8px}
.quote-reply-history{display:flex;flex-direction:column;gap:4px;margin-top:6px;min-width:150px}
.quote-reply-history .quote-reply-link{display:block;font-size:11px;line-height:1.45;white-space:nowrap}
@media(max-width:760px){.quote-schedule-fields{grid-template-columns:1fr}}

/* V11 reply sync and postcode/time-zone workflow */
.v11-inline-sync{display:inline-flex;gap:8px;align-items:center;margin-top:10px}.v11-mailbox-check-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.v11-timezone-preview{display:block;font-size:12px;color:#245b8f;margin-top:5px}.v11-no-time-option{display:flex;gap:10px;align-items:flex-start;border:1px solid #d7dfeb;border-radius:10px;padding:12px;margin:8px 0 14px;background:#f8fafc}.v11-no-time-option input{margin-top:4px}.v11-no-time-option small{display:block;color:#5b6678;margin-top:4px}.quote-field small{line-height:1.4}


/* V11 quote option visibility fix */
.quote-plan-option[hidden] { display: none !important; }

/* V11 Knowledge Base: polished, responsive, self-contained styles */
.v11-kb-intro,.v11-kb-article-intro{align-items:center;gap:24px}.v11-kb-intro h1,.v11-kb-article-intro h1{letter-spacing:-.035em}.v11-kb-search-panel{padding:24px;margin-bottom:22px;background:linear-gradient(135deg,#fff,#f6f9ff);border:1px solid #dce6f3;box-shadow:0 12px 32px rgba(20,48,82,.06)}
.v11-kb-search-form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(190px,250px) auto;gap:12px;align-items:center}.v11-kb-search-input{display:flex;align-items:center;gap:10px;min-height:50px;padding:0 15px;border:1px solid #cbd8e8;border-radius:12px;background:#fff}.v11-kb-search-input span{font-size:24px;color:#54749c}.v11-kb-search-input input{width:100%;border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;padding:12px 0!important}.v11-kb-search-form select{min-height:50px;border:1px solid #cbd8e8;border-radius:12px;background:#fff;padding:0 12px}.v11-kb-quick-topics{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}.v11-kb-topic{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #dce5f0;border-radius:999px;background:#fff;color:#23476e;text-decoration:none;font-size:13px;font-weight:700;transition:transform .15s,border-color .15s,box-shadow .15s}.v11-kb-topic:hover{transform:translateY(-1px);border-color:#8caed4;box-shadow:0 4px 12px rgba(27,67,110,.08)}
.v11-kb-results-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:26px 0 14px}.v11-kb-results-head h2{margin:5px 0 4px;font-size:24px;letter-spacing:-.025em}.v11-kb-results-head p{margin:0;color:#64748b}.v11-kb-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:28px}.v11-kb-card{display:flex;flex-direction:column;min-height:255px;padding:20px;border:1px solid #dce5ef;border-radius:17px;background:#fff;box-shadow:0 5px 18px rgba(22,47,77,.045);transition:transform .16s,border-color .16s,box-shadow .16s}.v11-kb-card:hover{transform:translateY(-3px);border-color:#a9c2df;box-shadow:0 14px 28px rgba(22,47,77,.09)}.v11-kb-card-top,.v11-kb-card-meta,.v11-kb-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.v11-kb-category-label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#35628f}.v11-kb-card-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf5ff;color:#2764a0;font-weight:800}.v11-kb-card h3{margin:17px 0 9px;font-size:18px;line-height:1.32;letter-spacing:-.02em}.v11-kb-card h3 a{color:#173657;text-decoration:none}.v11-kb-card h3 a:hover{color:#1765b1}.v11-kb-card>p{margin:0 0 18px;color:#52657a;line-height:1.55;font-size:14px}.v11-kb-card-meta{margin-top:auto;padding-top:13px;border-top:1px solid #edf1f6;color:#728196;font-size:11px;flex-wrap:wrap}.v11-kb-card-footer{margin-top:15px}.v11-kb-card-footer a{font-size:13px;font-weight:800;text-decoration:none;color:#1763a8}.v11-kb-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf3ff;color:#2a5f96;font-size:11px;font-weight:800}.v11-kb-empty{text-align:center;padding:45px 20px}.v11-kb-editor{padding:25px}.v11-kb-section-title{display:flex;justify-content:space-between;gap:16px;align-items:start;padding-bottom:18px;border-bottom:1px solid #e7edf4;margin-bottom:20px}.v11-kb-section-title h2{margin:5px 0}.v11-kb-section-title p{margin:0;color:#65758a}.v11-kb-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.v11-kb-form-grid label,.v11-kb-case-note label{display:flex;flex-direction:column;gap:7px;color:#29435e;font-size:13px;font-weight:800}.v11-kb-form-grid label.wide{grid-column:1/-1}.v11-kb-form-grid input,.v11-kb-form-grid select,.v11-kb-form-grid textarea,.v11-kb-case-note textarea,.v11-kb-case-note select{width:100%;min-width:0;padding:11px 12px;border:1px solid #cbd7e5;border-radius:10px;background:#fff;color:#17324e;font:inherit;font-weight:500}.v11-kb-form-grid textarea,.v11-kb-case-note textarea{resize:vertical;line-height:1.5}.v11-kb-form-grid small{font-weight:500;color:#6b7c91}.v11-kb-form-actions{display:flex;align-items:center;gap:14px;margin-top:20px;flex-wrap:wrap}.v11-kb-form-actions span{font-size:12px;color:#6b7c91}.v11-kb-admin-actions{display:flex;gap:10px;flex-wrap:wrap}.v11-kb-admin-actions form{margin:0}.v11-kb-draft-notice{margin:0 0 18px;padding:12px 15px;border:1px solid #e8cf8c;border-radius:10px;background:#fff8e6;color:#775514;font-weight:700}
.v11-kb-reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;align-items:start}.v11-kb-article{padding:clamp(20px,3vw,34px)}.v11-kb-article-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #e9eef4;color:#718198;font-size:12px}.v11-kb-article section{margin-top:26px}.v11-kb-article section h2{font-size:20px;letter-spacing:-.02em;margin:0 0 10px;color:#173657}.v11-kb-article section>p{color:#4c6075;line-height:1.7}.v11-kb-safety{padding:16px 18px;border:1px solid #f0d9a4;border-radius:12px;background:#fff9e9}.v11-kb-steps{list-style:none;padding:0;margin:16px 0;display:grid;gap:18px}.v11-kb-steps li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:13px;align-items:start}.v11-kb-step-number{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eaf3ff;color:#1d5f9f;font-weight:900}.v11-kb-steps h3{margin:3px 0 7px;font-size:16px;color:#203c5b}.v11-kb-steps p{margin:0;color:#52657a;line-height:1.65}.v11-kb-expected{margin-top:11px;padding:11px 13px;border-left:3px solid #70a5d9;border-radius:0 8px 8px 0;background:#f4f8fd}.v11-kb-expected strong{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#3d638b}.v11-kb-expected p{margin-top:4px;font-size:13px}.v11-kb-escalate{padding:16px 18px;border:1px solid #f0c7c7;border-radius:12px;background:#fff6f6}.v11-kb-article-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin-top:30px;padding-top:20px;border-top:1px solid #e7edf4}.v11-kb-article-footer>span,.v11-kb-source-meta{font-size:12px;color:#738196}.v11-kb-source-card{position:sticky;top:18px;padding:22px;background:linear-gradient(160deg,#fff,#f5f9fe)}.v11-kb-source-card h3{margin:12px 0 8px;color:#173657}.v11-kb-source-card p{color:#607286;line-height:1.6;font-size:13px}.v11-kb-source-card>a{display:inline-flex;margin-top:5px;font-weight:800;color:#1763a8;text-decoration:none}.v11-kb-source-meta{border-top:1px solid #e4ebf3;margin-top:17px;padding-top:13px}.v11-kb-back{display:inline-block;margin-bottom:14px;color:#2c659e;text-decoration:none;font-weight:800}.v11-kb-case-note{margin-top:20px;padding:22px}.v11-kb-case-note form{display:grid;gap:14px;max-width:700px}
@media(max-width:1000px){.v11-kb-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v11-kb-reading-layout{grid-template-columns:1fr}.v11-kb-source-card{position:static}}@media(max-width:700px){.v11-kb-search-form,.v11-kb-form-grid,.v11-kb-card-grid{grid-template-columns:1fr}.v11-kb-form-grid label.wide{grid-column:auto}.v11-kb-results-head,.v11-kb-section-title,.v11-kb-intro,.v11-kb-article-intro{align-items:start;flex-direction:column}.v11-kb-editor{padding:17px}.v11-kb-card{min-height:unset}.v11-kb-article-footer{align-items:start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.v11-kb-card,.v11-kb-topic{transition:none}.v11-kb-card:hover,.v11-kb-topic:hover{transform:none}}

/* Pulse KB trusted web search and in-page source viewer */
.v11-kb-web-search{padding:24px;margin:22px 0 30px}.v11-kb-web-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px}.v11-kb-web-heading h2{margin:5px 0;font-size:22px}.v11-kb-web-heading p{margin:0;color:#64748b;max-width:760px}.v11-kb-live-tag{border:1px solid #cfe0f4;background:#eff6ff;color:#245b91;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;white-space:nowrap}.v11-kb-web-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v11-kb-web-card{border:1px solid #dce6f1;border-radius:13px;padding:16px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.v11-kb-web-card-domain{font-size:11px;color:#718198;overflow-wrap:anywhere}.v11-kb-web-card h3{font-size:16px;margin:8px 0}.v11-kb-web-card p{font-size:13px;line-height:1.5;color:#5c6f84;margin:0 0 14px;min-height:40px}.v11-kb-web-card .v11-kb-open-web{margin-top:auto}.v11-kb-web-fallback{font-size:12px;font-weight:700;margin-top:10px;color:#2365a5;text-decoration:none}.v11-kb-web-privacy{font-size:12px;color:#6b7b8e;margin:17px 0 0}.v11-kb-web-modal[hidden]{display:none}.v11-kb-web-modal{position:fixed;inset:0;z-index:99999;background:rgba(8,22,40,.68);padding:3vh 3vw;display:flex;align-items:center;justify-content:center}.v11-kb-web-modal-panel{width:min(1200px,96vw);height:min(900px,94vh);background:#fff;border-radius:16px;box-shadow:0 20px 80px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden}.v11-kb-web-modal-panel>header,.v11-kb-web-modal-panel>footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;border-bottom:1px solid #e6edf4}.v11-kb-web-modal-panel>header h2{margin:4px 0 0;font-size:20px}.v11-kb-web-modal-panel>footer{border-top:1px solid #e6edf4;border-bottom:0;justify-content:flex-end}.v11-kb-web-modal-panel iframe{border:0;width:100%;flex:1;min-height:0;background:#f5f8fc}.v11-kb-web-frame-note{font-size:12px;color:#5e6f82;background:#f5f8fc;margin:0;padding:9px 20px}.v11-kb-web-close{border:1px solid #ccd8e6;border-radius:9px;background:#fff;color:#183654;padding:8px 12px;font-weight:800;font-size:20px;cursor:pointer}.v11-kb-web-modal-panel>footer .v11-kb-web-close{font-size:14px}.v11-kb-article-footer{flex-wrap:wrap}
@media(max-width:900px){.v11-kb-web-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.v11-kb-web-grid{grid-template-columns:1fr}.v11-kb-web-heading{flex-direction:column}.v11-kb-web-modal{padding:0}.v11-kb-web-modal-panel{width:100%;height:100%;border-radius:0}}

/* KB team contribution workflow */
.v11-kb-intro-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.v11-kb-contribution{border:1px solid #dbe5f0;border-radius:12px;padding:18px;margin:16px 0;background:#fff}.v11-kb-contribution-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.v11-kb-contribution h3{margin:5px 0}.v11-kb-contribution time{font-size:12px;color:#718198;white-space:nowrap}.v11-kb-contribution pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8fc;border:1px solid #e1e8f0;border-radius:8px;padding:12px;font:13px/1.55 inherit;color:#213b56}.v11-kb-contribution .v11-kb-admin-actions{margin-top:14px}.v11-kb-contribution .v11-kb-admin-actions form{display:inline-flex}.v11-kb-frame-fallback{margin:0;padding:12px 18px;background:#fff8e6;color:#745316;border-top:1px solid #f0dfb5;font-size:13px}.v11-kb-frame-fallback p{margin:4px 0 0}@media(max-width:700px){.v11-kb-intro-actions,.v11-kb-contribution-head{align-items:stretch;flex-direction:column}}

/* V11 quote channel navigation */
.v11-quote-channel-tabs{display:flex;gap:8px;margin:14px 0 20px;border-bottom:1px solid #dbe2ea;flex-wrap:wrap}
.v11-quote-channel-tabs a{display:inline-block;padding:10px 16px;border:1px solid #dbe2ea;border-bottom:0;border-radius:8px 8px 0 0;background:#edf2f8;color:#1e3a5f;text-decoration:none;font-weight:700}
.v11-quote-channel-tabs a.active{background:#fff;color:#2563eb;box-shadow:inset 0 3px #2563eb}
[data-channel-field][hidden]{display:none!important}

/* Pulse readability pass: stronger contrast for secondary actions and status chips. */
.button-link,
a.button-link,
button.link,
.quote-review-link,
.quote-revision-details button,
.quote-revision-details summary,
.queue-assignment summary,
.mini-tag,
.type-chip,
.status-chip,
.quote-action-muted,
.quote-register-note,
.quote-status,
.report-stat-card span,
.report-member-card .muted,
.reports-stat-grid span,
.report-metric-grid span {
  color: #243b53 !important;
}
.button-link,
a.button-link {
  background: #fff !important;
  color: #124b85 !important;
  border: 1px solid #7597bc !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 35, 60, .08) !important;
}
.button-link:hover,
a.button-link:hover,
.quote-revision-details button:hover {
  background: #edf5ff !important;
  border-color: #245f9f !important;
  color: #0b3765 !important;
  text-decoration: none !important;
}
button.link {
  background: #fff !important;
  color: #124b85 !important;
  border: 1px solid #7597bc !important;
}
.mini-tag,
.type-chip {
  background: #e8eef5 !important;
  color: #344b63 !important;
}
.quote-action-muted,
.quote-register-note,
.quote-register-note strong,
.quote-register-note span,
.quote-register-note p {
  color: #465c73 !important;
}
.quote-status {
  border: 1px solid rgba(36, 59, 83, .18) !important;
  font-weight: 850 !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #1769e0 !important;
  outline-offset: 3px !important;
}

/* V4IT Pulse SMS reply workflow: high-contrast top-bar controls and reply actions */
header.pulse-header .pulse-userbar .link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:34px!important;padding:7px 10px!important;margin:0!important;
  border:1px solid #54708f!important;border-radius:7px!important;
  background:#17385f!important;color:#fff!important;font-weight:750!important;
  text-decoration:none!important;line-height:1.15!important;cursor:pointer!important;
}
header.pulse-header .pulse-userbar .link:hover,
header.pulse-header .pulse-userbar .link:focus-visible{
  background:#24517f!important;border-color:#91b9e8!important;color:#fff!important;
}
.quote-reply-link{display:inline-flex!important;align-items:center!important;justify-content:center;min-height:28px;padding:5px 9px;border:1px solid #b7c9e4;border-radius:7px;background:#edf4ff;color:#123e78!important;font-size:12px!important;font-weight:850!important;text-decoration:none!important;}
.quote-reply-link:hover,.quote-reply-link:focus-visible{background:#dceaff;color:#0b2d5c!important;border-color:#6c94ca;}
.quote-status.status-received{background:#e8e2ff;color:#4c2e91;}

/* V11 admin navigation grouping: reduces horizontal crowding without hiding core work areas. */
.pulse-nav-group{position:relative;align-self:center}
.pulse-nav-group>summary{list-style:none;cursor:pointer;padding:.55rem .8rem;border-radius:10px;color:inherit;font-weight:600;white-space:nowrap}
.pulse-nav-group>summary::-webkit-details-marker{display:none}
.pulse-nav-group>summary:after{content:' ▾';font-size:.8em;opacity:.75}
.pulse-nav-group[open]>summary{background:rgba(100,116,139,.14)}
.pulse-nav-submenu{position:absolute;z-index:1000;top:calc(100% + 6px);right:0;min-width:190px;display:flex;flex-direction:column;gap:3px;padding:8px;border:1px solid var(--line,#dbe2ea);border-radius:12px;background:var(--panel,#fff);box-shadow:0 12px 32px rgba(15,23,42,.16)}
.pulse-nav-submenu a{display:block;padding:9px 11px;border-radius:8px;text-decoration:none;white-space:nowrap}
.pulse-nav-submenu a:hover,.pulse-nav-submenu a:focus-visible{background:rgba(100,116,139,.12);outline:none}
@media(max-width:900px){.pulse-nav-group{align-self:stretch}.pulse-nav-submenu{position:static;min-width:0;box-shadow:none;margin-top:4px}.pulse-nav-submenu a{white-space:normal}}


/* Customer-first intake and accessible administration navigation. */
header.pulse-header .pulse-nav{overflow:visible!important;flex-wrap:wrap!important;align-content:center!important;column-gap:14px!important;row-gap:5px!important}
header.pulse-header .pulse-nav-group{position:relative!important;display:block!important;flex:0 0 auto!important;align-self:center!important}
header.pulse-header .pulse-nav-group>summary{display:block!important;padding:8px 10px!important;border-radius:8px!important;white-space:nowrap!important;cursor:pointer!important}
header.pulse-header .pulse-nav-submenu{position:absolute!important;left:0!important;right:auto!important;top:calc(100% + 7px)!important;min-width:230px!important;max-width:min(300px,85vw)!important;max-height:70vh!important;overflow-y:auto!important;z-index:10000!important;display:flex!important;flex-direction:column!important;gap:4px!important;padding:9px!important;background:#fff!important;color:#15243a!important;border:1px solid #cbd8e7!important;border-radius:12px!important;box-shadow:0 16px 40px rgba(5,20,40,.28)!important}
header.pulse-header .pulse-nav-submenu a{display:block!important;width:100%!important;box-sizing:border-box!important;padding:10px 12px!important;border-radius:8px!important;color:#15243a!important;white-space:normal!important;line-height:1.35!important;font-size:13px!important}
header.pulse-header .pulse-nav-submenu a:hover,header.pulse-header .pulse-nav-submenu a:focus-visible{background:#eaf2fc!important;color:#0b2340!important}
.v11-intake-contract-fields{padding:18px!important;border:1px solid #d5e2f2!important;border-radius:14px!important;background:#f8fbff!important;margin-top:8px!important}
.v11-intake-contract-fields[hidden]{display:none!important}
#v11-device-more-wrap[hidden]{display:none!important}
@media(max-width:1180px){header.pulse-header .pulse-nav{overflow:visible!important;flex-wrap:wrap!important}header.pulse-header .pulse-nav-submenu{left:0!important;right:auto!important}}
@media(max-width:760px){header.pulse-header .pulse-nav{overflow:visible!important;flex-wrap:wrap!important;gap:8px 12px!important}header.pulse-header .pulse-nav-group{align-self:center!important}header.pulse-header .pulse-nav-submenu{position:absolute!important;left:0!important;right:auto!important;top:calc(100% + 5px)!important;min-width:220px!important;box-shadow:0 12px 30px rgba(5,20,40,.24)!important}}


/* V12 navigation: keep Administration links in a true vertical dropdown, never inline. */
header.pulse-header .pulse-nav-group{position:relative!important;display:inline-flex!important;align-items:center!important;flex:0 0 auto!important}
header.pulse-header .pulse-nav-group>summary{display:inline-flex!important;align-items:center!important;gap:6px!important;cursor:pointer!important;white-space:nowrap!important;padding:9px 11px!important;border-radius:8px!important;list-style:none!important}
header.pulse-header .pulse-nav-group>summary::-webkit-details-marker{display:none!important}
header.pulse-header .pulse-nav-group[open]>.pulse-nav-submenu{display:flex!important;flex-direction:column!important;align-items:stretch!important;position:absolute!important;left:0!important;right:auto!important;top:calc(100% + 6px)!important;width:max-content!important;min-width:240px!important;max-width:min(320px,85vw)!important;max-height:70vh!important;overflow-y:auto!important;white-space:normal!important;z-index:10000!important}
header.pulse-header .pulse-nav-group[open]>.pulse-nav-submenu>a{display:block!important;float:none!important;width:100%!important;box-sizing:border-box!important;white-space:normal!important}
@media(max-width:760px){header.pulse-header .pulse-nav-group[open]>.pulse-nav-submenu{left:0!important;right:auto!important;min-width:min(240px,85vw)!important}}
.v12-subscription-status{border-left:4px solid #4f86c6!important}
.v12-duplicate-note{padding:10px 12px;border-radius:8px;background:var(--panel-muted,#f1f5f9);color:var(--muted,#52647a);font-size:13px;line-height:1.45}

/* V12 customer intake: keep the conditional quote/contract section hidden until selected. */
.v12-intake-secondary[hidden]{display:none!important}
.v12-intake-secondary{grid-column:1/-1;min-width:0;margin:2px 0 8px}
.v12-intake-secondary>.quote-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
@media(max-width:760px){.v12-intake-secondary>.quote-form-grid{grid-template-columns:minmax(0,1fr)}}

/* V12 layered ESET and payment follow-up panels */
.v12-eset-device-fields{margin-top:8px;padding:14px;border:1px solid #d5e2f2;border-radius:12px;background:#fff}
.v12-eset-device-fields[hidden],#v12-payment-callback-fields[hidden]{display:none!important}
#v12-device-os-list{margin-top:12px}
#v12-device-os-list .quote-field{min-width:0}
#v12-payment-callback-fields{gap:18px 20px}

/* V12.1 Google Places dropdown aligned with Pulse controls */
.pac-container{z-index:10050!important;font-family:inherit;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.16);margin-top:4px;overflow:hidden}.pac-item{padding:9px 12px;font-size:12px;cursor:pointer}.pac-item:hover{background:#eff6ff}.pac-item-query{font-size:12px;color:#172033}

/* V12.1 customer profile controls and contract lifecycle */
.v12-action-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.v12-action-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 16px!important;font-size:13px!important;font-weight:750!important;line-height:1.25!important;text-decoration:none!important;white-space:normal;border-radius:10px!important;cursor:pointer;box-sizing:border-box}
a.btn-primary,a.btn-secondary,a.btn-danger,button.btn-primary,button.btn-secondary,button.btn-danger{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;line-height:1.25;min-height:38px;padding:9px 14px;font-weight:700;cursor:pointer;box-sizing:border-box}
a.btn-primary:hover,button.btn-primary:hover{filter:brightness(.94);text-decoration:none!important}
a.btn-secondary:hover,button.btn-secondary:hover{background:#f4f7fb!important;border-color:#9fb7d8!important;text-decoration:none!important}
.v12-customer-actions .quote-form-bottom{display:block}
.v12-customer-actions form{display:inline-flex;margin:0}
.v12-lifecycle-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.v12-lifecycle-heading h2{margin:0}
.v12-lifecycle-summary{display:inline-flex;padding:7px 12px;border-radius:999px;background:#eaf3ff;color:#124b99;border:1px solid #c8defb;font-size:12px;font-weight:800}
.v12-lifecycle-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:12px;margin-top:14px}
.v12-lifecycle-card{border:1px solid #dce7f5;border-radius:13px;padding:15px;background:linear-gradient(180deg,#fff,#f9fbff);min-width:0}
.v12-lifecycle-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.v12-lifecycle-card-head strong{font-size:14px;color:#102a4c;overflow-wrap:anywhere}
.v12-lifecycle-chip{display:inline-flex;border-radius:999px;padding:5px 9px;background:#e9f2ff;color:#164b91;font-size:11px;font-weight:800}
.v12-lifecycle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v12-lifecycle-grid>div{border-top:1px solid #e7edf5;padding-top:8px;min-width:0}
.v12-lifecycle-grid small,.v12-lifecycle-grid strong{display:block}
.v12-lifecycle-grid small{font-size:10px;color:#667b96;margin-bottom:4px}
.v12-lifecycle-grid strong{font-size:12px;color:#183655;overflow-wrap:anywhere}
.v12-lifecycle-card-actions{margin-top:13px}
.v12-invoice-handover{border-color:#bcd7fb;background:#f8fbff}
.v12-bottom-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
@media(max-width:640px){.v12-action-buttons{display:grid;grid-template-columns:1fr}.v12-action-button{width:100%}.v12-lifecycle-grid{grid-template-columns:1fr}}

/* V12.1.1 customer profile layout and action-button polish */
.v12-customer-actions .v12-action-buttons{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap}
.v12-customer-actions .v12-action-button{display:inline-flex!important;align-items:center;justify-content:center;min-width:210px;min-height:44px;padding:12px 18px!important;border:1px solid transparent!important;border-radius:10px!important;font-weight:750!important;line-height:1.25!important;text-decoration:none!important;white-space:normal;box-sizing:border-box;transition:filter .15s ease,transform .15s ease}
.v12-customer-actions .btn-primary.v12-action-button{background:#075be8!important;color:#fff!important;border-color:#075be8!important}
.v12-customer-actions .btn-secondary.v12-action-button{background:#fff!important;color:#12365e!important;border-color:#b8cce6!important}
.v12-customer-actions .v12-action-button:hover{filter:brightness(.96);transform:translateY(-1px)}
.v12-customer-actions .v12-action-button:focus-visible{outline:3px solid #7eb6ff;outline-offset:2px}
.quote-register-card .quote-register-table td{vertical-align:top;line-height:1.5}
.quote-register-card .quote-register-table td strong{display:block;color:#102a4c;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.quote-register-card .quote-register-table td small{display:block;margin-top:5px;color:#5c7190;font-size:11px;line-height:1.55;overflow-wrap:anywhere;white-space:normal;max-width:440px}
.quote-register-card .quote-register-table td .btn-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:8px;text-decoration:none;font-weight:700;white-space:nowrap}
#v12-contract-actions .quote-form-bottom{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
#v12-contract-actions .quote-form-bottom>a.btn-primary{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;min-height:44px;padding:12px 18px!important;border:1px solid #075be8!important;border-radius:10px!important;background:#075be8!important;color:#fff!important;font-weight:750!important;text-decoration:none!important;white-space:normal;box-sizing:border-box}
#v12-contract-actions .quote-form-bottom form button{min-height:42px;padding:10px 15px;border-radius:9px;font-weight:700}
.v12-invoice-handover>a.btn-primary{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;min-height:44px;padding:12px 18px!important;border:1px solid #075be8!important;border-radius:10px!important;background:#075be8!important;color:#fff!important;font-weight:750!important;text-decoration:none!important;white-space:normal}
.v12-invoice-handover{margin-top:18px}
@media(max-width:640px){.v12-customer-actions .v12-action-buttons{display:grid;grid-template-columns:1fr}.v12-customer-actions .v12-action-button{width:100%;min-width:0}.quote-register-card .quote-register-table td small{max-width:none}}

/* V12.1.2 customer register/search and action polish */
.v12-test-recipient-settings{border:1px dashed #9bb8d9;background:#f7faff}
.v12-test-recipient-settings h2{font-size:1rem}
.v12-customer-search{display:grid;gap:7px;padding:14px 18px;margin:0 0 14px;background:#f6f9fd;border:1px solid #d6e3f4;border-radius:12px}
.v12-customer-search label{font-weight:700;font-size:13px;color:#17365d}
.v12-customer-search>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.v12-customer-search input{flex:1 1 280px;min-width:0;min-height:42px;padding:10px 12px;border:1px solid #bfd0e7;border-radius:9px;background:#fff;color:#122f50;font:inherit}
.v12-id-chip{display:inline-block;padding:4px 9px;border-radius:7px;background:#edf5ff;border:1px solid #c5dbf7;color:#0649a5;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.v12-delete-customer-form{display:flex;justify-content:flex-end;margin:0 0 14px}
.v12-action-buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.v12-action-button{display:inline-flex!important;align-items:center;justify-content:center;min-width:190px;min-height:44px;padding:12px 18px!important;border:1px solid transparent!important;border-radius:10px!important;font-weight:750!important;line-height:1.25!important;text-decoration:none!important;white-space:normal;box-sizing:border-box;cursor:pointer}
.v12-action-button.btn-primary{background:#075be8!important;color:#fff!important;border-color:#075be8!important}
.v12-action-button.btn-secondary{background:#fff!important;color:#12365e!important;border-color:#b8cce6!important}
.v12-action-button.btn-danger{background:#c62828!important;color:#fff!important;border-color:#c62828!important}
.v12-action-button:hover{filter:brightness(.96)}
.v12-action-button:focus-visible{outline:3px solid #7eb6ff;outline-offset:2px}
.v12-customer-actions a{color:inherit}
@media(max-width:640px){.v12-customer-search>div{display:grid;grid-template-columns:1fr}.v12-customer-search .v12-action-button{width:100%;min-width:0}.v12-action-buttons{display:grid;grid-template-columns:1fr}.v12-action-buttons .v12-action-button{width:100%;min-width:0}}

/* V12.1.3 polish: consistent Pulse buttons and compact Teams handover */
a.btn-primary,a.btn-secondary,a.btn-danger,
button.btn-primary,button.btn-secondary,button.btn-danger,
input[type="submit"].btn-primary,input[type="submit"].btn-secondary{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:10px 16px!important;box-sizing:border-box;
  border-radius:10px!important;font-family:inherit;font-size:13px!important;
  font-weight:750!important;line-height:1.25!important;text-align:center;
  text-decoration:none!important;white-space:normal;cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
a.btn-primary,button.btn-primary,input[type="submit"].btn-primary{
  background:#075be8!important;color:#fff!important;border:1px solid #075be8!important;
  box-shadow:0 2px 5px rgba(7,91,232,.16);
}
a.btn-secondary,button.btn-secondary,input[type="submit"].btn-secondary{
  background:#fff!important;color:#12365e!important;border:1px solid #b8cce6!important;
}
a.btn-danger,button.btn-danger{background:#c62828!important;color:#fff!important;border:1px solid #c62828!important}
a.btn-primary:hover,button.btn-primary:hover,input[type="submit"].btn-primary:hover{background:#064fc9!important;border-color:#064fc9!important;transform:translateY(-1px);text-decoration:none!important}
a.btn-secondary:hover,button.btn-secondary:hover,input[type="submit"].btn-secondary:hover{background:#f2f7fd!important;border-color:#8eadd5!important;text-decoration:none!important}
a.btn-danger:hover,button.btn-danger:hover{background:#a91f1f!important;border-color:#a91f1f!important}
a.btn-primary:focus-visible,a.btn-secondary:focus-visible,a.btn-danger:focus-visible,button.btn-primary:focus-visible,button.btn-secondary:focus-visible,button.btn-danger:focus-visible{outline:3px solid #8fc1ff;outline-offset:2px}
#v12-contract-actions .quote-form-bottom>a.v12-teams-quote-button{
  justify-self:start!important;align-self:start!important;display:inline-flex!important;
  width:auto!important;max-width:100%;min-width:230px;min-height:46px;height:auto!important;
  padding:12px 18px!important;margin:0 0 8px!important;grid-row:auto;
  background:#075be8!important;color:#fff!important;border:1px solid #075be8!important;
  border-radius:10px!important;font-size:14px!important;font-weight:800!important;
  line-height:1.3!important;text-decoration:none!important;white-space:normal;
  box-shadow:0 3px 9px rgba(7,91,232,.18);overflow-wrap:anywhere;
}
#v12-contract-actions .quote-form-bottom>a.v12-teams-quote-button:hover{background:#064fc9!important;transform:translateY(-1px)}
#v12-contract-actions .quote-form-bottom{align-items:start}
.v12-invoice-handover>a.btn-primary,.v12-invoice-handover>a.v12-action-button{width:auto!important;min-width:230px;max-width:100%;min-height:46px}
.v12-customer-actions .v12-action-button{min-width:210px;min-height:46px;font-size:14px!important}
.quote-register-table td .btn-primary,.quote-register-table td .btn-secondary,.quote-register-table td .btn-danger{margin:2px 4px 2px 0}
@media(max-width:640px){#v12-contract-actions .quote-form-bottom>a.v12-teams-quote-button,.v12-invoice-handover>a.btn-primary{width:100%!important;min-width:0}.v12-customer-actions .v12-action-button{width:100%;min-width:0}}

/* V12.1.4: final action-button layout correction across the customer page */
#v12-contract-actions .quote-form-bottom {
  display:flex !important; flex-flow:row wrap !important; align-items:center !important;
  justify-content:flex-start !important; gap:12px !important; width:100%;
}
#v12-contract-actions .quote-form-bottom > a.v12-teams-quote-button {
  display:inline-flex !important; flex:0 0 auto !important; width:auto !important;
  min-width:0 !important; max-width:100% !important; min-height:44px !important;
  height:auto !important; align-self:flex-start !important; justify-self:start !important;
  padding:11px 18px !important; margin:0 !important; border:1px solid #075be8 !important;
  border-radius:9px !important; background:#075be8 !important; color:#fff !important;
  font-family:inherit !important; font-size:14px !important; font-weight:700 !important; line-height:1.25 !important; text-align:center !important;
  text-decoration:none !important; white-space:normal !important; box-shadow:0 2px 5px rgba(7,91,232,.16) !important;
}
#v12-contract-actions .quote-form-bottom > a.v12-teams-quote-button:hover {
  background:#064fc9 !important; border-color:#064fc9 !important; transform:translateY(-1px);
}
.v12-invoice-handover { display:block; margin-top:20px; padding:22px 24px; }
.v12-invoice-handover .v12-invoice-request-button {
  display:inline-flex !important; flex:0 0 auto !important; width:auto !important;
  min-width:0 !important; max-width:100% !important; min-height:44px !important;
  align-items:center !important; justify-content:center !important; padding:11px 18px !important;
  border-radius:9px !important; font-family:inherit !important; font-size:14px !important; font-weight:700 !important; line-height:1.25 !important;
  text-align:center !important; text-decoration:none !important; white-space:normal !important;
  box-sizing:border-box !important;
}
.v12-invoice-handover .v12-invoice-request-button:disabled,
.v12-invoice-handover .v12-invoice-request-button[aria-disabled="true"] {
  background:#e5e9f0 !important; border:1px solid #cbd3df !important; color:#778397 !important;
  box-shadow:none !important; cursor:not-allowed !important; opacity:1 !important; transform:none !important;
}
.v12-disabled-action-note { margin:9px 0 0; color:#748196; font-size:12px; }
.v12-customer-actions .v12-action-buttons { align-items:center; }
.v12-customer-actions .v12-action-button,
.quote-register-table td .btn-primary,
.quote-register-table td .btn-secondary,
.quote-register-table td .btn-danger,
.table-row-actions .btn-primary,
.table-row-actions .btn-secondary {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  width:auto !important; min-width:0; max-width:100%; min-height:38px !important;
  padding:9px 14px !important; border-radius:9px !important; font-size:13px !important;
  font-weight:700 !important; line-height:1.25 !important; text-decoration:none !important;
  box-sizing:border-box !important; white-space:normal !important; cursor:pointer;
}
button:disabled, button[aria-disabled="true"] { cursor:not-allowed !important; }
@media(max-width:640px) {
  #v12-contract-actions .quote-form-bottom { display:flex !important; flex-direction:column !important; align-items:stretch !important; }
  #v12-contract-actions .quote-form-bottom > a.v12-teams-quote-button,
  .v12-invoice-handover .v12-invoice-request-button { width:100% !important; }
  .v12-invoice-handover { padding:18px; }
}


/* V12.1.5: quote/invoice panel layout — buttons must not inherit the panel's full-width flex sizing. */
#v12-contract-actions > .quote-form-bottom {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
  background: transparent !important;
}
#v12-contract-actions > .quote-form-bottom > a.v12-teams-quote-button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 190px !important;
  max-width: 100% !important;
  min-height: 42px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 18px !important;
  border: 1px solid #075be8 !important;
  border-radius: 9px !important;
  background: #075be8 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: 0 2px 5px rgba(7,91,232,.16) !important;
  cursor: pointer !important;
}
#v12-contract-actions > .quote-form-bottom > a.v12-teams-quote-button:hover {
  background: #064fc9 !important;
  border-color: #064fc9 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
#v12-contract-actions > .quote-form-bottom > form { display: inline-flex !important; flex: 0 0 auto !important; margin: 0 !important; }
#v12-contract-actions > .quote-form-bottom + .clean-panel,
#v12-contract-actions > .v12-invoice-handover { clear: both; }
.v12-invoice-handover .v12-invoice-request-button {
  display: inline-flex !important; width: auto !important; min-width: 190px !important;
  min-height: 42px !important; align-items: center !important; justify-content: center !important;
  padding: 10px 18px !important; border-radius: 9px !important; font: inherit !important;
  font-size: 14px !important; font-weight: 700 !important; line-height: 1.3 !important;
  text-align: center !important; text-decoration: none !important; box-sizing: border-box !important;
}
.v12-invoice-handover .v12-invoice-request-button:disabled,
.v12-invoice-handover .v12-invoice-request-button[aria-disabled="true"] {
  background: #e8edf4 !important; color: #78869a !important; border: 1px solid #cbd5e1 !important;
  opacity: 1 !important; box-shadow: none !important; cursor: not-allowed !important;
}
@media (max-width: 640px) {
  #v12-contract-actions > .quote-form-bottom { flex-direction: column !important; align-items: stretch !important; }
  #v12-contract-actions > .quote-form-bottom > a.v12-teams-quote-button,
  .v12-invoice-handover .v12-invoice-request-button { width: 100% !important; min-width: 0 !important; }
}


/* V12.1.6 robust profile-page action layout and readable contract details. */
#v12-contract-actions { overflow: visible !important; }
#v12-contract-actions .quote-form-bottom {
  display: flex !important; flex-flow: row wrap !important; align-items: center !important;
  justify-content: flex-start !important; gap: 12px !important; height: auto !important;
  min-height: 0 !important; padding: 0 !important; margin: 16px 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
#v12-contract-actions .quote-form-bottom > a.v12-teams-quote-button {
  display: inline-flex !important; flex: 0 0 auto !important; align-self: flex-start !important;
  width: fit-content !important; max-width: 100% !important; min-width: 200px !important;
  min-height: 44px !important; height: auto !important; padding: 12px 20px !important;
  align-items: center !important; justify-content: center !important; box-sizing: border-box !important;
  background: #075be8 !important; color: #ffffff !important; border: 1px solid #075be8 !important;
  border-radius: 9px !important; font-family: inherit !important; font-size: 14px !important;
  font-weight: 700 !important; line-height: 1.35 !important; text-align: center !important;
  text-decoration: none !important; white-space: normal !important; box-shadow: 0 2px 6px rgba(7,91,232,.20) !important;
}
#v12-contract-actions .quote-form-bottom > a.v12-teams-quote-button:hover,
#v12-contract-actions .quote-form-bottom > a.v12-teams-quote-button:focus-visible {
  background: #0647b8 !important; color: #ffffff !important; border-color: #0647b8 !important;
  text-decoration: none !important; outline: 3px solid rgba(7,91,232,.22) !important; outline-offset: 2px !important;
}
#v12-contract-actions .quote-form-bottom > form { display: inline-flex !important; width: auto !important; flex: 0 0 auto !important; margin: 0 !important; }
#v12-contract-actions .quote-form-bottom > form button { width: auto !important; min-height: 42px !important; }
.v12-customer-actions .v12-action-buttons { display:flex !important; flex-wrap:wrap !important; gap:12px !important; }
.v12-customer-actions .v12-action-button { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:42px !important; padding:10px 18px !important; border-radius:9px !important; font-weight:700 !important; text-decoration:none !important; }
.quote-register-table td small,
.quote-register-table td .muted,
.v12-customer-profile small,
.v12-customer-profile .plan-details,
.v12-contract-details small,
#v12-contract-actions .muted,
.v12-invoice-handover p,
.v12-disabled-action-note {
  color: #334155 !important; opacity: 1 !important; font-size: 13px !important; line-height: 1.55 !important;
}
.quote-register-table td small { display:block !important; margin-top:5px !important; }
.v12-invoice-handover { display:block !important; clear:both !important; margin-top:20px !important; padding:22px 24px !important; }
.v12-invoice-handover .v12-invoice-request-button { display:inline-flex !important; width:auto !important; min-width:200px !important; min-height:44px !important; align-items:center !important; justify-content:center !important; padding:12px 20px !important; box-sizing:border-box !important; border-radius:9px !important; font-family:inherit !important; font-size:14px !important; font-weight:700 !important; line-height:1.35 !important; text-align:center !important; text-decoration:none !important; }
.v12-invoice-handover .v12-invoice-request-button:disabled,
.v12-invoice-handover .v12-invoice-request-button[aria-disabled="true"] { background:#e8edf4 !important; color:#64748b !important; border:1px solid #cbd5e1 !important; opacity:1 !important; box-shadow:none !important; cursor:not-allowed !important; }
@media(max-width:640px) {
 #v12-contract-actions .quote-form-bottom { flex-direction:column !important; align-items:stretch !important; }
 #v12-contract-actions .quote-form-bottom > a.v12-teams-quote-button,
 .v12-invoice-handover .v12-invoice-request-button { width:100% !important; min-width:0 !important; }
}


/* V12.1.8 contract lifecycle: compact actions and readable included-service details */
.v12-plan-included strong { display:block; color:#102b4e !important; font-size:14px; line-height:1.45; font-weight:750; }
.v12-plan-included small { display:block; margin-top:6px; color:#334b67 !important; font-size:13px; line-height:1.6; white-space:normal; overflow-wrap:anywhere; }
.v12-contract-actions-cell { min-width:170px; vertical-align:top; }
.v12-contract-actions-cell form { margin:7px 0 0; }
.v12-contract-next-action, .v12-contract-actions-cell .v12-action-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:9px 13px; border-radius:9px; font-weight:700; font-size:13px; line-height:1.25; text-align:center; text-decoration:none !important; white-space:normal; }
.v12-next-action-note { display:inline-block; color:#203a58; background:#eef4fb; border:1px solid #c9d9eb; border-radius:8px; padding:9px 11px; font-size:13px; font-weight:700; line-height:1.4; }
.v12-payment-recorded { border-left:4px solid #17834a; }
.v12-contract-status-help { display:none !important; }


/* V4IT Pulse V12.1.10 — customer profile/case action controls; cache-busted with index.php */
.v12-case-action-button,
.table-row-actions a.btn-primary,
.table-row-actions a.btn-secondary,
.table-row-actions button.btn-primary,
.table-row-actions button.btn-secondary,
.table-row-actions form button,
.v12-customer-actions a.btn-primary,
.v12-customer-actions a.btn-secondary {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  min-height:38px !important;
  padding:9px 13px !important;
  border-radius:9px !important;
  font-family:inherit !important;
  font-size:13px !important;
  font-weight:750 !important;
  line-height:1.25 !important;
  text-align:center !important;
  text-decoration:none !important;
  white-space:normal !important;
  box-sizing:border-box !important;
  cursor:pointer !important;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease !important;
}
.v12-case-action-button.btn-primary,
.table-row-actions a.btn-primary,
.table-row-actions button.btn-primary {
  background:#075be8 !important;
  color:#fff !important;
  border:1px solid #075be8 !important;
  box-shadow:0 2px 5px rgba(7,91,232,.16) !important;
}
.v12-case-action-button.btn-secondary,
.table-row-actions a.btn-secondary {
  background:#fff !important;
  color:#12365e !important;
  border:1px solid #b8cce6 !important;
}
.v12-case-action-button:hover,
.table-row-actions a.btn-primary:hover,
.table-row-actions a.btn-secondary:hover,
.table-row-actions button:hover {
  text-decoration:none !important;
  transform:translateY(-1px) !important;
}
.table-row-actions { display:flex !important; flex-wrap:wrap !important; align-items:center !important; gap:8px !important; margin-top:8px !important; }
.table-row-actions form { display:inline-flex !important; width:auto !important; margin:0 !important; }
.table-row-actions form button { width:auto !important; }
.quote-register-table td .v12-case-action-button { margin:2px 4px 2px 0 !important; }
@media(max-width:640px) {
  .table-row-actions { align-items:stretch !important; }
  .table-row-actions a,.table-row-actions form,.table-row-actions form button { width:100% !important; }
}


/* V13 visual refresh: vibrant gradient surfaces, clearer hierarchy, responsive motion */
:root{--v13-ink:#14213d;--v13-muted:#61708b;--v13-blue:#4361ee;--v13-cyan:#4cc9f0;--v13-purple:#7209b7;--v13-lime:#b8f36b;--v13-card:rgba(255,255,255,.92);--v13-line:rgba(87,105,150,.17);--v13-shadow:0 18px 48px rgba(27,48,94,.10)}
html{scroll-behavior:smooth}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 8% 0%,rgba(76,201,240,.16),transparent 34%),radial-gradient(ellipse at 94% 12%,rgba(114,9,183,.10),transparent 30%),#f4f7ff;color:var(--v13-ink);line-height:1.5}
header{background:linear-gradient(115deg,#101b3d 0%,#243b83 58%,#4361ee 100%);box-shadow:0 8px 28px rgba(20,33,61,.22);border-bottom:1px solid rgba(255,255,255,.16);position:relative;z-index:5}
.brand{letter-spacing:-.04em;font-weight:850}.brand b{color:var(--v13-lime)}
nav a,.me a{transition:color .18s ease,background .18s ease;border-radius:10px;padding:7px 9px}nav a:hover,.me a:hover{background:rgba(255,255,255,.13);color:#fff}
main{max-width:1480px;padding:clamp(16px,2.4vw,34px)}
.clean-panel,.case-create-card,.queue-shell,.page-intro,.dashboard-card,.stat-card,.form-review{border:1px solid var(--v13-line);border-radius:22px;background:var(--v13-card);box-shadow:var(--v13-shadow);backdrop-filter:blur(12px);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.clean-panel:hover,.case-create-card:hover,.queue-shell:hover{border-color:rgba(67,97,238,.28);box-shadow:0 22px 55px rgba(27,48,94,.13)}
.page-intro{padding:clamp(20px,3vw,34px);background:linear-gradient(125deg,rgba(255,255,255,.97),rgba(239,244,255,.93));position:relative;overflow:hidden}
.page-intro:after{content:"";position:absolute;width:210px;height:210px;right:-65px;top:-95px;border-radius:50%;background:linear-gradient(135deg,rgba(76,201,240,.23),rgba(114,9,183,.12));pointer-events:none}
.page-intro h1{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.12;letter-spacing:-.045em;margin:.2em 0 .35em;font-weight:850}
.eyebrow,.section-tag{letter-spacing:.09em;text-transform:uppercase;font-size:.72rem;font-weight:800}
.section-tag{border:1px solid rgba(67,97,238,.18);background:#eef2ff;color:#3449b8;border-radius:999px;padding:7px 12px;white-space:nowrap}
button,.btn-primary,.btn-secondary,.btn-danger{border-radius:13px!important;font-weight:750;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;cursor:pointer}
button:hover,.btn-primary:hover,.btn-secondary:hover,.btn-danger:hover{transform:translateY(-2px);filter:saturate(1.08);box-shadow:0 9px 22px rgba(67,97,238,.20)}
button:active,.btn-primary:active,.btn-secondary:active,.btn-danger:active{transform:translateY(0) scale(.985)}
.btn-primary{background:linear-gradient(115deg,#4361ee,#7209b7);box-shadow:0 7px 18px rgba(67,97,238,.22)}
input,select,textarea{border:1px solid #d8e0f0!important;border-radius:12px!important;background:rgba(255,255,255,.94);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
input:focus,select:focus,textarea:focus{outline:none;border-color:#4361ee!important;box-shadow:0 0 0 4px rgba(67,97,238,.13)!important;background:#fff}
label{font-weight:700;color:#273657} .field-help{color:var(--v13-muted);font-weight:450}
.case-queue-list{gap:12px}.live-queue-row{border:1px solid var(--v13-line);border-radius:17px;background:#fff;box-shadow:0 6px 18px rgba(27,48,94,.05);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.live-queue-row:hover{transform:translateY(-2px);border-color:rgba(67,97,238,.35);box-shadow:0 12px 26px rgba(27,48,94,.10)}
.notification-count{background:linear-gradient(135deg,#ff477e,#f72585);box-shadow:0 0 0 3px rgba(247,37,133,.14)}
.queue-empty-state{border:1px dashed #c6d2e8;border-radius:20px;background:rgba(255,255,255,.7);padding:30px}
@keyframes v13-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.page-intro,.case-create-card,.queue-shell,.clean-panel{animation:v13-enter .42s ease both}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media(max-width:700px){main{padding:13px}.page-intro{border-radius:17px}.clean-panel,.case-create-card,.queue-shell{border-radius:17px}header{gap:8px;padding:10px 12px}.me{flex-wrap:wrap;white-space:normal}}

/* V40 user creation: clear role-dependent access controls */
.user-team-checkboxes{grid-column:1/-1;border:1px solid var(--line,#d9e2ef);border-radius:12px;padding:14px 16px;margin:0;min-width:0}
.user-team-checkboxes legend{font-weight:800;padding:0 6px}
.user-team-checkboxes .muted{margin-bottom:10px}
.user-team-checkboxes .team-check-option{display:inline-flex;align-items:center;gap:8px;margin:8px 18px 4px 0;font-weight:600}
.user-team-checkboxes .team-check-option input{width:auto;min-width:16px;margin:0}
.user-create-grid.accounts-create-mode{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.user-create-grid.accounts-create-mode{grid-template-columns:1fr}}

.accounts-copy-details{margin:0 0 14px}.accounts-review-actions{flex-wrap:wrap}.accounts-queue-card .quote-register-table td small{display:block;margin-top:4px}

/* Pulse 2.0 responsive safeguards: keep primary actions visible on laptop,
   tablet and mobile widths without relying on browser zoom. */
html, body { max-width:100%; overflow-x:hidden; }
img, video, iframe { max-width:100%; }
button, .btn-primary, .btn-secondary, .btn-danger, .table-action { max-width:100%; white-space:normal; }
.table-wrap, .quote-register-table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.case-layout, .case-summary-grid, .quote-form-grid { min-width:0; }
.case-layout > *, .case-summary-grid > *, .quote-form-grid > * { min-width:0; }
.pending-release-panel { margin-top:16px; }
.pending-release-panel p { margin:8px 0 14px; }
@media (max-width: 1100px) {
  .case-layout { grid-template-columns:minmax(0,1fr); }
  .case-layout aside { width:100%; }
  .quote-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .case-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-shell, .main-shell, .workspace, .page-content { min-width:0; width:100%; }
  .quote-form-grid, .case-summary-grid { grid-template-columns:minmax(0,1fr); }
  .section-head, .quote-register-heading, .hero-main { flex-wrap:wrap; gap:12px; }
  .table-row-actions, .v12-action-buttons { display:flex; flex-wrap:wrap; gap:8px; }
  .table-row-actions a, .table-row-actions button, .v12-action-buttons a, .v12-action-buttons button { flex:0 1 auto; }
  input, select, textarea { max-width:100%; min-width:0; }
}
