:root {
    --fs-bg: #0f0f12;
    --fs-bg-soft: #1a1a1f;
    --fs-surface: #25262e;
    --fs-surface-soft: #30313a;
    --fs-paper: #ffffff;
    --fs-text: #f8f8fa;
    --fs-muted: #d9d5ce;
    --fs-line: rgba(255, 167, 25, 0.32);
    --fs-gold: #ffbf2b;
    --fs-gold-strong: #ef9a00;
    --fs-sky: #62c7eb;
    --fs-sky-deep: #2a88b6;
    --fs-shadow: 0 24px 48px rgba(0, 0, 0, 0.52);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --module-bg-image: url("../images/modules/theme-gold.jpg");
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Sora", "Segoe UI", sans-serif;
    color: var(--fs-text);
    background:
        radial-gradient(1300px 560px at -12% -15%, rgba(255, 191, 43, 0.22), transparent 56%),
        radial-gradient(800px 430px at 120% 6%, rgba(98, 199, 235, 0.24), transparent 58%),
        linear-gradient(170deg, #111217 0%, #171920 45%, #0f0f12 100%);
}

body {
    position: relative;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 191, 43, 0.42);
    color: #1b160d;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            130deg,
            rgba(98, 199, 235, 0.03) 0,
            rgba(98, 199, 235, 0.03) 1px,
            transparent 1px,
            transparent 17px
        );
}

.bg-shape {
    position: fixed;
    z-index: -1;
    filter: blur(38px);
    opacity: 0.42;
}

.bg-shape-a {
    width: 440px;
    height: 440px;
    border-radius: 50%;
    top: -170px;
    right: -130px;
    background: radial-gradient(circle, rgba(255, 191, 43, 0.9) 0%, rgba(255, 191, 43, 0.2) 54%, transparent 70%);
}

.bg-shape-b {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    left: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(98, 199, 235, 0.82) 0%, rgba(98, 199, 235, 0.2) 58%, transparent 72%);
}

.topbar {
    width: min(1240px, 100% - 2rem);
    margin: 1rem auto 0;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.95rem;
    border: 1px solid rgba(255, 167, 25, 0.3);
    border-top: 2px solid rgba(98, 199, 235, 0.46);
    border-radius: var(--radius-lg);
    background: linear-gradient(148deg, rgba(40, 43, 52, 0.88), rgba(19, 20, 26, 0.92));
    box-shadow: var(--fs-shadow);
    backdrop-filter: blur(14px);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.brand-wrap > div {
    border-left: 1px solid rgba(255, 167, 25, 0.33);
    padding-left: 0.9rem;
}

.brand-tag {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(248, 174, 26, 0.2), rgba(98, 199, 235, 0.16));
    border: 1px solid rgba(255, 185, 51, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.brand-tag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    letter-spacing: 0.02em;
    font-weight: 700;
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    color: #fff5df;
}

.brand-subtitle {
    margin: 0;
    font-size: 0.87rem;
    color: #b7d8e8;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-pill {
    border: 1px solid rgba(255, 167, 25, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.52rem 0.88rem;
    color: #f3f6fb;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-shell {
    width: min(1240px, 100% - 2rem);
    margin: 1rem auto 1.5rem;
    display: grid;
    gap: 1.12rem;
}

.dashboard-head,
.hero-card,
.content-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--fs-line);
    padding: clamp(1.1rem, 3vw, 2rem);
    background:
        linear-gradient(145deg, rgba(42, 44, 53, 0.8), rgba(21, 21, 27, 0.9)),
        radial-gradient(circle at 90% 12%, rgba(255, 191, 43, 0.22), transparent 50%),
        radial-gradient(circle at 14% 86%, rgba(98, 199, 235, 0.14), transparent 42%);
    box-shadow: var(--fs-shadow);
    animation: rise-in 420ms ease-out both;
    position: relative;
}

.dashboard-head::before,
.hero-card::before,
.content-card::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 191, 43, 0), rgba(255, 191, 43, 0.72), rgba(98, 199, 235, 0.7), rgba(98, 199, 235, 0));
    pointer-events: none;
}

.dashboard-head h2,
.hero-card h2,
.module-hero h2,
.content-card h2,
.content-card h3 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: clamp(1.75rem, 4.9vw, 2.7rem);
    line-height: 1.08;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.38);
}

.kicker {
    margin: 0;
    color: #ffc44d;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.78rem;
    font-weight: 600;
}

.lead {
    margin: 0.72rem 0 1rem;
    color: #d8d9df;
    line-height: 1.68;
    font-size: 1rem;
}

.btn {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    padding: 0.72rem 1.15rem;
    position: relative;
    overflow: hidden;
    transition: transform 170ms ease, box-shadow 170ms ease;
}

.btn::after {
    content: "";
    position: absolute;
    top: -140%;
    left: -38%;
    width: 34%;
    height: 320%;
    transform: rotate(24deg);
    background: rgba(255, 255, 255, 0.24);
    transition: left 260ms ease;
}

.btn:hover::after {
    left: 112%;
}

.btn-primary {
    color: #1e1810;
    background: linear-gradient(140deg, #ffcc5f 0%, #f4a81f 55%, #e78700 100%);
    box-shadow: 0 12px 30px rgba(231, 135, 0, 0.38);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.tile-link:focus-visible {
    outline: 2px solid rgba(98, 199, 235, 0.88);
    outline-offset: 3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: #e8f4fb;
    border-color: rgba(98, 199, 235, 0.52);
    background: rgba(98, 199, 235, 0.08);
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.module-tile,
.module-hero {
    min-height: 250px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 196, 77, 0.3);
    box-shadow: var(--fs-shadow);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    backdrop-filter: saturate(110%);
}

.module-tile::before,
.module-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--module-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    transform: scale(1.04);
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: -3;
}

.module-tile {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    animation: rise-in 430ms ease both;
}

.module-tile:nth-child(2) {
    animation-delay: 70ms;
}

.module-tile:nth-child(3) {
    animation-delay: 120ms;
}

.module-tile:nth-child(4) {
    animation-delay: 160ms;
}

.module-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(130, 215, 247, 0.9);
    box-shadow: 0 26px 56px rgba(2, 9, 15, 0.62);
}

.module-tile:hover::before {
    opacity: 0.38;
    transform: scale(1.08);
}

.module-tile::after,
.module-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02) 40%, transparent 64%);
    z-index: -1;
}

.theme-gold {
    --module-bg-image: url("../images/modules/theme-gold.jpg");
    background: linear-gradient(155deg, #f0a511 0%, #cb7f00 36%, #2a2c36 100%);
}

.theme-violet {
    --module-bg-image: url("../images/modules/theme-violet.jpg");
    background: linear-gradient(155deg, #4f9dc2 0%, #2f789d 36%, #232735 100%);
}

.theme-magenta {
    --module-bg-image: url("../images/modules/theme-magenta.jpg");
    background: linear-gradient(150deg, #d78600 0%, #a85a00 42%, #242633 100%);
}

.theme-cyan {
    --module-bg-image: url("../images/modules/theme-cyan.jpg");
    background: linear-gradient(155deg, #63c9ea 0%, #2b88b5 40%, #20232f 100%);
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(7deg, rgba(10, 10, 14, 0.78), rgba(10, 10, 14, 0.16));
    z-index: -1;
}

.tile-content {
    width: 100%;
    display: grid;
    gap: 0.26rem;
}

.tile-subtitle {
    margin: 0;
    font-size: clamp(0.86rem, 2.2vw, 1.03rem);
    letter-spacing: 0.03em;
    font-style: italic;
    color: #ffdf99;
    font-weight: 500;
}

.tile-content h3 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 5vw, 2.95rem);
    line-height: 0.98;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff8eb;
}

.tile-link {
    position: absolute;
    inset: 0;
    text-indent: -9999px;
}

.module-hero-content {
    max-width: 720px;
}

.finance-table {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.finance-tabs-shell {
    padding-top: 1rem;
}

.finance-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.finance-tab-btn {
    border: 1px solid rgba(98, 199, 235, 0.3);
    background: rgba(98, 199, 235, 0.08);
    color: #e9f3ff;
    border-radius: 12px;
    padding: 0.58rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.finance-tab-btn.is-active {
    border-color: rgba(255, 191, 43, 0.75);
    background: rgba(255, 191, 43, 0.15);
    color: #ffe6ad;
}

.finance-tab-panel {
    display: none;
}

.finance-tab-panel.is-active {
    display: block;
}

.finance-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.termin-panel-hint {
    margin: 0.25rem 0 0;
    color: #98a4b7;
    font-size: 0.9rem;
}

.termin-report-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.termin-report-head h4 {
    margin: 0;
}

.termin-plus-btn {
    white-space: nowrap;
}

.termin-plus {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    margin-right: 0.35rem;
    background: rgba(255, 255, 255, 0.18);
    line-height: 1;
}

.finance-panel-head h3 {
    margin: 0;
}

.finance-panel-head-stacked {
    align-items: flex-end;
    border-bottom: 1px solid rgba(101, 214, 120, 0.75);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.finance-audit-list {
    display: grid;
    gap: 1rem;
}

.finance-audit-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.95rem;
    background: rgba(6, 11, 19, 0.4);
}

.finance-audit-summary {
    cursor: pointer;
    list-style: none;
}

.finance-audit-summary::-webkit-details-marker {
    display: none;
}

.finance-audit-preview {
    margin-top: 0.55rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #d6deec;
    font-size: 0.92rem;
}

.finance-audit-body {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.finance-audit-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.finance-audit-meta p {
    margin: 0.25rem 0 0;
    color: #99a5ba;
    font-size: 0.86rem;
}

.finance-audit-info {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0.8rem 0;
}

.finance-audit-info p {
    margin: 0;
    font-size: 0.92rem;
}

.pill {
    display: inline-flex;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pill-green {
    color: #7cf2a0;
    background: rgba(95, 212, 126, 0.16);
}

.pill-red {
    color: #ff9e8e;
    background: rgba(216, 91, 77, 0.16);
}

.finance-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.65rem;
}

.finance-form-grid label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: #aebdd1;
}

.finance-form-grid input,
.finance-form-grid select,
.finance-report-controls select {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #edf3ff;
    padding: 0.5rem 0.6rem;
}

.finance-actions-row {
    display: flex;
    align-items: flex-end;
}

.finance-delete-form {
    margin-top: 0.6rem;
}

.btn-danger {
    color: #ffd8d3;
    border-color: rgba(216, 91, 77, 0.45);
    background: rgba(216, 91, 77, 0.14);
}

.finance-report-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.finance-create-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.7rem;
}

.finance-create-form label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.84rem;
    color: #aebdd1;
}

.finance-balance-correction {
    border: 1px solid rgba(255, 191, 43, 0.32);
    border-radius: 14px;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background: rgba(255, 191, 43, 0.08);
}

.finance-balance-correction h4 {
    margin: 0 0 0.5rem;
}

.finance-create-form input,
.finance-create-form select {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #edf3ff;
    padding: 0.52rem 0.62rem;
}

.is-hidden {
    display: none !important;
}

.finance-report-controls label {
    color: #ced7e7;
    font-size: 0.9rem;
}

.finance-report-capture {
    background: #0d1220;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem;
}

.finance-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.finance-stat-card {
    border-radius: 10px;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #171e33;
    text-align: center;
}

.finance-stat-card p {
    margin: 0;
    color: #8f9cb5;
    font-size: 0.82rem;
    font-weight: 600;
}

.finance-stat-card h4 {
    margin: 0.45rem 0 0;
    font-size: 2rem;
    color: #72d4f8;
}

.finance-stat-card .ok {
    color: #63c77a;
}

.finance-stat-card .warn {
    color: #e8715f;
}

.finance-report-block {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.9rem;
    background: #161c2f;
}

.finance-report-block h4 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.finance-chart-wrap {
    max-width: 560px;
    margin: 0 auto 1rem;
}

.finance-summary-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.finance-summary-table th,
.finance-summary-table td {
    padding: 0.62rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.finance-summary-table th:last-child,
.finance-summary-table td:last-child {
    text-align: right;
}

.finance-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.finance-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem;
    background: #11182a;
}

.finance-detail-card h5 {
    margin: 0 0 0.6rem;
    text-align: center;
    font-size: 1rem;
}

.finance-donut-wrap {
    max-width: 230px;
    margin: 0 auto;
}

.finance-breakdown-list {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
}

.finance-breakdown-list li {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.45rem 0;
}

.finance-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
}

.finance-row strong {
    display: block;
    margin-bottom: 0.25rem;
}

.finance-row p {
    margin: 0;
    color: #d5d8df;
}

.finance-paid {
    border-color: rgba(98, 199, 235, 0.26);
}

.finance-unpaid {
    border-color: rgba(255, 191, 43, 0.26);
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    color: #bfe6f6;
}

.payout-shell {
    display: grid;
    gap: 1rem;
}

.payout-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.payout-step {
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    text-align: center;
    font-size: 0.82rem;
    border: 1px solid rgba(98, 199, 235, 0.24);
    background: rgba(98, 199, 235, 0.1);
    color: #c8e1ee;
}

.payout-step.is-active {
    border-color: rgba(255, 191, 43, 0.7);
    background: rgba(255, 191, 43, 0.18);
    color: #ffe2a1;
}

.payout-panel {
    display: none;
}

.payout-panel.is-active {
    display: block;
}

.payout-panel h3 {
    margin-top: 0;
}

.payout-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 1rem;
}

.payout-feedback {
    margin: 0.65rem 0 0;
    color: #ffb6a7;
    font-weight: 600;
}

.payout-feedback.is-ok {
    color: #8de7a0;
}

.payout-report {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    padding: 0.9rem;
}

.payout-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.payout-report-grid p {
    margin: 0;
    color: #d6e0ee;
}

.payout-confirm {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    color: #dae5ef;
}

.payout-confirm input {
    accent-color: #ffbf2b;
}

.termin-shell {
    display: grid;
    gap: 1rem;
}

.termin-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1rem;
    margin-bottom: 0.85rem;
}

.termin-status-grid p {
    margin: 0;
}

.termin-actions {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.termin-employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.termin-employee-card {
    appearance: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    color: inherit;
}

.termin-employee-card h4 {
    margin: 0 0 0.35rem;
}

.termin-employee-card p {
    margin: 0.22rem 0;
}

.termin-employee-card:hover {
    border-color: rgba(98, 199, 235, 0.55);
    background: rgba(22, 34, 48, 0.45);
}

.termin-add-card {
    border: 1px dashed rgba(98, 199, 235, 0.5);
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(98, 199, 235, 0.07);
}

.termin-add-card summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.termin-add-card summary::-webkit-details-marker {
    display: none;
}

.termin-add-card.open {
    border-style: solid;
}

.termin-plus {
    display: inline-flex;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 0.35rem;
    background: rgba(87, 209, 107, 0.25);
    color: #8ff0a3;
}

.termin-search-results {
    display: grid;
    gap: 0.28rem;
    margin-top: 0.4rem;
    max-height: 190px;
    overflow: auto;
}

.termin-search-item {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #e7eef9;
    border-radius: 8px;
    padding: 0.44rem 0.55rem;
    cursor: pointer;
}

.termin-search-item:hover {
    border-color: rgba(98, 199, 235, 0.65);
}

.termin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.4rem;
}

.finance-create-form label.termin-check-item,
.termin-checkbox-grid .termin-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 28px;
    margin: 0;
    color: #c8d4e6;
    font-size: 0.98rem;
    line-height: 1.2;
}

.finance-create-form .termin-check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.3);
    accent-color: #4ea7ff;
    flex: 0 0 auto;
}

.termin-appointments-list {
    display: grid;
    gap: 0.6rem;
}

.termin-sheet-shell {
    overflow-y: auto;
    overflow-x: hidden;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-radius: 2px;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.termin-sheet-board {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.82rem;
    font-family: "Rajdhani", "Sora", sans-serif;
}

.termin-sheet-board thead {
    position: sticky;
    top: 0;
    z-index: 4;
}

.termin-sheet-board th,
.termin-sheet-board td {
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0;
}

.termin-sheet-corner {
    width: 74px;
    background: #878add;
    color: #0d1227;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.termin-sheet-head {
    background: #878add;
    color: #09111a;
    text-align: center;
    padding: 0.16rem 0.2rem 0.26rem;
    border-bottom-width: 2px;
}

.termin-head-main {
    font-weight: 700;
    font-size: 0.95rem;
}

.termin-head-sub {
    margin-top: 0.14rem;
    font-size: 0.8rem;
}

.termin-meta-key,
.termin-meta-val {
    background: #efd5b4;
    color: #20140b;
    min-height: 22px;
    line-height: 1.18;
    padding: 0.18rem 0.34rem;
    text-align: left;
    vertical-align: middle;
}

.termin-meta-key {
    font-weight: 700;
    width: 106px;
    min-width: 106px;
}

.termin-meta-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    max-height: 2.3em;
}

.termin-time-cell {
    width: 74px;
    text-align: right;
    font-weight: 700;
    padding: 0.14rem 0.22rem;
    color: #0a111a;
    position: sticky;
    left: 0;
    z-index: 1;
}

.termin-time-cell.zone-green {
    background: #1bff00;
}

.termin-time-cell.zone-yellow {
    background: #fff200;
}

.termin-time-cell.zone-red {
    background: #ff130e;
    color: #180000;
}

.termin-time-cell.zone-neutral {
    background: #7a8496;
}

.termin-slot-cell {
    background: #030304;
    min-height: 20px;
    height: 20px;
    padding: 0;
    position: relative;
}

.termin-sheet-board tbody tr.stripe-even .termin-slot-cell.state-blocked,
.termin-sheet-board tbody tr.stripe-even .termin-slot-cell.state-free {
    background: #040405;
}

.termin-sheet-board tbody tr.stripe-odd .termin-slot-cell.state-blocked,
.termin-sheet-board tbody tr.stripe-odd .termin-slot-cell.state-free {
    background: #3a3a3a;
}

.termin-slot-cell.state-free:hover {
    background: linear-gradient(90deg, rgba(53, 119, 157, 0.88), rgba(38, 84, 114, 0.94));
}

.termin-slot-free,
.termin-slot-appointment {
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    color: #eaf6ff;
    background: transparent;
}

.termin-slot-free {
    color: #79e0ff;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.24;
    transition: opacity 140ms ease, color 140ms ease, transform 140ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.termin-slot-free span {
    display: block;
    line-height: 1;
}

.termin-slot-cell.state-free:hover .termin-slot-free {
    opacity: 1;
    color: #b2eeff;
    transform: scale(1.06);
}

.termin-slot-appointment {
    text-align: left;
    display: grid;
    align-content: center;
    gap: 0.04rem;
    padding: 0.08rem 0.24rem;
    background: linear-gradient(90deg, rgba(96, 120, 141, 0.94), rgba(62, 83, 101, 0.96));
    border-left: 2px solid #b9d9ec;
}

.termin-slot-appointment strong {
    font-size: 0.67rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.termin-slot-appointment span {
    font-size: 0.62rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.termin-slot-appointment-cover {
    border-left: 2px solid #b9d9ec;
}

.termin-slot-appointment:hover,
.termin-slot-appointment-cover:hover {
    background: linear-gradient(90deg, rgba(117, 160, 189, 0.96), rgba(74, 121, 152, 0.96));
}

.termin-sheet-board tbody tr:hover .termin-time-cell {
    filter: brightness(1.05);
}

.termin-slot-empty {
    display: block;
    width: 100%;
    height: 100%;
}

.termin-appointment-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 11, 19, 0.4);
    color: #e6edf9;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
}

.termin-appointment-card:hover {
    border-color: rgba(98, 199, 235, 0.55);
    background: rgba(20, 35, 48, 0.5);
}

.termin-appointment-action {
    font-size: 0.82rem;
    color: #94d7ee;
    white-space: nowrap;
}

.termin-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.termin-modal.is-open {
    display: block;
}

.termin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.68);
    backdrop-filter: blur(8px);
}

.termin-modal-dialog {
    position: fixed;
    width: min(1040px, calc(100% - 2rem));
    max-height: 90vh;
    overflow: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    border: 1px solid rgba(98, 199, 235, 0.32);
    background:
        linear-gradient(155deg, rgba(31, 34, 43, 0.98), rgba(18, 20, 26, 0.98)),
        radial-gradient(circle at 12% 10%, rgba(98, 199, 235, 0.12), transparent 42%),
        radial-gradient(circle at 90% 14%, rgba(255, 191, 43, 0.12), transparent 42%);
    box-shadow: 0 34px 84px rgba(0, 0, 0, 0.62);
    padding: 1.25rem;
}

.termin-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.termin-modal-head h4 {
    margin: 0.1rem 0 0;
    font-size: 1.35rem;
}

.termin-modal-close {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.termin-modal .finance-create-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.termin-modal .finance-create-form > label,
.termin-modal .finance-create-form > fieldset,
.termin-modal .finance-create-form > .finance-actions-row {
    margin: 0;
}

.termin-modal .finance-create-form > label:last-of-type,
.termin-modal .finance-create-form > .finance-actions-row:last-child {
    grid-column: 1 / -1;
}

.termin-modal .finance-actions-row {
    justify-content: flex-end;
}

.termin-delete-row {
    margin-top: 0.7rem;
    justify-content: flex-end;
}

.termin-datetime-picker {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.8fr);
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
}

.termin-datetime-picker input,
.termin-datetime-picker select {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 14, 0.75);
    color: #edf3ff;
    padding: 0.45rem 0.55rem;
}

.termin-datetime-picker input[type="date"] {
    letter-spacing: 0.03em;
}

.termin-datetime-picker input[type="hidden"] {
    display: none;
}

.termin-add-card.is-disabled {
    opacity: 0.72;
}

.termin-add-card.is-disabled summary {
    cursor: default;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 760px) {
    .tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .topbar {
        width: min(1240px, 100% - 1rem);
        padding: 0.9rem;
        margin-top: 0.55rem;
    }

    .page-shell {
        width: min(1240px, 100% - 1rem);
        margin-top: 0.8rem;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .module-tile,
    .module-hero {
        min-height: 225px;
    }

    .finance-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-detail-grid {
        grid-template-columns: 1fr;
    }

    .payout-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payout-report-grid {
        grid-template-columns: 1fr;
    }

    .termin-status-grid {
        grid-template-columns: 1fr;
    }

    .termin-actions {
        flex-direction: column;
    }

    .termin-datetime-picker {
        grid-template-columns: 1fr;
    }

    .termin-report-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .termin-modal-dialog {
        width: min(100% - 1rem, 1040px);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 1rem;
    }

    .termin-modal .finance-create-form {
        grid-template-columns: 1fr;
    }

    .termin-sheet-board {
        min-width: 100%;
    }

    .termin-appointment-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-tag {
        width: 50px;
        height: 50px;
    }

    .brand-wrap > div {
        padding-left: 0.65rem;
    }
}
