:root {
    color-scheme: light;
    --bg: #edf2f4;
    --ink: #172026;
    --muted: #5b6770;
    --line: #d7dee3;
    --panel: rgba(255, 255, 255, 0.9);
    --accent: #b4431f;
    --ok: #1f7a4d;
    --error: #b3261e;
    --shadow: 0 18px 55px rgba(18, 27, 34, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(180, 67, 31, 0.18), transparent 22%),
        radial-gradient(circle at left center, rgba(22, 91, 120, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fafb, var(--bg));
}

.shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 32px auto;
    display: grid;
    gap: 20px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero,
.panel,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero {
    padding: 40px;
}

.panel {
    padding: 28px;
}

.auth-card {
    width: min(540px, 100%);
    padding: 36px;
}

body.auth-page {
    background:
        linear-gradient(180deg, #8fcdf5 0%, #d9edfb 46%, #f8fbff 100%);
}

.auth-page .auth-shell::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42vh;
    background:
        radial-gradient(ellipse at 8% 72%, rgba(255, 255, 255, 0.94), transparent 30%),
        radial-gradient(ellipse at 28% 98%, rgba(255, 255, 255, 0.94), transparent 28%),
        radial-gradient(ellipse at 52% 80%, rgba(255, 255, 255, 0.96), transparent 31%),
        radial-gradient(ellipse at 76% 94%, rgba(255, 255, 255, 0.94), transparent 28%),
        radial-gradient(ellipse at 96% 78%, rgba(255, 255, 255, 0.95), transparent 30%);
    pointer-events: none;
}

.auth-brand {
    position: absolute;
    top: 22px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    z-index: 2;
}

.brand-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(29, 33, 37, 0.92);
    color: #fff;
    box-shadow: 0 10px 22px rgba(23, 32, 38, 0.16);
}

.sky-arc {
    position: absolute;
    left: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.48);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.sky-arc-large {
    bottom: 19vh;
    width: min(86vw, 980px);
    height: 290px;
}

.sky-arc-small {
    bottom: 17vh;
    width: min(66vw, 740px);
    height: 190px;
    opacity: 0.72;
}

.cloud {
    position: absolute;
    bottom: 15vh;
    width: 180px;
    height: 70px;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(18px);
    border-radius: 999px;
    pointer-events: none;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: inherit;
}

.cloud::before {
    width: 90px;
    height: 90px;
    left: 18px;
    bottom: 12px;
}

.cloud::after {
    width: 105px;
    height: 105px;
    right: 18px;
    bottom: 6px;
}

.cloud-left {
    left: 6vw;
}

.cloud-right {
    right: 7vw;
    bottom: 12vh;
}

.auth-card-sky {
    position: relative;
    z-index: 2;
    width: min(392px, calc(100vw - 32px));
    padding: 28px 30px 28px;
    text-align: center;
    border: 1px solid rgba(171, 198, 221, 0.85);
    background: linear-gradient(180deg, rgba(236, 248, 254, 0.82), rgba(255, 255, 255, 0.9));
    box-shadow:
        0 20px 50px rgba(100, 140, 176, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-card-setup {
    width: min(430px, calc(100vw - 32px));
}

.auth-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    color: #252a31;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(85, 103, 121, 0.12);
}

.auth-title {
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 2.3rem);
    line-height: 1;
}

.auth-copy {
    max-width: 28ch;
    margin: 0 auto 18px;
    color: #63707a;
    line-height: 1.45;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 0.95;
}

h2 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.copy,
.empty-state,
.error-text {
    color: var(--muted);
    line-height: 1.7;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.status.ok {
    color: var(--ok);
    background: rgba(31, 122, 77, 0.1);
}

.status.error {
    color: var(--error);
    background: rgba(179, 38, 30, 0.1);
}

.flash-stack {
    display: grid;
    gap: 10px;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    text-align: left;
}

.flash.success {
    color: var(--ok);
    border-color: rgba(31, 122, 77, 0.2);
    background: rgba(31, 122, 77, 0.08);
}

.flash.error {
    color: var(--error);
    border-color: rgba(179, 38, 30, 0.2);
    background: rgba(179, 38, 30, 0.08);
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.auth-form label {
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.auth-form input:focus {
    outline: 0;
}

.field-shell {
    display: grid;
    grid-template-columns: 18px 1fr 18px;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(214, 221, 228, 0.9);
    border-radius: 13px;
    background: rgba(235, 239, 244, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field-shell:focus-within {
    border-color: rgba(45, 87, 122, 0.45);
    background: rgba(241, 247, 251, 0.95);
}

.field-icon,
.field-trailing {
    color: #7b8791;
    font-size: 0.95rem;
    text-align: center;
}

.field-trailing {
    font-size: 0.85rem;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    font-size: 0.92rem;
}

.auth-link {
    color: #252a31;
    text-decoration: none;
}

.auth-link.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.primary-button,
.ghost-button,
.primary-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.primary-button,
.primary-link {
    border: 0;
    color: #fff;
    background: var(--accent);
}

.auth-submit {
    margin-top: 2px;
    min-height: 46px;
    border-radius: 13px;
    background: linear-gradient(180deg, #3e414c 0%, #1f2128 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 18px rgba(31, 33, 40, 0.18);
}

.ghost-button {
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.85);
}

.notice-card {
    margin-top: 22px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.notice-card p {
    margin-bottom: 12px;
}

.auth-divider {
    position: relative;
    margin: 18px 0 14px;
    color: #737f89;
    font-size: 0.86rem;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(194, 205, 214, 0.9);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background: rgba(248, 251, 254, 0.95);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-button {
    min-height: 46px;
    border: 1px solid rgba(214, 221, 228, 0.9);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.7);
    color: #242931;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 0;
}

.facts div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
}

.facts dt {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.facts dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.error-text {
    margin-top: 16px;
    color: var(--error);
}

.admin-shell {
    width: min(1360px, calc(100vw - 34px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.sidebar-card,
.dashboard-card,
.dashboard-payment {
    border: 1px solid #e4e7ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 40px rgba(49, 60, 89, 0.06);
}

.sidebar-card {
    padding: 14px 12px;
    position: sticky;
    top: 18px;
}

.sidebar-brand,
.sidebar-company,
.mini-person,
.contact-row,
.approval-head,
.payment-head,
.card-header,
.card-header-actions,
.employee-row,
.employee-name,
.sidebar-label-row,
.topbar-actions,
.social-meta {
    display: flex;
    align-items: center;
}

.sidebar-brand {
    gap: 10px;
    padding: 6px 8px 18px;
}

.sidebar-brand-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(180deg, #5f63ff, #3b43d1);
    color: #fff;
    font-weight: 800;
}

.sidebar-brand-name,
.sidebar-company-name,
.mini-name,
.meta-value,
.hours-summary,
.employee-name p {
    margin: 0;
    font-weight: 700;
    color: #191d2b;
}

.sidebar-brand-sub,
.sidebar-company-sub,
.mini-sub,
.meta-label,
.employee-name span,
.copy {
    margin: 0;
    color: #8088a1;
}

.sidebar-company {
    gap: 12px;
    padding: 12px;
    border: 1px solid #eceff6;
    border-radius: 14px;
    background: #fafbff;
}

.sidebar-company-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #20263b;
    color: #fff;
    font-weight: 800;
}

.sidebar-group {
    padding: 18px 6px 0;
}

.sidebar-bottom {
    border-top: 1px solid #eceff6;
    margin-top: 16px;
    padding-top: 16px;
}

.sidebar-label {
    margin: 0 0 10px;
    color: #8b92a7;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-label-row {
    justify-content: space-between;
    color: #8b92a7;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
}

.sidebar-link {
    padding: 12px 12px;
    border-radius: 10px;
    color: #3e4559;
    text-decoration: none;
    font-size: 0.95rem;
}

.sidebar-link.active {
    color: #3b43d1;
    background: #eef0ff;
    box-shadow: inset 0 0 0 1px #d9dcff;
}

.sidebar-tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    color: #4b5267;
    font-size: 0.94rem;
}

.sidebar-tags li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dot-blue { background: #5266ff; }
.dot-green { background: #2fc48d; }
.dot-yellow { background: #ffb224; }
.dot-purple { background: #8b54ff; }
.dot-indigo { background: #4f86ff; }

.admin-main {
    display: grid;
    gap: 14px;
}

.dashboard-payment {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.payment-overview {
    flex: 1;
}

.payment-head,
.card-header,
.approval-head,
.contact-row,
.social-meta {
    justify-content: space-between;
}

.payment-head h3,
.card-header h3,
.dashboard-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #171b28;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #a2a7b9;
}

.payment-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.meta-label {
    font-size: 0.78rem;
}

.meta-value {
    margin-top: 4px;
    font-size: 0.94rem;
}

.meta-value.small {
    font-size: 0.88rem;
    font-weight: 600;
}

.accent-value {
    color: #2a48d8;
}

.soft-button,
.tiny-outline,
.approve-button,
.reject-button {
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
}

.soft-button {
    align-self: start;
    padding: 10px 14px;
    border: 1px solid #e6e9f0;
    background: #fff;
    color: #384055;
}

.soft-button.small {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.dashboard-grid-top {
    display: grid;
    grid-template-columns: 1.08fr 1.6fr 0.9fr;
    gap: 14px;
}

.dashboard-grid-middle {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 14px;
}

.dashboard-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 0.72fr;
    gap: 14px;
}

.dashboard-side-stack,
.dashboard-mini-stack {
    display: grid;
    gap: 14px;
}

.dashboard-card {
    padding: 16px;
}

.toggle-strip {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px;
    border: 1px solid #eceff6;
    border-radius: 12px;
    background: #fafbff;
}

.toggle-pill {
    padding: 8px 10px;
    border-radius: 9px;
    text-align: center;
    color: #737b95;
    font-size: 0.82rem;
}

.toggle-pill.active {
    color: #4250d6;
    background: #fff;
    box-shadow: 0 1px 2px rgba(56, 65, 85, 0.08);
}

.mini-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.mini-person {
    gap: 12px;
}

.mini-person.compact {
    gap: 10px;
}

.avatar-badge {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #4952db, #3138ad);
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.avatar-badge.warm { background: linear-gradient(180deg, #de9462, #c96b3f); }
.avatar-badge.rose { background: linear-gradient(180deg, #cf7088, #ad445f); }
.avatar-badge.dark { background: linear-gradient(180deg, #362f46, #171725); }

.mini-name {
    font-size: 0.93rem;
}

.mini-sub,
.employee-name span,
.employee-role,
.copy {
    font-size: 0.8rem;
    line-height: 1.45;
}

.schedule-hours {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    color: #8c93a7;
    font-size: 0.78rem;
}

.hour-pill {
    justify-self: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #4852df;
    color: #fff;
}

.schedule-board {
    position: relative;
    margin-top: 12px;
    height: 190px;
    border-radius: 14px;
    background:
        linear-gradient(to right, transparent 0, transparent calc(25% - 1px), #eff2f7 calc(25% - 1px), #eff2f7 25%, transparent 25%, transparent calc(50% - 1px), #eff2f7 calc(50% - 1px), #eff2f7 50%, transparent 50%, transparent calc(75% - 1px), #eff2f7 calc(75% - 1px), #eff2f7 75%, transparent 75%),
        linear-gradient(to bottom, transparent 0, transparent calc(33.333% - 1px), #eff2f7 calc(33.333% - 1px), #eff2f7 33.333%, transparent 33.333%, transparent calc(66.666% - 1px), #eff2f7 calc(66.666% - 1px), #eff2f7 66.666%, transparent 66.666%),
        #fcfdff;
    overflow: hidden;
}

.schedule-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 47%;
    width: 2px;
    background: rgba(78, 87, 221, 0.72);
}

.schedule-item {
    position: absolute;
    padding: 8px 10px;
    border-radius: 0;
    font-size: 0.75rem;
    color: #1f2230;
}

.schedule-item.green { background: rgba(110, 220, 161, 0.45); }
.schedule-item.peach { background: rgba(248, 207, 177, 0.6); }
.schedule-item.mint { background: rgba(202, 216, 212, 0.72); }
.schedule-item.violet { background: rgba(203, 171, 255, 0.72); }

.tiny-chip,
.mini-tag,
.pill-dept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.tiny-chip {
    padding: 7px 10px;
    border: 1px solid #e4e7ef;
    color: #727b92;
}

.tiny-outline {
    padding: 7px 10px;
    border: 1px solid #d5daf8;
    background: #fff;
    color: #4250d6;
}

.active-until {
    color: #8a91a5;
    font-size: 0.78rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mini-tag,
.pill-dept {
    padding: 6px 10px;
    background: #f3f5fa;
    color: #4a5166;
}

.mini-tag.blue,
.pill-dept.blue {
    background: #eaf1ff;
    color: #3962d9;
}

.mini-tag.rose-text {
    background: #ffeef0;
    color: #cf526d;
}

.pill-dept.green {
    background: #e8fbf3;
    color: #1c9d68;
}

.employee-table {
    margin-top: 14px;
}

.employee-head,
.employee-row {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr;
    gap: 16px;
    align-items: center;
}

.employee-head {
    padding: 0 0 12px;
    color: #8d94a8;
    font-size: 0.76rem;
}

.employee-row {
    padding: 16px 0;
    border-top: 1px solid #edf0f6;
}

.employee-row-link {
    text-decoration: none;
    color: inherit;
}

.employee-row-link:hover {
    background: #fafbff;
}

.employee-name {
    gap: 10px;
}

.hours-summary {
    margin-top: 18px;
    font-size: 2.1rem;
}

.chart-legend {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    color: #7d859b;
    font-size: 0.78rem;
}

.legend-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 999px;
}

.legend-dot.indigo { background: #4450dd; }
.legend-dot.rose { background: #e8b4bd; }

.bar-chart {
    margin-top: 14px;
    height: 210px;
    padding: 8px 2px 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    align-items: end;
    background:
        linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #edf0f6 calc(25% - 1px), #edf0f6 25%, transparent 25%, transparent calc(50% - 1px), #edf0f6 calc(50% - 1px), #edf0f6 50%, transparent 50%, transparent calc(75% - 1px), #edf0f6 calc(75% - 1px), #edf0f6 75%, transparent 75%);
}

.bar-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    height: 100%;
    gap: 8px;
}

.bar-main,
.bar-overtime {
    width: 24px;
    display: block;
    border-radius: 0;
}

.bar-main {
    height: 74px;
    background: #4852df;
}

.bar-main.pale {
    background: #d8dceb;
}

.bar-overtime {
    height: 18px;
    background: #e8b5bf;
}

.bar-set.tall .bar-main { height: 84px; }
.bar-set.medium .bar-main { height: 82px; }
.bar-set.tallest .bar-main { height: 72px; }
.bar-set.tallest .bar-overtime { height: 40px; }
.bar-set.tiny .bar-main { height: 6px; width: 28px; }

.bar-set label {
    color: #8a92a6;
    font-size: 0.77rem;
}

.detail-meta-grid,
.date-pair {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.detail-meta-grid {
    grid-template-columns: repeat(2, 1fr);
}

.detail-meta-grid > div:last-child {
    grid-column: 1 / -1;
}

.approval-actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.approve-button,
.reject-button {
    padding: 11px 10px;
    background: #fff;
}

.approve-button {
    border: 1px solid #9bddc0;
    color: #169864;
}

.reject-button {
    border: 1px solid #ef939d;
    color: #d34a61;
}

.date-pair.single {
    grid-template-columns: 1fr;
}

.social-meta {
    margin-top: 14px;
    color: #7c859a;
    font-size: 0.82rem;
}

.social-second {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f6;
}

.logout-inline {
    display: flex;
    justify-content: flex-end;
}

.reports-header-card,
.editor-card {
    padding: 20px;
}

.report-form-shell {
    padding: 22px;
}

.report-form-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
}

.reports-kicker {
    margin: 0 0 8px;
    color: #7f87a0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-form-title,
.report-form-section-title {
    margin: 0;
    color: #171b28;
}

.report-form-copy {
    max-width: 76ch;
    margin: 10px 0 0;
    color: #636d86;
    line-height: 1.7;
}

.report-form-hero-meta {
    display: grid;
    gap: 8px;
    min-width: 180px;
    padding: 14px 16px;
    border: 1px solid #edf0f6;
    border-radius: 16px;
    background: #fafbff;
    color: #57617a;
    font-size: 0.88rem;
}

.report-form-card {
    border-top: 1px solid #edf0f6;
    padding-top: 20px;
}

.report-form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.report-editor-form {
    display: grid;
    gap: 18px;
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 6px;
}

.report-tab {
    padding: 11px 16px;
    border: 1px solid #e4e7ef;
    border-radius: 12px;
    background: #fff;
    color: #68718a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.report-tab.is-active {
    color: #3b43d1;
    background: #eef0ff;
    border-color: #d8dcff;
}

.report-tab-panel {
    display: none;
    padding: 18px;
    border: 1px solid #edf0f6;
    border-radius: 18px;
    background: #fcfdff;
}

.report-tab-panel.is-active {
    display: block;
}

.report-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.report-panel-header h5 {
    margin: 0;
    font-size: 1rem;
    color: #1b2235;
}

.report-panel-header p {
    margin: 6px 0 0;
    color: #6f7892;
    line-height: 1.6;
}

.report-panel-separator {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf0f6;
}

.report-editor-grid,
.report-repeatable-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.report-editor-field,
.report-repeatable-field {
    display: grid;
    gap: 8px;
}

.report-editor-grid .full-span,
.report-repeatable-grid .full-span {
    grid-column: 1 / -1;
}

.report-editor-field label,
.report-repeatable-field label {
    color: #1e2639;
    font-size: 0.9rem;
    font-weight: 600;
}

.report-editor-field input,
.report-editor-field select,
.report-editor-field textarea,
.report-repeatable-field input,
.report-repeatable-field select,
.report-repeatable-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe4ee;
    border-radius: 12px;
    background: #fbfcff;
    color: #182133;
    font: inherit;
}

.report-editor-field textarea,
.report-repeatable-field textarea {
    resize: vertical;
}

.report-editor-field .ck-editor,
.report-repeatable-field .ck-editor {
    width: 100%;
}

.report-rich-source {
    display: none;
}

.report-rich-editor {
    border: 1px solid #dfe4ee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.report-rich-editor.is-focused {
    border-color: #93a0ff;
    box-shadow: 0 0 0 3px rgba(66, 80, 214, 0.12);
}

.report-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e8ecf4;
    background: #f8faff;
}

.report-rich-toolbar button {
    border: 1px solid #d8deea;
    background: #fff;
    color: #1b2235;
    border-radius: 10px;
    padding: 7px 10px;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.report-rich-toolbar button:hover {
    border-color: #b8c4ff;
    background: #eef2ff;
}

.report-rich-editable {
    min-height: 180px;
    padding: 14px;
    color: #182133;
    line-height: 1.7;
    background: #fff;
}

.report-rich-editable:focus {
    outline: none;
}

.report-editor-field .ck-editor__editable_inline,
.report-repeatable-field .ck-editor__editable_inline {
    min-height: 170px;
}

.report-editor-field input:focus,
.report-editor-field select:focus,
.report-editor-field textarea:focus,
.report-repeatable-field input:focus,
.report-repeatable-field select:focus,
.report-repeatable-field textarea:focus {
    outline: 2px solid rgba(66, 80, 214, 0.14);
    border-color: #93a0ff;
}

.report-repeatable-list {
    display: grid;
    gap: 14px;
}

.report-repeatable-card {
    padding: 16px;
    border: 1px solid #edf0f6;
    border-radius: 16px;
    background: #fff;
    display: grid;
    gap: 14px;
}

.report-repeatable-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #1b2235;
}

.report-license-list {
    gap: 12px;
}

.report-license-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(180px, 0.8fr);
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #edf0f6;
}

.report-license-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.report-card-key {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f4f6fb;
    color: #66708a;
    font-size: 0.76rem;
    font-weight: 700;
}

.report-section-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.report-section-jump-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #e4e7ef;
    border-radius: 999px;
    background: #fff;
    color: #4f5871;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.report-section-jump-link:hover {
    color: #3143c7;
    border-color: #d8dcff;
    background: #f5f7ff;
}

.report-section-card {
    scroll-margin-top: 20px;
}

.report-section-heading-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-section-heading {
    position: relative;
    padding-left: 22px;
    color: #172545;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #f0c419;
    transform: translateY(-50%);
}

.report-checkbox-row-wrap {
    align-content: end;
}

.report-checkbox-row {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: #66708a !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
}

.report-checkbox-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.report-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.report-static-copy {
    margin: 0;
    color: #66708a;
    line-height: 1.7;
}

.reports-primary-btn,
.reports-outline-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.reports-primary-btn {
    border: 0;
    color: #fff;
    background: var(--accent);
}

.reports-outline-btn {
    border: 1px solid #dfe4ee;
    color: #1d2537;
    background: #fff;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.reports-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reports-title,
.editor-title {
    margin: 6px 0 0;
    color: #171b28;
}

.reports-table,
.editor-list,
.editor-stack {
    display: grid;
    gap: 12px;
}

.reports-table-head,
.reports-table-row {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr 1fr 1fr 120px;
    gap: 14px;
    align-items: center;
}

.reports-table-head {
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f6;
    color: #8d94a8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.reports-table-row {
    padding: 14px 0;
    border-bottom: 1px solid #edf0f6;
}

.report-slug {
    font-weight: 700;
    color: #2b3250;
}

.report-edit-link {
    text-decoration: none;
}

.report-row-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-form,
.editor-grid {
    display: grid;
    gap: 14px;
}

.editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-form label,
.editor-grid label,
.editor-row label,
.editor-block label {
    display: grid;
    gap: 8px;
}

.editor-form span,
.editor-grid span,
.editor-row span,
.editor-block span {
    font-size: 0.82rem;
    color: #6d7690;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.editor-form input,
.editor-form select,
.editor-grid input,
.editor-grid select,
.editor-row input,
.editor-row select,
.editor-form textarea,
.editor-grid textarea,
.editor-block textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe4ee;
    border-radius: 12px;
    background: #fbfcff;
    color: #182133;
    font: inherit;
}

.editor-form textarea,
.editor-grid textarea,
.editor-block textarea {
    resize: vertical;
}

.editor-form input:focus,
.editor-form select:focus,
.editor-grid input:focus,
.editor-grid select:focus,
.editor-row input:focus,
.editor-row select:focus,
.editor-form textarea:focus,
.editor-grid textarea:focus,
.editor-block textarea:focus {
    outline: 2px solid rgba(66, 80, 214, 0.14);
    border-color: #93a0ff;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
}

.editor-hint {
    margin-top: 6px;
    color: #7b849d;
    font-size: 0.92rem;
}

.editor-row {
    display: grid;
    grid-template-columns: 1fr 1fr 140px 120px;
    gap: 12px;
    align-items: end;
}

.editor-row-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-row-pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-row-builder {
    grid-template-columns: 1.4fr 1.6fr 140px 110px;
}

.row-remove {
    align-self: end;
}

.taxonomy-card {
    gap: 18px;
}

.taxonomy-description {
    color: #58627d;
    line-height: 1.7;
}

.taxonomy-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.taxonomy-subcard {
    padding: 16px;
    border: 1px solid #edf0f6;
    border-radius: 14px;
    background: #fcfdff;
    display: grid;
    gap: 12px;
}

.taxonomy-subhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.taxonomy-subhead h4 {
    margin: 4px 0 0;
    color: #1b2235;
}

.taxonomy-subcard p {
    margin: 0;
    color: #606a84;
    line-height: 1.65;
}

.taxonomy-submeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #7a839b;
    font-size: 0.92rem;
}

.taxonomy-submeta a {
    color: #3246d3;
    text-decoration: none;
    font-weight: 600;
}

.taxonomy-inline-button {
    white-space: nowrap;
}

.editor-block {
    padding: 16px;
    border: 1px solid #edf0f6;
    border-radius: 14px;
    background: #fcfdff;
    display: grid;
    gap: 12px;
}

.editor-section {
    display: grid;
    gap: 14px;
}

.editor-nested {
    padding: 16px;
}

.editor-grid .full,
.editor-block .full {
    grid-column: 1 / -1;
}

.check-field {
    display: flex !important;
    flex-direction: column;
    justify-content: end;
}

.check-field-inline {
    align-items: flex-start;
}

.check-field input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.checkbox-field {
    display: flex !important;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
}

.repeatable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.row-remove {
    align-self: end;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #f0c9ca;
    border-radius: 12px;
    background: #fff6f6;
    color: #b74242;
    font-weight: 600;
    cursor: pointer;
}

.row-remove:hover {
    background: #ffe8e8;
}

.leads-head,
.leads-row {
    grid-template-columns: 1.3fr 0.7fr 1.4fr;
}

.is-active-filter {
    border-color: #d8dcff;
    background: #eef0ff;
    color: #3b43d1;
}

.lead-value {
    margin: 0;
    color: #182133;
    font-size: 0.98rem;
    line-height: 1.6;
}

.lead-message {
    padding: 14px;
    border: 1px solid #e4e9f2;
    border-radius: 12px;
    background: #fbfcff;
    color: #334055;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 720px) {
    .shell {
        width: min(100vw - 20px, 1180px);
        margin: 10px auto 24px;
    }

    .hero,
    .panel,
    .auth-card {
        padding: 20px;
        border-radius: 18px;
    }

    .auth-brand {
        top: 18px;
        left: 18px;
    }

    .sky-arc-large {
        width: 110vw;
        height: 220px;
    }

    .sky-arc-small {
        width: 84vw;
        height: 150px;
    }

    .cloud-left {
        left: -20px;
    }

    .cloud-right {
        right: -24px;
    }

    .topbar,
    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1180px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .dashboard-grid-top,
    .dashboard-grid-middle,
    .dashboard-grid-bottom {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-shell {
        width: min(100vw - 16px, 1360px);
        margin: 8px auto 20px;
    }

    .dashboard-payment,
    .card-header,
    .payment-head,
    .approval-head,
    .contact-row,
    .social-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-grid,
    .employee-head,
    .employee-row,
    .detail-meta-grid,
    .date-pair {
        grid-template-columns: 1fr;
    }

    .reports-header,
    .reports-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .reports-table-head,
    .reports-table-row,
    .editor-grid,
    .editor-row,
    .taxonomy-subgrid,
    .report-editor-grid,
    .report-repeatable-grid,
    .report-form-card-header,
    .report-form-hero,
    .report-panel-header,
    .report-form-actions {
        grid-template-columns: 1fr;
    }

    .bar-chart {
        gap: 10px;
    }

    .employee-row {
        gap: 10px;
    }

    .report-license-row {
        grid-template-columns: 1fr;
    }
}
