:root {
    --bg: #070b12;
    --surface: #0f1622;
    --surface-2: #121c2b;
    --surface-3: #18263a;
    --text: #ecf3ff;
    --muted: #9db1cc;
    --accent: #66d6ff;
    --accent-2: #8c7dff;
    --danger: #ff7b9c;
    --border: rgba(148, 196, 255, 0.2);
    --glow: 0 0 0 1px rgba(102, 214, 255, 0.2), 0 0 35px rgba(102, 214, 255, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: radial-gradient(1200px 700px at 20% -10%, rgba(102, 214, 255, 0.15), transparent 60%), var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 14, 22, 0.88);
    backdrop-filter: blur(10px);
}

.top-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 214, 255, 0.45);
    color: #9fe6ff;
    font-weight: 700;
    letter-spacing: 0.07em;
    font-size: 0.74rem;
    box-shadow: var(--glow);
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.brand-subtle {
    font-size: 0.78rem;
    color: var(--muted);
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-nav-link {
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}

.top-nav-link.is-active,
.top-nav-link:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(148, 196, 255, 0.08);
    text-decoration: none;
}

.logout-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.welcome-text {
    color: var(--muted);
    font-size: 0.86rem;
}

.layout-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(18, 28, 43, 0.9), rgba(13, 20, 32, 0.94));
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: var(--glow);
}

.auth-heading h1 {
    margin: 0.6rem 0 0.2rem;
}

.auth-heading p {
    margin: 0;
    color: var(--muted);
}

.auth-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.auth-form label {
    color: var(--muted);
    font-size: 0.86rem;
}

.auth-form input {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.58rem 0.7rem;
}

.btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: linear-gradient(180deg, rgba(23, 34, 51, 0.9), rgba(16, 24, 36, 0.92));
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(4, 10, 16, 0.34);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: linear-gradient(180deg, rgba(30, 46, 70, 0.95), rgba(20, 31, 47, 0.96));
    border-color: rgba(102, 214, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(4, 10, 16, 0.42);
}

.btn-primary {
    border-color: rgba(102, 214, 255, 0.5);
    background: linear-gradient(180deg, rgba(27, 124, 150, 0.85), rgba(15, 84, 121, 0.94));
}

.btn-primary:hover {
    background: linear-gradient(180deg, rgba(32, 140, 170, 0.95), rgba(20, 98, 137, 1));
}

.btn-ghost {
    background: transparent;
}

.page-header {
    position: relative;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 196, 255, 0.18);
    background: linear-gradient(135deg, rgba(22, 34, 52, 0.82), rgba(16, 24, 36, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(4, 10, 16, 0.36);
    padding: 0.9rem 1rem;
    overflow: hidden;
}

.page-header::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(102, 214, 255, 0.28), rgba(102, 214, 255, 0));
    pointer-events: none;
}

.page-header.workspace.hero {
    border-color: rgba(140, 125, 255, 0.25);
}

.page-header h1 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
}

.page-header p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(160deg, rgba(20, 31, 47, 0.84), rgba(13, 20, 31, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(4, 10, 16, 0.35);
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1px solid rgba(102, 214, 255, 0.08);
    pointer-events: none;
}

.panel h2,
.panel h1 {
    margin: 0 0 0.75rem;
}


.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border: 1px solid rgba(102, 214, 255, 0.4);
    border-radius: 999px;
    padding: 0.3rem 0.66rem;
    font-size: 0.84rem;
    color: #aeeeff;
    background: linear-gradient(135deg, rgba(29, 74, 98, 0.55), rgba(45, 52, 129, 0.48));
    box-shadow: 0 0 0 1px rgba(102, 214, 255, 0.14), 0 0 18px rgba(102, 214, 255, 0.12);
}

.chip-shared {
    color: #d7c7ff;
    border-color: rgba(140, 125, 255, 0.5);
    background: rgba(54, 43, 94, 0.32);
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    border-bottom: 1px solid rgba(148, 196, 255, 0.14);
    text-align: left;
    padding: 0.62rem 0.5rem;
    vertical-align: top;
    font-size: 0.92rem;
}

.table th {
    color: #bad0e8;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(32, 49, 73, 0.8), rgba(21, 32, 48, 0.8));
}

.table tbody tr:nth-child(2n) td {
    background: rgba(148, 196, 255, 0.03);
}

.table tbody tr:hover td {
    background: rgba(102, 214, 255, 0.08);
}

.alert {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0.6rem 0.7rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.alert-success {
    border-color: rgba(102, 214, 255, 0.5);
    background: rgba(20, 79, 99, 0.45);
    color: #dcf6ff;
}

.alert-error {
    border-color: rgba(255, 123, 156, 0.5);
    background: rgba(88, 24, 46, 0.5);
    color: #ffd7e4;
}

.muted-line {
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-context {
    margin-top: 0.9rem;
}

.admin.context-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin.context-row h2 {
    margin: 0.1rem 0 0.2rem;
}

.admin.quick-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin.users-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.3fr) minmax(280px, 1fr);
    gap: 1rem;
    margin-top: 0.8rem;
}

.admin.users-list.panel,
.admin.user-actions.panel,
.admin-create-user.panel {
    background: linear-gradient(160deg, rgba(20, 31, 47, 0.92), rgba(13, 20, 31, 0.92));
}

.admin.users-list h3,
.admin.user-actions h3,
.admin-create-user h3 {
    margin: 0 0 0.6rem;
}

.admin.users-list input[type="search"] {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.7rem;
}

.admin-users-table tbody tr.is-selected td {
    background: rgba(102, 214, 255, 0.12);
}

.admin-users-table td:last-child {
    white-space: nowrap;
    width: 1%;
}

.admin.user-actions .auth-form {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(148, 196, 255, 0.16);
}

.admin-create-user {
    margin-top: 1rem;
}

.employee.stats-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.4rem;
    border: 1px solid rgba(148, 196, 255, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 31, 47, 0.92), rgba(12, 19, 30, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(4, 10, 16, 0.45);
}

.employee.stats-view-tabs {
    margin-bottom: 0.75rem;
}

.employee.stats-tab {
    display: inline-flex;
    position: relative;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-radius: 999px;
    border: 1px solid rgba(148, 196, 255, 0.18);
    padding: 0.5rem 1rem;
    font-size: 0.89rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: var(--muted);
    background: linear-gradient(180deg, rgba(17, 26, 40, 0.8), rgba(13, 20, 31, 0.8));
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.employee.stats-tab:hover {
    color: var(--text);
    border-color: rgba(102, 214, 255, 0.55);
    background: linear-gradient(180deg, rgba(28, 43, 64, 0.92), rgba(19, 30, 45, 0.92));
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(18, 46, 72, 0.45);
    text-decoration: none;
}

.employee.stats-tab.is-active {
    color: #08111d;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-color: rgba(220, 244, 255, 0.42);
    box-shadow: 0 10px 22px rgba(65, 139, 235, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.employee.stats-tab:focus-visible {
    outline: 2px solid rgba(102, 214, 255, 0.75);
    outline-offset: 1px;
}

body.is-confirmation-page {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
}

body.is-confirmation-page .layout-main.is-confirmation {
    flex: 1 1 auto;
}

.layout-main.is-confirmation {
    max-width: none;
    height: auto;
    min-height: 0;
    min-width: 0;
    overflow: visible;
    padding: 0.55rem 0.4rem 0.35rem;
}

.confirmation.page-root {
    height: auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.confirmation.page-root .confirmation.flash {
    flex: 0 0 auto;
    margin-bottom: 0.45rem;
}

.confirmation.inbox-shell {
    margin-top: 0.2rem;
}

.confirmation.inbox-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.confirmation.inbox-meta h2 {
    margin: 0;
}

.confirmation.inbox-meta h1 {
    margin: 0;
    font-size: 1.32rem;
}

.confirmation.inbox-meta p {
    margin: 0.2rem 0 0;
}

.confirmation.inbox-countline {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.confirmation.inbox-filter {
    display: grid;
    gap: 0.3rem;
    min-width: 180px;
}

.confirmation.inbox-filter-search {
    min-width: 280px;
}

.confirmation.inbox-filters {
    display: flex;
    align-items: end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.confirmation.inbox-refresh-btn {
    min-height: 36px;
}

.confirmation.inbox-filter label {
    color: var(--muted);
    font-size: 0.82rem;
}

.confirmation.inbox-filter select {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.45rem 0.58rem;
}

.confirmation.inbox-filter input[type="search"] {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.45rem 0.58rem;
    min-width: 0;
}

.confirmation.inbox-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
    gap: 0.9rem;
    align-items: start;
}

.confirmation.inbox-list-wrap {
    overflow-x: auto;
    border-radius: 12px;
}

.confirmation.inbox-table {
    table-layout: fixed;
}

.confirmation.inbox-table th,
.confirmation.inbox-table td {
    padding: 0.62rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.confirmation.inbox-col-time {
    width: 110px;
}

.confirmation.inbox-col-jnstatus {
    width: 140px;
    max-width: 18%;
}

.confirmation.inbox-col-first {
    width: 220px;
}

.confirmation.inbox-col-last {
    width: 150px;
}

.confirmation.inbox-col-address {
    width: auto;
}

.confirmation.inbox-col-product {
    width: 170px;
}

.confirmation.inbox-row {
    cursor: pointer;
}

.confirmation.inbox-row.is-new-lead td {
    background: rgba(74, 214, 125, 0.09);
}

.confirmation.inbox-row:hover td,
.confirmation.inbox-row.is-active td {
    background: rgba(102, 214, 255, 0.09);
}

.confirmation.inbox-row.is-new-lead:hover td {
    background: rgba(74, 214, 125, 0.13);
}

.confirmation.inbox-row.is-active td:first-child {
    box-shadow: inset 2px 0 0 rgba(102, 214, 255, 0.9);
}

.confirmation.inbox-row:focus-visible {
    outline: 2px solid rgba(102, 214, 255, 0.75);
    outline-offset: -2px;
}

.confirmation.inbox-cell {
    font-size: 0.9rem;
}

.confirmation.inbox-cell.time {
    font-weight: 650;
    color: var(--text);
    white-space: normal;
}

.confirmation.inbox-cell.product {
    color: var(--muted);
}

.confirmation.inbox-time-main {
    display: block;
    line-height: 1.25;
}

.confirmation.inbox-time-sub {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.76rem;
    line-height: 1.2;
    color: var(--muted);
}

.confirmation.detail-drawer {
    position: sticky;
    top: 4.6rem;
    display: flex;
    flex-direction: column;
    min-height: 620px;
}

.confirmation.detail-drawer h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.confirmation.detail-grid {
    margin: 0.55rem 0;
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.2fr);
    gap: 0.35rem 0.6rem;
}

.confirmation.detail-grid dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.confirmation.detail-grid dd {
    margin: 0;
}

.confirmation.detail-id {
    margin-top: 0.1rem;
}

.confirmation.detail-time-sub {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.confirmation.detail-actions {
    margin: 0.65rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.confirmation.drawer-subheading {
    width: 100%;
    margin: 0 0 0.35rem;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.confirmation.action-status {
    width: 100%;
    margin-top: 0.2rem;
}

.confirmation.call-history-section {
    margin: 0.75rem 0 0;
}

.confirmation.call-history-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.confirmation.call-history-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(148, 196, 255, 0.12);
    font-size: 0.88rem;
}

.confirmation.call-history-item:last-child {
    border-bottom: none;
}

.confirmation.call-history-time {
    flex: 1;
    min-width: 0;
    color: var(--text, #e8eef7);
}

.confirmation.call-history-by {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.confirmation.slot-options {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.confirmation.slot-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 196, 255, 0.22);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    background: rgba(18, 28, 43, 0.44);
}

.confirmation.slot-option input[type="radio"] {
    margin: 0;
}

.confirmation.slot-option em {
    font-style: normal;
    color: var(--muted);
}

.confirmation.slot-option.is-disabled {
    opacity: 0.55;
}

.confirmation.remind-form,
.confirmation.notes-form {
    margin-top: 0.65rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148, 196, 255, 0.16);
}

.confirmation.notes-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.confirmation.notes-form label {
    display: grid;
}

.confirmation.remind-form[hidden] {
    display: none;
}

.confirmation.remind-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.7rem;
}

.confirmation.remind-grid label {
    display: grid;
    gap: 0.3rem;
}

.confirmation.remind-grid span,
.confirmation.notes-form label span {
    color: var(--muted);
    font-size: 0.82rem;
}

.confirmation.remind-grid input,
.confirmation.remind-grid textarea,
.confirmation.notes-form textarea {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.52rem 0.62rem;
    font: inherit;
}

.confirmation.remind-note {
    grid-column: 1 / -1;
}

.confirmation.notes-actions {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.confirmation.notes-form textarea {
    flex: 1 1 auto;
    min-height: 170px;
}

.confirmation.reminder-preview {
    margin-top: 0.5rem;
    padding: 0.6rem;
    border: 1px solid rgba(148, 196, 255, 0.18);
    border-radius: 10px;
    background: rgba(18, 28, 43, 0.5);
}

.confirmation.reminder-preview-text {
    margin: 0.15rem 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
}

.confirmation.reminder-preview-meta {
    margin: 0.35rem 0 0;
}

.confirmation.board-shell {
    margin-top: 0.2rem;
    width: 100%;
    padding-inline: 0.35rem;
    flex: 0 0 auto;
    min-height: 0;
    min-width: 0;
}

.confirmation.board-scroll {
    overflow: visible;
    height: auto;
    padding: 0.15rem 0 0.5rem;
    border-radius: 14px;
}

.confirmation.board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(340px, 1fr));
    gap: 0.9rem;
    min-width: 0;
    height: auto;
    align-items: stretch;
}

.confirmation.lane {
    display: flex;
    flex-direction: column;
    height: 440px;
    min-height: 440px;
    overflow: hidden;
    padding: 0.72rem;
    border: 1px solid rgba(148, 196, 255, 0.28);
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.95), rgba(12, 20, 31, 0.95));
    box-shadow: 0 12px 28px rgba(4, 10, 16, 0.44);
}

.confirmation.lane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding: 0.15rem 0.15rem 0.35rem;
    border-bottom: 1px solid rgba(148, 196, 255, 0.16);
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.98), rgba(19, 29, 44, 0.9));
    backdrop-filter: blur(2px);
}

.confirmation.lane-header h2 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #eff6ff;
    letter-spacing: 0.02em;
}

.confirmation.lane-count {
    border-radius: 999px;
    border: 1px solid rgba(148, 196, 255, 0.35);
    background: rgba(28, 43, 64, 0.62);
    color: #d7ebff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.22rem 0.5rem;
}

.confirmation.lane-call-now .confirmation.lane-count {
    border-color: rgba(255, 194, 130, 0.55);
    color: #ffe7c8;
}

.confirmation.lane-past-due .confirmation.lane-count {
    border-color: rgba(255, 123, 156, 0.55);
    color: #ffd6e2;
}

.confirmation.lane-body {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 190, 255, 0.65) rgba(9, 14, 24, 0.9);
}

.confirmation.job-card {
    display: grid;
    gap: 0.38rem;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 196, 255, 0.24);
    background: linear-gradient(170deg, rgba(20, 31, 47, 0.92), rgba(12, 20, 31, 0.92));
    color: var(--text);
    text-align: left;
    padding: 0.72rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(4, 10, 16, 0.36);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.confirmation.job-card:hover {
    transform: translateY(-1px);
    border-color: rgba(102, 214, 255, 0.52);
    box-shadow: 0 14px 26px rgba(4, 10, 16, 0.45);
}

.confirmation.card-title-row {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
}

.confirmation.card-call-symbol {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255, 152, 88, 0.25);
    color: #ffdcb9;
    border: 1px solid rgba(255, 197, 129, 0.48);
    flex: 0 0 auto;
}

.confirmation.card-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmation.card-title-row .confirmation.id-pill {
    margin-top: 0;
    flex: 0 1 48%;
    min-width: 68px;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmation.card-employee {
    margin: 0;
    color: #d8ebff;
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmation.card-schedule {
    margin: 0;
    color: #e8f4ff;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.34rem;
    flex-wrap: wrap;
    line-height: 1.3;
}

.confirmation.card-location {
    margin: 0;
    color: #b6cae0;
    font-size: 0.79rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.confirmation.card-note {
    margin: 0.15rem 0 0;
    color: #cfdded;
    font-size: 0.79rem;
    line-height: 1.34;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.confirmation.save-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10050;
    border-radius: 10px;
    border: 1px solid rgba(102, 214, 255, 0.45);
    background: linear-gradient(170deg, rgba(26, 94, 122, 0.94), rgba(22, 62, 124, 0.94));
    color: #e6f7ff;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 12px 24px rgba(4, 10, 16, 0.45);
    font-size: 0.84rem;
    font-weight: 650;
}

.confirmation.save-toast.is-error {
    border-color: rgba(255, 123, 156, 0.5);
    background: linear-gradient(170deg, rgba(131, 44, 73, 0.94), rgba(89, 28, 55, 0.94));
}

.confirmation.id-pill {
    display: inline-flex;
    margin-top: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(140, 125, 255, 0.45);
    background: rgba(54, 43, 94, 0.35);
    color: #d9cbff;
    font-size: 0.72rem;
    padding: 0.13rem 0.5rem;
    letter-spacing: 0.01em;
}

.confirmation.time-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    border-radius: 999px;
    border: 1px solid rgba(102, 214, 255, 0.5);
    background: linear-gradient(135deg, rgba(25, 90, 115, 0.72), rgba(46, 52, 137, 0.7));
    color: #dff6ff;
    font-weight: 650;
    font-size: 0.82rem;
    padding: 0.2rem 0.55rem;
    box-shadow: 0 0 0 1px rgba(102, 214, 255, 0.18), 0 0 16px rgba(102, 214, 255, 0.2);
}

.confirmation.flash {
    margin-bottom: 0.8rem;
}

.confirmation.action-form {
    margin: 0;
}

.confirmation.action-btn {
    font-size: 0.82rem;
    font-weight: 650;
    padding: 0.35rem 0.55rem;
}

.confirmation.modal-actions .confirmation.action-btn {
    width: auto;
    min-width: 104px;
}

.confirmation.action-btn.is-cfm {
    border-color: rgba(102, 214, 255, 0.48);
    background: linear-gradient(170deg, rgba(20, 115, 146, 0.85), rgba(23, 64, 128, 0.85));
}

.confirmation.action-btn.is-nogo {
    border-color: rgba(255, 123, 156, 0.46);
    background: linear-gradient(170deg, rgba(143, 45, 77, 0.86), rgba(92, 28, 57, 0.86));
}

.confirmation.action-btn.is-remind {
    border-color: rgba(140, 125, 255, 0.48);
    background: linear-gradient(170deg, rgba(73, 61, 146, 0.86), rgba(45, 42, 101, 0.86));
}

.confirmation.action-btn.is-cancel {
    border-color: rgba(148, 196, 255, 0.35);
    background: linear-gradient(170deg, rgba(34, 52, 76, 0.88), rgba(22, 33, 49, 0.88));
}

.confirmation.action-btn.is-cancel-disposition {
    border-color: rgba(255, 160, 120, 0.42);
    background: linear-gradient(170deg, rgba(120, 52, 36, 0.9), rgba(76, 36, 28, 0.9));
}

.confirmation.note-modal-label {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.confirmation.note-modal-label span {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 620;
}

.confirmation.note-modal-textarea {
    width: 100%;
    min-height: 96px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.56rem 0.66rem;
    font: inherit;
    line-height: 1.35;
    resize: vertical;
}

.confirmation.note-modal-error {
    margin: 0.35rem 0 0;
    color: #ffb4b4;
    font-size: 0.85rem;
}

.confirmation.remind-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.65rem 0 0.85rem;
}

.confirmation.remind-preset-btn {
    font-size: 0.78rem;
    padding: 0.32rem 0.5rem;
}

.confirmation.detail-hit {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0.35rem;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: inherit;
    font: inherit;
    line-height: 1.35;
    cursor: pointer;
}

.confirmation.detail-hit:hover,
.confirmation.detail-hit:focus-visible {
    background: rgba(102, 214, 255, 0.1);
    outline: none;
}

.confirmation.detail-hit-inline {
    display: inline;
    width: auto;
    padding: 0.05rem 0.2rem;
}

.confirmation.detail-hit-main {
    display: block;
    font-weight: 650;
}

.confirmation.detail-hit-sub {
    display: block;
    margin-top: 0.15rem;
}

.confirmation.detail-cell.is-readonly {
    padding: 0.2rem 0.35rem;
    opacity: 0.92;
}

.confirmation.detail-edit-body {
    margin-top: 0.5rem;
}

.confirmation.detail-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.confirmation.detail-edit-grid.is-stack {
    grid-template-columns: 1fr;
}

@media (max-width: 520px) {
    .confirmation.detail-edit-grid {
        grid-template-columns: 1fr;
    }
}

.confirmation.time-bubble.is-remind-at {
    border-color: rgba(140, 125, 255, 0.52);
    background: linear-gradient(140deg, rgba(87, 67, 178, 0.86), rgba(42, 40, 112, 0.84));
    box-shadow: 0 0 0 1px rgba(140, 125, 255, 0.2), 0 0 16px rgba(140, 125, 255, 0.28);
}

.confirmation.time-bubble.is-created-at {
    border-color: rgba(255, 194, 130, 0.5);
    background: linear-gradient(140deg, rgba(120, 82, 36, 0.78), rgba(85, 62, 31, 0.78));
    color: #ffe9cf;
    box-shadow: 0 0 0 1px rgba(255, 194, 130, 0.2), 0 0 14px rgba(255, 194, 130, 0.2);
}

.confirmation.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 9, 16, 0.74);
    isolation: isolate;
}

.confirmation.modal-backdrop[hidden] {
    display: none;
}

.confirmation.modal-card {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    border: 1px solid rgba(148, 196, 255, 0.3);
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(21, 33, 50, 0.98), rgba(14, 22, 34, 0.98));
    box-shadow: 0 20px 48px rgba(4, 10, 16, 0.65);
    pointer-events: auto;
}

/* Block clicks on inbox/drawer while a modal is open (prevents click-through). */
body.confirmation-modal-open {
    overflow: hidden;
}

body.confirmation-modal-open .confirmation.page-root {
    pointer-events: none;
    user-select: none;
}

.confirmation.modal-card.is-large {
    width: min(920px, calc(100vw - 1.5rem));
}

.confirmation.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.confirmation.modal-head h3 {
    margin: 0;
}

.confirmation.modal-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
}

.confirmation.form-field.is-full {
    grid-column: 1 / -1;
}

.confirmation .js-readonly {
    opacity: 0.88;
}

.confirmation.modal-card h3 {
    margin: 0;
}

.confirmation.modal-form {
    margin-top: 0.75rem;
}

.confirmation.form-field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0;
    min-width: 0;
}

.confirmation.form-field span {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 620;
}

.confirmation.form-field input,
.confirmation.form-field textarea {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.56rem 0.66rem;
    font: inherit;
    line-height: 1.35;
    width: 100%;
    min-width: 0;
}

.confirmation.form-field textarea {
    resize: vertical;
    min-height: 96px;
}

.confirmation.modal-actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.confirmation.lane-body::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.confirmation.lane-body::-webkit-scrollbar-track {
    background: rgba(10, 16, 27, 0.9);
    border-radius: 999px;
}

.confirmation.lane-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(114, 203, 255, 0.85), rgba(119, 130, 255, 0.82));
    border-radius: 999px;
    border: 1px solid rgba(10, 16, 27, 0.85);
}

.confirmation.lane-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(138, 214, 255, 0.95), rgba(141, 150, 255, 0.94));
}

@media (min-width: 1024px) {
    .layout-main.is-confirmation .confirmation.flash,
    .layout-main.is-confirmation .confirmation.board-shell {
        width: 100%;
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .admin.users-layout {
        grid-template-columns: 1fr;
    }

    .admin.quick-links {
        width: 100%;
    }

    .admin.quick-links .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .employee.stats-tabs {
        flex-wrap: wrap;
    }

    .employee.stats-tab {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .confirmation.modal-grid {
        grid-template-columns: 1fr;
    }

    .confirmation.modal-actions {
        justify-content: stretch;
    }

    .confirmation.modal-actions .confirmation.action-btn {
        width: 100%;
    }

    .confirmation.board-grid {
        grid-template-columns: 1fr;
    }

    .confirmation.lane {
        height: 400px;
        min-height: 400px;
    }

    .confirmation.remind-grid {
        grid-template-columns: 1fr;
    }

    .confirmation.inbox-filters {
        width: 100%;
    }

    .confirmation.inbox-filter {
        min-width: 0;
        flex: 1 1 100%;
    }

    .confirmation.notes-actions .btn {
        width: 100%;
    }
}

@media (max-width: 1080px) {
    .layout-main.is-confirmation {
        padding: 0.45rem 0.2rem 0.3rem;
    }

    .confirmation.board-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }

    .confirmation.modal-card.is-large {
        width: min(860px, calc(100vw - 1rem));
    }

    .confirmation.inbox-layout {
        grid-template-columns: 1fr;
    }

    .confirmation.detail-drawer {
        position: static;
        min-height: 0;
    }

    .confirmation.inbox-col-time {
        width: 98px;
    }

    .confirmation.inbox-col-jnstatus {
        width: 120px;
        max-width: 22%;
    }

    .confirmation.inbox-col-first {
        width: 190px;
    }

    .confirmation.inbox-col-last {
        width: 130px;
    }

    .confirmation.inbox-col-product {
        width: 150px;
    }
}

@media (max-width: 860px) {
    .confirmation.board-grid {
        grid-template-columns: 1fr;
    }
}

.employee.stats-dept-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.employee.stats-dept-hint code {
    font-size: 0.82em;
}

.employee.stats-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.employee.stats-filter-panel {
    position: relative;
    z-index: 4;
    overflow: visible;
}

.employee.field-group {
    display: grid;
    gap: 0.35rem;
}

.employee.calendar-group {
    min-width: 280px;
}

.employee.field-group label {
    color: var(--muted);
    font-size: 0.84rem;
}

.employee.field-group input,
.employee.field-group select {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.58rem 0.7rem;
}

.employee.week-picker {
    position: relative;
}

.employee.week-picker-toggle {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.58rem 0.7rem;
    text-align: left;
    cursor: pointer;
}

.employee.week-picker-toggle:hover,
.employee.week-picker-toggle:focus-visible {
    border-color: rgba(102, 214, 255, 0.55);
    outline: none;
}

.employee.week-picker-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 20;
    width: min(100%, 360px);
    min-width: 300px;
    border-radius: 12px;
    border: 1px solid rgba(148, 196, 255, 0.24);
    background: rgba(15, 24, 38, 0.98);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    padding: 0.6rem;
}

.employee.week-picker-toolbar {
    display: grid;
    grid-template-columns: 2rem 1fr 2rem;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.employee.week-picker-nav {
    border: 1px solid rgba(148, 196, 255, 0.24);
    border-radius: 8px;
    background: rgba(24, 38, 58, 0.88);
    color: var(--text);
    min-height: 1.9rem;
    cursor: pointer;
}

.employee.week-picker-nav:hover {
    border-color: rgba(102, 214, 255, 0.62);
    background: rgba(33, 50, 76, 0.95);
}

.employee.week-picker-month-label {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.employee.week-picker-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.employee.week-picker-hint {
    margin: 0 0 0.45rem;
    font-size: 0.76rem;
}

.employee.week-picker-weeks {
    display: grid;
    gap: 0.22rem;
}

.employee.week-picker-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(27, 42, 64, 0.6);
    color: var(--text);
    padding: 0.2rem;
}

.employee.week-picker-row:hover {
    border-color: rgba(102, 214, 255, 0.45);
    background: rgba(35, 53, 80, 0.82);
}

.employee.week-picker-row.is-selected {
    border-color: rgba(102, 214, 255, 0.78);
    background: rgba(102, 214, 255, 0.2);
}

.employee.week-picker-daybtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    padding: 0;
    cursor: pointer;
}

.employee.week-picker-daybtn:hover {
    background: rgba(102, 214, 255, 0.12);
}

.employee.week-picker-daybtn.is-selected {
    background: rgba(102, 214, 255, 0.2);
}

.employee.week-picker-daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.45rem;
    min-width: 1.45rem;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
}

.employee.week-picker-daybtn.is-outside {
    opacity: 0.45;
    font-weight: 500;
}

.employee.week-picker-noscript {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.employee.filter-actions {
    display: flex;
    justify-content: flex-start;
}

.employee.stats-cards {
    margin-top: 1rem;
}

.employee.stats-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.employee.stats-section-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 650;
}

.employee.stats-section-intro {
    margin: 0 0 1rem;
}

.employee.stats-subpanel {
    margin-top: 1rem;
}

.employee.stats-subheading {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.employee.stats-channel-cards {
    margin-top: 0.25rem;
}

.employee.stats-section .stats.card {
    background: linear-gradient(180deg, rgba(20, 31, 47, 0.78), rgba(14, 23, 35, 0.78));
    border-color: rgba(148, 196, 255, 0.2);
}

.stats.card h2,
.stats.card h3 {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

.stats.value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.progress.track {
    width: 100%;
    height: 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(148, 196, 255, 0.14);
    overflow: hidden;
}

.progress.fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.stats.progress-meta {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.32rem;
    color: var(--muted);
}

.employee.goal-person-line {
    margin: 0 0 0.2rem;
}

.employee.goal-range-line {
    margin: 0 0 0.6rem;
}

.employee.goal-progress-block + .employee.goal-progress-block {
    margin-top: 0.8rem;
}

.progress.pct {
    margin-left: auto;
    color: var(--text);
    font-weight: 600;
}

/* ATSB workspace embed: solid shell so page gradient does not show through; one border, no iframe chrome */
.atsb-embed-panel {
    padding: 0;
    overflow: hidden;
    background: var(--surface);
}

.atsb-embed-frame {
    line-height: 0;
    background: #0a0e14;
}

.atsb-embed-panel iframe.atsb-embed {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 0;
    border-radius: 0;
    background: #0a0e14;
    vertical-align: top;
}

:focus-visible {
    outline: 2px solid rgba(102, 214, 255, 0.8);
    outline-offset: 1px;
}

.employee.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    margin: 0.9rem 0 1rem;
}

.employee.onboarding-grid .employee.field-group label .muted-line {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
}
