/* SyNex ERP design system. Layered on top of AdminLTE 4 and Bootstrap 5. */
:root {
    --ff-forest: #1f4d3a;
    --ff-forest-deep: #163b2c;
    --ff-sage: #e8f0eb;
    --ff-gold: #c69214;
    --ff-gold-deep: #9a710f;
    --ff-canvas: #f7f8f6;
    --ff-surface: #ffffff;
    --ff-border: #d9ded9;
    --ff-ink: #1e2721;
    --ff-muted: #607066;
    --ff-success: #2e7d4f;
    --ff-info: #24748a;
    --ff-warning: #b7791f;
    --ff-danger: #b6433d;
    --ff-neutral: #6b7280;
    --ff-radius: 0.25rem;
    --bs-primary: var(--ff-forest);
    --bs-primary-rgb: 31, 77, 58;
    --bs-secondary: #667269;
    --bs-secondary-rgb: 102, 114, 105;
    --bs-body-bg: var(--ff-canvas);
    --bs-body-color: var(--ff-ink);
    --bs-border-color: var(--ff-border);
    --bs-link-color: var(--ff-forest);
    --bs-link-hover-color: var(--ff-forest-deep);
    --bs-border-radius: var(--ff-radius);
    --bs-border-radius-sm: var(--ff-radius);
    --bs-border-radius-lg: 0.375rem;
}

body {
    font-size: 0.875rem;
    letter-spacing: 0.002em;
}

.line-detail-row td {
    border-top: 0;
}

.line-detail-content {
    min-height: 6rem;
    overflow: auto;
    white-space: normal;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea,
.ff-number,
.display-6,
.jqgrow td {
    font-variant-numeric: tabular-nums;
}

.app-content-header {
    padding: 1.25rem 0 0.75rem;
}

.app-content-header h3 {
    color: var(--ff-ink);
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.app-content {
    padding-bottom: 1.5rem;
}

.ff-sidebar {
    background: var(--ff-forest-deep) !important;
    border-right: 1px solid rgb(255 255 255 / 8%);
}

.ff-sidebar .sidebar-brand {
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.ff-sidebar .brand-link {
    display: flex;
    align-items: center;
    min-height: 3.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: 0.65rem;
    color: var(--ff-forest-deep);
    background: var(--ff-gold);
    border-radius: var(--ff-radius);
    place-items: center;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-text-accent {
    color: #e8c968;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.ff-sidebar .nav-header {
    margin: 1.15rem 0.75rem 0.35rem;
    padding: 0;
    color: #a8c1b2;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ff-sidebar .ff-sidebar-section > .nav-link {
    min-height: 2.75rem;
    margin: 0.2rem 0.55rem;
    padding: 0.65rem 0.75rem;
    color: #dce9e1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ff-sidebar .ff-sidebar-section > .nav-link:hover {
    color: #fff;
    background: rgb(255 255 255 / 9%);
    border-color: rgb(255 255 255 / 6%);
}

.ff-sidebar .ff-sidebar-section.menu-open > .nav-link,
.ff-sidebar .ff-sidebar-section > .nav-link.active {
    color: #fff;
    background: rgb(255 255 255 / 15%);
    border-color: rgb(255 255 255 / 8%);
    box-shadow: inset 3px 0 0 var(--ff-sage);
}

.ff-sidebar .ff-sidebar-section > .nav-link p {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

.ff-sidebar .ff-sidebar-section > .nav-link .nav-arrow {
    margin-left: auto;
    transition: transform 180ms ease;
}

.ff-sidebar .nav-link {
    min-height: 2.5rem;
    margin: 0.1rem 0.55rem;
    padding: 0.55rem 0.65rem;
    color: #dce9e1;
    border-radius: var(--ff-radius);
    font-size: 0.8125rem;
}

.ff-sidebar .nav-link:hover {
    color: #fff;
    background: rgb(255 255 255 / 10%);
}

.ff-sidebar .nav-link.active {
    color: var(--ff-forest-deep);
    background: var(--ff-sage);
    box-shadow: none;
}

.ff-sidebar .nav-icon {
    width: 1.5rem;
    color: inherit;
    font-size: 0.875rem;
    text-align: center;
}

.ff-sidebar .nav-treeview .nav-link {
    margin-left: 1rem;
    color: #c1d3c8;
}

@media (prefers-reduced-motion: reduce) {
    .ff-sidebar .ff-sidebar-section > .nav-link,
    .ff-sidebar .ff-sidebar-section > .nav-link .nav-arrow {
        transition: none;
    }
}

.accounting-statement-table {
    font-variant-numeric: tabular-nums;
}

.accounting-statement-table th:first-child,
.accounting-statement-table td:first-child {
    min-width: 18rem;
}

.accounting-statement-row-group {
    background: color-mix(in srgb, var(--ff-sage) 45%, transparent);
    font-weight: 650;
}

.accounting-statement-row-total {
    border-top: 2px solid var(--ff-forest);
    font-weight: 750;
}

.accounting-statement-row-synthetic {
    color: var(--ff-muted);
    font-style: italic;
}

.accounting-statement-indent-1 { display: inline-block; padding-left: 1rem; }
.accounting-statement-indent-2 { display: inline-block; padding-left: 2rem; }
.accounting-statement-indent-3 { display: inline-block; padding-left: 3rem; }
.accounting-statement-indent-4 { display: inline-block; padding-left: 4rem; }
.accounting-statement-indent-5 { display: inline-block; padding-left: 5rem; }
.accounting-statement-indent-6 { display: inline-block; padding-left: 6rem; }
.accounting-statement-indent-7 { display: inline-block; padding-left: 7rem; }
.accounting-statement-indent-8 { display: inline-block; padding-left: 8rem; }

.accounting-ledger {
    font-variant-numeric: tabular-nums;
}

.accounting-ledger-group + .accounting-ledger-group {
    border-top: 1px solid var(--ff-border);
}

.accounting-ledger-heading {
    background: color-mix(in srgb, var(--ff-sage) 45%, transparent);
    border-left: 0.25rem solid var(--ff-teal);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 0.75rem 1rem;
}

.accounting-ledger-table th:first-child,
.accounting-ledger-table td:first-child {
    padding-left: 1rem;
}

.accounting-ledger-table th:last-child,
.accounting-ledger-table td:last-child {
    padding-right: 1rem;
}

.accounting-ledger-opening {
    background: color-mix(in srgb, var(--bs-tertiary-bg) 75%, transparent);
    color: var(--ff-muted);
    font-style: italic;
}

.accounting-ledger-closing {
    border-top: 2px solid var(--ff-forest);
    font-weight: 750;
}

@media (max-width: 767.98px) {
    .accounting-module-nav {
        flex-wrap: nowrap !important;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .accounting-module-nav .btn {
        flex: 0 0 auto;
    }

    .accounting-report-actions {
        display: grid !important;
        flex: 1 1 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }

    .accounting-report-actions .btn {
        min-width: 0;
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        width: auto;
    }

    .accounting-report-filter,
    .accounting-report-card {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .accounting-statement-table th:first-child,
    .accounting-statement-table td:first-child {
        min-width: 14rem;
    }

    .accounting-ledger-table {
        min-width: 56rem;
    }
}

.ff-navbar {
    background: var(--ff-surface);
    border-bottom: 1px solid var(--ff-border);
    box-shadow: none !important;
}

.ff-navbar .nav-link {
    color: var(--ff-ink);
}

.ff-navbar .nav-link:hover {
    color: var(--ff-forest);
}

.ff-navbar-title {
    color: var(--ff-muted) !important;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card {
    background: var(--ff-surface);
    border: 1px solid var(--ff-border) !important;
    border-radius: var(--ff-radius);
    box-shadow: none !important;
}

.card-header {
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    background: var(--ff-surface) !important;
    border-bottom: 1px solid var(--ff-border);
}

.card-body {
    padding: 1rem;
}

.card-title {
    color: var(--ff-ink);
    font-size: 1rem;
    font-weight: 650;
}

.ff-kpi {
    position: relative;
    min-height: 7.5rem;
    overflow: hidden;
}

.ff-kpi::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0.25rem;
    content: '';
    background: var(--ff-forest);
}

.ff-kpi--gold::before {
    background: var(--ff-gold);
}

.ff-kpi--info::before {
    background: var(--ff-info);
}

.ff-kpi--danger::before {
    background: var(--ff-danger);
}

.ff-kpi-label {
    color: var(--ff-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ff-kpi-value {
    margin-top: 0.5rem;
    color: var(--ff-ink);
    font-size: 1.75rem;
    font-weight: 650;
    line-height: 1;
}

.ff-kpi-icon {
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    color: var(--ff-sage);
    font-size: 1.4rem;
}

.ff-kpi-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ff-kpi-link:hover,
.ff-kpi-link:focus-visible {
    color: inherit;
    border-color: #aebbb2;
    box-shadow: 0 0.4rem 1rem rgb(22 59 44 / 10%);
    transform: translateY(-2px);
}

.ff-kpi-link:focus-visible {
    outline: 3px solid rgb(31 77 58 / 22%);
    outline-offset: 2px;
}

.btn {
    --bs-btn-border-radius: var(--ff-radius);
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--ff-forest);
    --bs-btn-border-color: var(--ff-forest);
    --bs-btn-hover-bg: var(--ff-forest-deep);
    --bs-btn-hover-border-color: var(--ff-forest-deep);
    --bs-btn-active-bg: var(--ff-forest-deep);
    --bs-btn-active-border-color: var(--ff-forest-deep);
}

.btn-warning {
    --bs-btn-bg: var(--ff-gold);
    --bs-btn-border-color: var(--ff-gold);
    --bs-btn-hover-bg: var(--ff-gold-deep);
    --bs-btn-hover-border-color: var(--ff-gold-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

.btn-outline-warning {
    --bs-btn-color: var(--ff-gold-deep);
    --bs-btn-border-color: var(--ff-gold);
    --bs-btn-hover-bg: var(--ff-gold);
    --bs-btn-hover-border-color: var(--ff-gold);
    --bs-btn-hover-color: #fff;
}

.btn-info,
.btn-outline-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ff-info);
    --bs-btn-border-color: var(--ff-info);
    --bs-btn-hover-bg: #1b6173;
    --bs-btn-hover-border-color: #1b6173;
    --bs-btn-hover-color: #fff;
}

.btn-outline-info {
    --bs-btn-color: var(--ff-info);
    --bs-btn-bg: transparent;
}

.form-control,
.form-select {
    min-height: calc(1.5em + 0.5rem + 2px);
    border-color: var(--ff-border);
    border-radius: var(--ff-radius);
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5 .select2-selection:focus {
    border-color: var(--ff-forest);
    box-shadow: 0 0 0 0.2rem rgb(31 77 58 / 15%);
}

.form-label {
    margin-bottom: 0.3rem;
    color: var(--ff-ink);
    font-size: 0.8125rem;
    font-weight: 600;
}

.select2-container--bootstrap-5 .select2-selection {
    border-color: var(--ff-border);
    border-radius: var(--ff-radius);
}

.badge,
.ff-status {
    border-radius: var(--ff-radius);
    font-size: 0.75rem;
    font-weight: 650;
}

.ff-status--success { color: #1e5b38; background: #e1f2e7; }
.ff-status--info { color: #1a5c6d; background: #e0f0f4; }
.ff-status--warning { color: #7b5210; background: #f9eed4; }
.ff-status--danger { color: #8d302c; background: #f8e0de; }
.ff-status--neutral { color: #4f5961; background: #e9ecef; }

.alert {
    border-width: 1px;
    border-radius: var(--ff-radius);
}

.ff-empty-state {
    padding: 2.25rem 1rem;
    color: var(--ff-muted);
    text-align: center;
}

.ff-empty-state i {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--ff-gold);
    font-size: 1.5rem;
}

.ff-dashboard-chart {
    height: 18rem;
}

.ff-dashboard-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.ff-dashboard-item small {
    display: block;
    margin-top: 0.1rem;
    color: var(--ff-muted);
}

.ff-dashboard-metric {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--ff-border);
}

.ff-dashboard-metric:last-of-type {
    border-bottom: 0;
}

@media (max-width: 575.98px) {
    .ff-dashboard-chart {
        height: 14rem;
    }
}

/* jqGrid retains its own older CSS, so it needs a compact visual bridge. */
.ui-jqgrid {
    max-width: 100%;
    border: 1px solid var(--ff-border) !important;
    border-radius: var(--ff-radius);
    color: var(--ff-ink);
    font-family: inherit;
    font-size: 0.8125rem;
}

.ui-jqgrid .ui-jqgrid-view,
.ui-jqgrid .ui-jqgrid-hdiv,
.ui-jqgrid .ui-jqgrid-bdiv,
.ui-jqgrid .ui-jqgrid-pager {
    border: 0 !important;
}

.ui-jqgrid .ui-jqgrid-htable th,
.ui-jqgrid .ui-jqgrid-labels {
    background: #f1f4f1 !important;
    color: var(--ff-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ui-jqgrid tr.jqgrow td {
    height: 2.4rem;
    border-color: #e7ebe7 !important;
}

.ui-jqgrid tr.jqgrow:hover > td {
    background: var(--ff-sage) !important;
}

.ui-jqgrid .ui-state-highlight,
.ui-jqgrid tr.ui-state-highlight > td {
    background: #dceade !important;
}

.ui-jqgrid .ui-pg-button:hover,
.ui-jqgrid .ui-state-hover {
    color: var(--ff-forest) !important;
}

.ui-jqgrid .ui-jqgrid-titlebar {
    display: none;
}

.ff-grid-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f1f4f1;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
}

.ff-grid-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ff-grid-toolbar .btn {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.ff-grid-toolbar__search {
    position: relative;
    min-width: min(100%, 17rem);
    margin: 0;
}

.ff-grid-toolbar__search i {
    position: absolute;
    top: 50%;
    left: 0.55rem;
    z-index: 1;
    color: var(--ff-muted);
    font-size: 0.75rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.ff-grid-toolbar__search input {
    padding-left: 1.75rem;
}

.user-select-all {
    user-select: all;
    -webkit-user-select: all;
    padding: 0.1rem 0.4rem;
    background-color: var(--bs-secondary-bg);
    border-radius: var(--ff-radius);
    font-size: 0.875em;
}

.login-page .card { border: none !important; }
.login-page .card-body { padding: 2rem; }

/* Compact Bootstrap alert used by Flash messages. */
.alert.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

@media (max-width: 767.98px) {
    .app-content-header {
        padding-top: 1rem;
    }

    .app-content-header h3 {
        font-size: 1.25rem;
    }

    .card-header,
    .card-body {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .ui-jqgrid-bdiv {
        overflow-x: auto !important;
    }

    .ff-grid-toolbar__search {
        width: 100%;
    }
}

/* Weekly timesheet ledger */
.ff-timesheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.ff-timesheet-week-nav {
    display: flex;
    gap: 0.35rem;
}

.ff-timesheet-week-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ff-timesheet-week-heading h2 {
    margin: 0.15rem 0 0;
    color: var(--ff-ink);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.ff-timesheet-eyebrow {
    color: var(--ff-muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ff-timesheet-grand-total {
    min-width: 9rem;
    padding: 0.7rem 0.9rem;
    color: #fff;
    background: var(--ff-forest-deep);
    border-left: 0.25rem solid var(--ff-gold);
}

.ff-timesheet-grand-total span,
.ff-timesheet-grand-total strong {
    display: block;
}

.ff-timesheet-grand-total span {
    color: #c9dbd0;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ff-timesheet-grand-total strong {
    margin-top: 0.1rem;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.ff-timesheet-calendar-card {
    overflow: hidden;
}

.ff-timesheet-grid {
    min-width: 82rem;
    table-layout: fixed;
}

.ff-timesheet-grid th,
.ff-timesheet-grid td {
    border-color: #dfe5e0;
}

.ff-timesheet-grid thead th {
    width: 9.75rem;
    padding: 0.7rem;
    color: #fff;
    background: var(--ff-forest-deep);
    border-bottom: 0;
    text-align: center;
}

.ff-timesheet-grid thead th span,
.ff-timesheet-grid thead th strong {
    display: block;
}

.ff-timesheet-grid thead th span {
    color: #bcd0c4;
    font-size: 0.67rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ff-timesheet-grid thead th strong {
    margin-top: 0.1rem;
    font-size: 0.95rem;
}

.ff-timesheet-grid thead th.is-weekend {
    background: #294c3d;
}

.ff-timesheet-grid .is-today {
    box-shadow: inset 0 3px 0 var(--ff-gold);
}

.ff-timesheet-grid .ff-timesheet-person {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 12rem;
    min-width: 12rem;
    background: #f3f6f4;
}

.ff-timesheet-grid thead .ff-timesheet-person {
    z-index: 4;
    color: #fff;
    background: var(--ff-forest-deep);
    text-align: left;
}

.ff-timesheet-grid tbody .ff-timesheet-person {
    vertical-align: middle;
}

.ff-timesheet-grid tbody .ff-timesheet-person > span:last-child {
    display: block;
    margin-top: 0.45rem;
    line-height: 1.25;
}

.ff-timesheet-avatar {
    display: grid;
    width: 2rem;
    height: 2rem;
    color: var(--ff-forest-deep);
    background: #dce9e1;
    border: 1px solid #c1d4c7;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    place-items: center;
}

.ff-timesheet-day {
    position: relative;
    height: 8.5rem;
    padding: 0.45rem !important;
    vertical-align: top;
    background: #fff;
}

.ff-timesheet-day.is-weekend {
    background: #f7f9f7;
}

.ff-timesheet-entries {
    display: grid;
    gap: 0.35rem;
}

.ff-time-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.05rem 0.4rem;
    padding: 0.4rem 0.45rem;
    color: var(--ff-ink);
    background: #eef4f0;
    border-left: 0.2rem solid var(--ff-neutral);
    text-decoration: none;
}

.ff-time-entry:hover {
    color: var(--ff-forest-deep);
    background: #e2ece6;
}

.ff-time-entry span {
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-time-entry strong {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.ff-time-entry small {
    grid-column: 1 / -1;
    color: var(--ff-muted);
    font-size: 0.62rem;
}

.ff-time-entry.is-draft { border-left-color: var(--ff-neutral); }
.ff-time-entry.is-submitted { border-left-color: var(--ff-info); }
.ff-time-entry.is-approved { border-left-color: var(--ff-success); }
.ff-time-entry.is-rejected { border-left-color: var(--ff-danger); }
.ff-time-entry.is-invoiced { border-left-color: var(--ff-gold-deep); }

.ff-task-table td {
    vertical-align: middle;
}

.ff-task-card {
    border-left: 0.25rem solid var(--ff-forest) !important;
}

.ff-task-card .btn {
    min-height: 2.4rem;
}

.ff-timesheet-add {
    display: flex;
    width: 100%;
    min-height: 2rem;
    margin-top: 0.35rem;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    color: var(--ff-muted);
    background: transparent;
    border: 1px dashed #b7c5bb;
    font-size: 0.68rem;
}

.ff-timesheet-add:hover,
.ff-timesheet-add:focus-visible {
    color: var(--ff-forest-deep);
    background: var(--ff-sage);
    border-color: var(--ff-forest);
}

.ff-timesheet-cell-total {
    margin-top: 0.45rem;
    color: var(--ff-muted);
    font-size: 0.66rem;
    font-weight: 700;
    text-align: right;
}

.ff-timesheet-grid .ff-timesheet-total {
    position: sticky;
    right: 0;
    z-index: 2;
    width: 7rem;
    background: #eef1ef;
    vertical-align: middle;
    text-align: center;
}

.ff-timesheet-grid thead .ff-timesheet-total {
    z-index: 4;
    color: #fff;
    background: #343b37;
}

.ff-timesheet-grid tfoot th,
.ff-timesheet-grid tfoot td {
    padding: 0.65rem;
    color: var(--ff-forest-deep);
    background: #e5eee8;
    font-size: 0.72rem;
    font-weight: 750;
    text-align: center;
}

@media (max-width: 767.98px) {
    .ff-timesheet-toolbar {
        align-items: stretch;
    }

    .ff-timesheet-toolbar > *,
    .ff-timesheet-week-nav {
        flex: 1 1 auto;
    }

    .ff-timesheet-week-nav .btn:nth-child(2) {
        flex: 1;
    }

    .ff-timesheet-week-heading {
        align-items: stretch;
    }

    .ff-timesheet-week-heading h2 {
        font-size: 1.05rem;
    }

    .ff-timesheet-grand-total {
        min-width: 7.5rem;
    }

    .ff-timesheet-calendar-card .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
