:root {
    --brand-deep-green: #006400;
    --brand-soft-white: #F5F5F5;
    --brand-sand: #C0AA83;
    --brand-charcoal: #1C1C1C;
    --brand-leaf: #A3CFA1;
    --font-primary: "Poppins", Arial, sans-serif;
    --font-urdu: "Noto Nastaliq Urdu", "Scheherazade New", serif;
    --spacing-xl: 3rem;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-primary);
    color: var(--brand-charcoal);
    background: linear-gradient(150deg, rgba(0, 100, 0, 0.16), rgba(163, 207, 161, 0.2)) no-repeat,
        radial-gradient(circle at top right, rgba(192, 170, 131, 0.28), transparent 55%),
        radial-gradient(circle at bottom left, rgba(0, 100, 0, 0.22), transparent 60%),
        var(--brand-soft-white);
    background-size: cover;
}

@media (max-width: 640px) {
    body {
        padding-bottom: 0;
    }
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.hero {
    padding: 0.35rem 0 1rem;
}

.hero__container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 0;
}

.hero__heading {
    margin: 0;
    font-size: clamp(2.4rem, 9vw, 4.2rem);
    font-weight: 700;
    color: var(--brand-charcoal);
}

.view-toggle {
    display: inline-flex;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 999px;
    margin-top: 1.25rem;
    padding: 0.25rem;
    background-color: rgba(245, 245, 245, 0.88);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    gap: 0.25rem;
}

.dashboard-subheading {
    margin: 0.75rem 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    color: rgba(28, 28, 28, 0.78);
}

.dashboard-overview {
    margin: 1.5rem 0 1.75rem;
    padding: 1.5rem 1.35rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 1.5rem;
}

.dashboard-overview__title {
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-charcoal);
}

.dashboard-overview__metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.overview-metric {
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.08), rgba(163, 207, 161, 0.15));
    border: 1px solid rgba(0, 100, 0, 0.08);
    display: grid;
    gap: 0.4rem;
}

.overview-metric__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(28, 28, 28, 0.72);
}

.overview-metric__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-charcoal);
}

.dashboard-overview__insights {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    align-items: stretch;
}

.overview-progress {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 100, 0, 0.1);
    background: rgba(240, 255, 240, 0.75);
}

.overview-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.overview-progress__title {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.overview-progress__value {
    font-weight: 600;
    color: rgba(28, 28, 28, 0.75);
}

.overview-progress__bar {
    position: relative;
    width: 100%;
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(0, 100, 0, 0.12);
    overflow: hidden;
}

.overview-progress__fill {
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.9), rgba(163, 207, 161, 0.9));
    transition: width 260ms ease;
}

.overview-chart {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.overview-chart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overview-chart__title {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.overview-chart__canvas {
    width: 180px;
    height: 180px;
    justify-self: center;
}

.overview-chart__empty {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(28, 28, 28, 0.7);
}

.overview-chart__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.overview-chart__legend-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.overview-chart__swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background-color: var(--swatch-color, rgba(0, 0, 0, 0.25));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.overview-chart__legend-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: rgba(28, 28, 28, 0.75);
}

.overview-chart__legend-label {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.overview-chart__legend-value {
    font-size: 0.8rem;
    color: rgba(28, 28, 28, 0.65);
}

.view-toggle__btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.55rem 1.65rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    color: rgba(28, 28, 28, 0.6);
    cursor: pointer;
    transition: background-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.view-toggle__btn:focus-visible {
    outline: 3px solid rgba(163, 207, 161, 0.7);
    outline-offset: 2px;
}

.view-toggle__btn.is-active {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.92), rgba(192, 170, 131, 0.92));
    color: var(--brand-soft-white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.view-panels {
    width: min(36rem, 92vw);
    margin: 1.75rem auto 0;
}

.view-panel {
    display: none;
}

.view-panel.is-active {
    display: block;
}

.panel-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
}

.panel-card__placeholder {
    margin: 0;
    color: rgba(28, 28, 28, 0.7);
    font-size: 0.95rem;
}

.form-card {
    display: grid;
    gap: 1rem;
    text-align: left;
}

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

.form-status {
    margin: 0;
    min-height: 1.1rem;
    font-size: 0.9rem;
    color: rgba(28, 28, 28, 0.7);
}

.form-status--success {
    color: var(--brand-deep-green);
}

.form-status--error {
    color: #b00020;
}

.form-field--binary {
    gap: 0.6rem;
}

.form-field__label {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.form-field label {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font: inherit;
    background-color: rgba(245, 245, 245, 0.8);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-deep-green);
    box-shadow: 0 0 0 3px rgba(163, 207, 161, 0.35);
}

.binary-toggle {
    display: inline-flex;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.2rem;
    gap: 0.15rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    width: fit-content;
}

.binary-toggle__option {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    color: rgba(28, 28, 28, 0.6);
    cursor: pointer;
    transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.binary-toggle__option[aria-checked="true"],
.binary-toggle__option.is-active {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.92), rgba(192, 170, 131, 0.92));
    color: var(--brand-soft-white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.binary-toggle__option:focus-visible {
    outline: 3px solid rgba(163, 207, 161, 0.7);
    outline-offset: 2px;
}

.is-hidden {
    display: none !important;
}

.form-card__submit {
    justify-self: start;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.92), rgba(192, 170, 131, 0.92));
    color: var(--brand-soft-white);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.form-card__submit:hover,
.form-card__submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 100, 0, 0.26);
}

.form-editing-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: rgba(192, 170, 131, 0.18);
    border: 1px solid rgba(192, 170, 131, 0.35);
    color: var(--brand-charcoal);
}

.form-editing-indicator__text {
    font-weight: 600;
}

.form-editing-indicator__cancel {
    border: none;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-weight: 600;
    font-family: inherit;
    background: rgba(28, 28, 28, 0.12);
    color: var(--brand-charcoal);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.form-editing-indicator__cancel:hover,
.form-editing-indicator__cancel:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.heading-toggle {
    display: inline-block;
    position: relative;
    min-height: 3.8rem;
    opacity: 0;
    transform: translateY(0.65rem);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.heading-toggle.english {
    font-family: var(--font-primary);
    letter-spacing: -0.015em;
}

.heading-toggle.urdu {
    font-family: var(--font-urdu);
    direction: rtl;
    letter-spacing: normal;
}

.heading-toggle.is-switching {
    opacity: 0;
    transform: translateY(0.8rem);
}

.heading-toggle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .hero {
        padding: 1.5rem 0 1.25rem;
    }

    .hero__container {
        min-height: calc(100vh - var(--spacing-xl));
        padding-top: 1.25rem;
    }

    .view-panels {
        width: min(48rem, 86vw);
    }
}

@media (max-width: 480px) {
    .hero__container {
        padding-top: 0.6rem;
    }
}

@media (min-width: 1200px) {
    .view-panels {
        width: min(62rem, 80vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .heading-toggle,
    .heading-toggle.is-switching,
    .heading-toggle.is-visible {
        transition: none;
        transform: none;
    }
}

.auth-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.auth-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
}

.auth-modal__dialog {
    position: relative;
    width: min(24rem, 92vw);
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
    display: grid;
    gap: 0.85rem;
}

.auth-modal__description {
    margin: 0 0 0.5rem;
    color: rgba(28, 28, 28, 0.72);
    font-size: 0.95rem;
}

.auth-modal__dialog label {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.auth-modal__dialog input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font: inherit;
    background-color: rgba(245, 245, 245, 0.9);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.auth-modal__dialog input:focus {
    outline: none;
    border-color: var(--brand-deep-green);
    box-shadow: 0 0 0 3px rgba(163, 207, 161, 0.35);
}

.auth-modal__error {
    min-height: 1.2rem;
    margin: 0;
    color: #b00020;
    font-size: 0.85rem;
}

.auth-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.auth-modal__btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.auth-modal__btn--primary {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.92), rgba(192, 170, 131, 0.92));
    color: var(--brand-soft-white);
}

.auth-modal__btn--secondary {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--brand-charcoal);
}

.auth-modal__btn:focus-visible,
.auth-modal__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.form-session-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(0, 100, 0, 0.08);
    color: var(--brand-charcoal);
    font-weight: 600;
    border: 1px solid rgba(0, 100, 0, 0.16);
}

.form-session-banner__icon {
    font-size: 1.1rem;
}

.dashboard-card {
    display: grid;
    gap: 1rem;
}

.dashboard-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.dashboard-card__heading {
    margin: 0;
    font-size: 1.25rem;
}

.payment-options {
    margin: 1.15rem 0 1.35rem;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    background: rgba(0, 100, 0, 0.06);
    border: 1px solid rgba(0, 100, 0, 0.12);
}

.payment-options__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--brand-charcoal);
}

.payment-options__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.payment-options__item {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(28, 28, 28, 0.82);
}

.payment-options__label {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.payment-options__value {
    font-weight: 600;
    color: rgba(28, 28, 28, 0.9);
}

.manage-entries {
    margin: 2rem 0 0;
    padding: 1.4rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 1rem;
}

.manage-entries__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.manage-entries__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-charcoal);
}

.manage-entries__filter {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: rgba(28, 28, 28, 0.75);
}

.manage-entries__filter select {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: rgba(245, 245, 245, 0.85);
    font: inherit;
}

.manage-entries__empty {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(28, 28, 28, 0.7);
}

.manage-entries__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.manage-entry {
    display: grid;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(240, 255, 240, 0.65);
    border: 1px solid rgba(0, 100, 0, 0.16);
}

.manage-entry.is-editing {
    box-shadow: 0 0 0 2px rgba(192, 170, 131, 0.7);
    background: rgba(192, 170, 131, 0.18);
}

.manage-entry__title {
    font-weight: 600;
    color: var(--brand-charcoal);
}

.manage-entry__meta {
    font-size: 0.9rem;
    color: rgba(28, 28, 28, 0.75);
}

.manage-entry__meta span {
    display: inline-block;
    margin-right: 0.6rem;
}

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

.manage-entry__btn {
    border: none;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.manage-entry__btn:hover,
.manage-entry__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.manage-entry__btn--edit {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.92), rgba(163, 207, 161, 0.92));
    color: var(--brand-soft-white);
}

.manage-entry__btn--delete {
    background: rgba(176, 0, 32, 0.12);
    color: #b00020;
}

.dashboard-print-button {
    margin-top: 1rem;
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.92), rgba(192, 170, 131, 0.92));
    color: var(--brand-soft-white);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.dashboard-print-button:hover,
.dashboard-print-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 100, 0, 0.26);
}

.dashboard-share-button {
    margin-top: 1rem;
    margin-left: 0.75rem;
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.92), rgba(100, 150, 200, 0.92));
    color: var(--brand-soft-white);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.dashboard-share-button:hover,
.dashboard-share-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 100, 200, 0.26);
}

.print-sheet {
    display: none;
}

/* Styles for PDF generation (applied via JS) */
.print-sheet--visible {
    display: block !important;
    padding: 2.4rem 2rem;
    color: #000000;
    font-family: "Poppins", Arial, sans-serif;
    background: #ffffff;
}

.print-sheet--visible .print-sheet__title {
    margin: 0;
    font-family: "Noto Nastaliq Urdu", serif;
    font-size: 2.1rem;
    text-align: center;
}

.print-sheet--visible .print-sheet__subtitle {
    margin: 0.4rem 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.print-sheet--visible .print-sheet__context,
.print-sheet--visible .print-sheet__meta {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    text-align: center;
}

.print-sheet--visible .print-sheet__link {
    margin: 0.2rem 0 0;
    text-align: center;
    font-size: 0.95rem;
}

.print-sheet--visible .print-sheet__link a {
    color: rgba(0, 100, 0, 0.95);
    text-decoration: underline;
}

.print-sheet--visible .print-sheet__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.6rem;
    font-size: 0.9rem;
}

.print-sheet--visible .print-sheet__table th,
.print-sheet--visible .print-sheet__table td {
    border: 1px solid rgba(0, 100, 0, 0.45);
    padding: 0.55rem 0.7rem;
    text-align: left;
}

.print-sheet--visible .print-sheet__table th {
    background: rgba(0, 100, 0, 0.08);
    font-weight: 600;
}

.print-sheet--visible .print-sheet__table td {
    vertical-align: top;
}

@media print {
    .dashboard-print-button,
    .dashboard-share-button,
    .manage-entry__btn,
    .payment-options,
    .dashboard-overview,
    .view-toggle,
    .dashboard-card__filters,
    .dashboard-subheading,
    .entry-table-wrapper,
    .dashboard-card__header,
    .hero {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .print-sheet {
        display: block !important;
        padding: 2.4rem 2rem;
        color: #000000;
        font-family: "Poppins", Arial, sans-serif;
    }

    .print-sheet__title {
        margin: 0;
        font-family: "Noto Nastaliq Urdu", serif;
        font-size: 2.1rem;
        text-align: center;
    }

    .print-sheet__subtitle {
        margin: 0.4rem 0 0;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
    }

    .print-sheet__context,
    .print-sheet__meta {
        margin: 0.2rem 0 0;
        font-size: 0.95rem;
        text-align: center;
    }

    .print-sheet__link {
        margin: 0.2rem 0 0;
        text-align: center;
        font-size: 0.95rem;
    }

    .print-sheet__link a {
        color: rgba(0, 100, 0, 0.95);
        text-decoration: underline;
    }

    .print-sheet__table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1.6rem;
        font-size: 0.9rem;
    }

    .print-sheet__table th,
    .print-sheet__table td {
        border: 1px solid rgba(0, 100, 0, 0.45);
        padding: 0.55rem 0.7rem;
        text-align: left;
    }

    .print-sheet__table th {
        background: rgba(0, 100, 0, 0.08);
        font-weight: 600;
    }

    .print-sheet__table td {
        vertical-align: top;
    }
}

@media (max-width: 600px) {
    .dashboard-subheading {
        margin-top: 0.6rem;
        font-size: 0.95rem;
        line-height: 1.35;
        padding: 0 0.75rem;
    }

    .dashboard-overview {
        padding: 1.25rem 1.1rem;
        gap: 1.25rem;
    }

    .dashboard-overview__metrics {
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    }

    .overview-punctuality {
        grid-template-columns: 1fr;
    }

    .overview-chart__canvas {
        width: 150px;
        height: 150px;
    }

    .payment-options__item {
        font-size: 0.9rem;
    }

    .manage-entries {
        padding: 1.15rem 1rem;
        gap: 0.85rem;
    }

    .manage-entries__header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .manage-entries__filter {
        align-items: center;
    }

    .manage-entry {
        padding: 0.8rem 0.9rem;
    }
}

.dashboard-card__status {
    font-size: 0.9rem;
    color: rgba(28, 28, 28, 0.7);
}

.dashboard-card__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.dashboard-filter {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.dashboard-filter select {
    min-width: 9rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font: inherit;
    background-color: rgba(245, 245, 245, 0.85);
}

.dashboard-filter select:focus {
    outline: none;
    border-color: var(--brand-deep-green);
    box-shadow: 0 0 0 3px rgba(163, 207, 161, 0.3);
}

.dashboard-card__empty {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(28, 28, 28, 0.65);
}

.entry-table-wrapper {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.entry-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background-color: #ffffff;
}

.entry-table th,
.entry-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
}

.entry-table thead th {
    font-weight: 600;
    background-color: rgba(0, 100, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1;
}

.entry-table tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.015);
}

.entry-table__cell--wrap {
    white-space: normal;
    word-break: break-word;
}

.entry-table__cell--nowrap {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .dashboard-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-card__filters {
        flex-direction: column;
        align-items: stretch;
    }

    .entry-table {
        min-width: 600px;
    }
}

/* Share Modal Styles */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.share-modal__content {
    background: var(--brand-soft-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 300ms ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--brand-dark-green);
    font-weight: 700;
}

.share-modal__text {
    margin: 0 0 1.5rem 0;
    color: rgba(0, 0, 0, 0.7);
}

.share-modal__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.share-modal__btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(0, 100, 0, 0.2);
    border-radius: 8px;
    background: white;
    color: var(--brand-dark-green);
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 200ms ease;
}

.share-modal__btn:hover,
.share-modal__btn:focus-visible {
    background: rgba(0, 100, 0, 0.05);
    border-color: var(--brand-dark-green);
    transform: translateX(4px);
}

.share-modal__btn span {
    font-size: 1.5rem;
}

.share-modal__note {
    margin: 1rem 0 1rem 0;
    padding: 0.75rem;
    background: rgba(0, 100, 200, 0.08);
    border-left: 3px solid rgba(0, 100, 200, 0.6);
    border-radius: 4px;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.share-modal__close {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background 200ms ease;
}

.share-modal__close:hover,
.share-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .share-modal__content {
        padding: 1.5rem;
    }

    .share-modal__title {
        font-size: 1.25rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.95), rgba(192, 170, 131, 0.95));
    color: var(--brand-soft-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.3);
    transition: all 300ms ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 100, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }

    .scroll-to-top svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media print {
    .scroll-to-top {
        display: none !important;
    }
}
