:root {
    --green: #174d3f;
    --green-dark: #123e33;
    --green-soft: #e6f1ed;
    --gray-50: #f7faf8;
    --gray-100: #eef3ef;
    --gray-300: #cdd8d1;
    --gray-600: #64706a;
    --gray-900: #18211d;
    --white: #ffffff;
    --red: #d94a4a;
    --yellow: #b7791f;
    --blue: #2f80ed;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(23, 77, 63, 0.09);
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--gray-100);
    backdrop-filter: blur(12px);
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-900);
    font-weight: 800;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: 168px;
    max-width: 44vw;
    height: auto;
}

.brand-mark {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
}

.brand-text {
    display: inline-block;
    max-width: 220px;
    color: var(--green-dark);
    font-size: 15px;
    line-height: 1.1;
}

.nav-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: var(--white);
    font-size: 20px;
}

.nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.nav.is-open {
    display: grid;
    gap: 10px;
}

.nav a,
.nav-user {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--gray-900);
    white-space: nowrap;
}

.nav a:hover {
    background: var(--green-soft);
}

.nav a.btn {
    color: var(--white);
}

.nav a.btn:hover {
    background: var(--green-dark);
    color: var(--white);
}

.nav-user {
    color: var(--gray-600);
}

.app-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: var(--space-xl) 16px 64px;
}

.app-shell > * + * {
    margin-top: var(--space-lg);
}

.footer {
    padding: 22px;
    color: var(--gray-600);
    text-align: center;
}

.hero {
    display: grid;
    min-height: 68vh;
    align-items: center;
    padding: 46px 0 34px;
}

.hero-logo {
    display: block;
    width: min(340px, 88vw);
    height: auto;
    margin-bottom: 26px;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: clamp(38px, 9vw, 76px);
    line-height: 1;
}

.hero-copy {
    max-width: 620px;
    color: var(--gray-600);
    font-size: 18px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-heading,
.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.page-heading h1,
.section-title h2 {
    margin-bottom: 0;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.stack {
    display: grid;
    gap: var(--space-lg);
}

.card,
.auth-card,
.empty-state {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card {
    width: min(440px, 100%);
    margin: 36px auto;
}

.auth-switch {
    margin: 18px 0 0;
    text-align: center;
}

.empty-state {
    color: var(--gray-600);
    text-align: center;
}

.form {
    display: grid;
    gap: var(--space-md);
}

.form label {
    display: grid;
    gap: 7px;
    color: var(--gray-600);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 11px;
    background: var(--white);
    color: var(--gray-900);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(23, 77, 63, 0.18);
    border-color: var(--green);
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.btn:hover {
    background: var(--green-dark);
    color: var(--white);
}

.btn:disabled {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}

.btn.is-disabled {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background: var(--green-soft);
    color: var(--green-dark);
}

.btn-secondary:hover {
    background: #d7f0e2;
    color: var(--green-dark);
}

.btn-danger {
    background: #fce3e3;
    color: #b4232c;
    border: 1px solid #f4b9bd;
}

.btn-danger:hover {
    background: #f8cfd2;
    color: #8f1d24;
}

.btn-block {
    width: 100%;
}

.btn-small {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 14px;
}

.btn-chat {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.actions.vertical {
    display: grid;
    gap: var(--space-md);
}

.actions.vertical form {
    width: 100%;
}

.actions.vertical .btn {
    width: 100%;
}

.muted {
    color: var(--gray-600);
}

.alert {
    margin-bottom: var(--space-md);
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.alert-success {
    background: var(--green-soft);
    color: var(--green-dark);
}

.alert-error {
    background: #ffe8e8;
    color: var(--red);
}

.order-card {
    display: grid;
    gap: var(--space-md);
}

.order-card h3 {
    margin-bottom: 6px;
}

.order-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.badge-pending {
    background: #fff5dc;
    color: var(--yellow);
}

.badge-assigned {
    background: #e8f1ff;
    color: var(--blue);
}

.badge-on-progress {
    background: #e9e8ff;
    color: #5b4fd6;
}

.badge-completed {
    background: var(--green-soft);
    color: var(--green-dark);
}

.badge-cancelled {
    background: #ffe8e8;
    color: var(--red);
}

.badge-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

.location-badge {
    width: fit-content;
}

.location-tempat-tinggal {
    background: var(--green-soft);
    color: var(--green-dark);
}

.location-ruang-usaha {
    background: #e8f1ff;
    color: var(--blue);
}

.location-kantor {
    background: #eee9ff;
    color: #6b46c1;
}

.location-event {
    background: #fff0df;
    color: #c05621;
}

.detail-list {
    display: grid;
    gap: 10px;
}

.detail-list p {
    display: grid;
    gap: 3px;
    margin-bottom: 0;
}

.detail-list span {
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.metric {
    display: grid;
    gap: 6px;
}

.metric span {
    color: var(--gray-600);
    font-weight: 800;
}

.metric strong {
    font-size: 28px;
}

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

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-lg);
}

.pagination-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(23, 77, 63, 0.1);
}

.pagination-link,
.pagination-ellipsis {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #08b7a6;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.pagination-link {
    padding: 0 9px;
}

.pagination-nav {
    min-width: auto;
    padding: 0 11px;
}

.pagination-link:hover {
    background: var(--green-soft);
    color: var(--green-dark);
}

.pagination-link.is-active {
    background: #08b7a6;
    color: var(--white);
}

.pagination-link.is-disabled {
    pointer-events: none;
    opacity: 0.5;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--gray-600);
    font-size: 13px;
}

.filter-bar {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-bar a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-600);
    font-weight: 800;
}

.filter-bar a.active {
    background: var(--green);
    color: var(--white);
}

.total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green-dark);
}

.total-box strong {
    font-size: 22px;
}

.checklist {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.checklist li {
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--gray-50);
}

.checklist li.checked {
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 800;
}

.check-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.check-row input[type="checkbox"] {
    width: 22px;
    min-height: 22px;
}

.rating {
    color: var(--yellow);
    font-weight: 900;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.star-rating {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    width: fit-content;
    max-width: 100%;
}

.rating-score {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.star {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #d1d5db;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
    line-height: 1;
}

.star.filled {
    background: linear-gradient(90deg, #f59e0b 0 50%, #fbbf24 50% 100%);
}

.rating-count {
    grid-column: 1 / -1;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 700;
}

.rating-form {
    margin-top: var(--space-md);
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.star-input legend {
    width: 100%;
    margin-bottom: 6px;
    color: var(--gray-600);
    font-weight: 800;
}

.star-input input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    opacity: 0;
}

.star-input label {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.rating-star-icon {
    display: block;
    width: 32px;
    height: 32px;
    background: #d1d5db;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
    transition: background 0.15s ease, filter 0.15s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    transform: translateY(-1px);
}

.star-input label:hover .rating-star-icon,
.star-input label:hover ~ label .rating-star-icon,
.star-input input:checked ~ label .rating-star-icon {
    background: linear-gradient(90deg, #f59e0b 0 50%, #fbbf24 50% 100%);
    filter: drop-shadow(0 4px 7px rgba(245, 158, 11, 0.28));
}

.star-input input:focus-visible + label {
    outline: 3px solid rgba(23, 77, 63, 0.18);
}

.embedded-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    background: var(--gray-50);
}

.terms-check,
.cleaner-choice,
.touch-check {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-900);
    font-weight: 700;
}

.terms-check input,
.cleaner-choice input,
.touch-check input {
    width: 20px;
    min-height: 20px;
}

.cleaner-card {
    display: grid;
    grid-template-columns: 22px 68px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cleaner-card:hover,
.cleaner-card:has(input:checked) {
    border-color: rgba(23, 77, 63, 0.45);
    background: #fbfffc;
    box-shadow: 0 8px 20px rgba(24, 33, 29, 0.07);
}

.cleaner-card input {
    width: 18px;
    min-height: 18px;
    grid-row: 1 / span 4;
    accent-color: var(--green);
}

.cleaner-card img,
.cleaner-card .avatar-placeholder {
    grid-row: 1 / span 4;
}

.cleaner-card img,
.cleaner-card .avatar-placeholder,
.profile-photo,
.cleaner-mini img,
.cleaner-mini .avatar-placeholder {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
}

.avatar-placeholder {
    display: inline-grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 24px;
    font-weight: 900;
}

.cleaner-card strong,
.cleaner-card span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cleaner-card strong {
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.2;
}

.cleaner-card span {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.25;
}

.cleaner-card .star-rating {
    margin-top: 1px;
}

.cleaner-card .rating-score {
    font-size: 13px;
}

.cleaner-card .star {
    font-size: 15px;
}

.cleaner-card .rating-count {
    font-size: 11px;
}

.cleaner-card .badge {
    width: fit-content;
    min-height: 24px;
    padding: 4px 9px;
    font-size: 11px;
}

.cleaner-mini {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    min-width: 0;
}

.cleaner-mini > div {
    min-width: 0;
}

.cleaner-mini strong,
.cleaner-mini p {
    overflow-wrap: anywhere;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.progress-bar,
.bar-track {
    width: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gray-100);
}

.progress-bar span,
.bar-track strong {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: var(--green);
}

.sop-area-card {
    display: grid;
    gap: var(--space-md);
}

.status-select {
    min-width: 180px;
}

.touch-checklist {
    display: grid;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

[data-available-panel],
[data-not-available-panel] {
    display: grid;
    gap: var(--space-md);
}

.before-after {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gray-100);
}

.sop-summary {
    padding: 14px;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    background: var(--gray-50);
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    background: linear-gradient(to top, var(--gray-50) 80%, rgba(247, 250, 248, 0));
}

.filter-form {
    display: grid;
    gap: var(--space-md);
}

.filter-form label {
    display: grid;
    gap: 6px;
    color: var(--gray-600);
    font-weight: 800;
}

.bar-chart {
    display: grid;
    gap: var(--space-md);
}

.bar-row {
    display: grid;
    grid-template-columns: 130px 1fr 36px;
    align-items: center;
    gap: var(--space-sm);
}

.bar-row em {
    color: var(--gray-600);
    font-style: normal;
    font-weight: 800;
    text-align: right;
}

.report-filter-card {
    overflow: visible;
}

.report-metrics .metric {
    min-width: 0;
}

.report-metrics .metric strong {
    overflow-wrap: anywhere;
}

.report-panels {
    align-items: start;
}

.report-table-wrap {
    overflow-x: visible;
}

.report-table-wrap table {
    min-width: 0;
    table-layout: auto;
}

.message-thread {
    display: grid;
    gap: var(--space-md);
    max-height: 62vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.message-bubble {
    width: min(720px, 92%);
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.message-bubble.is-mine {
    justify-self: end;
    background: var(--green-soft);
    border-color: rgba(23, 77, 63, 0.18);
}

.message-bubble p {
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.message-bubble span {
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 700;
}

.activity-list {
    display: grid;
    gap: 12px;
}

.activity-list.compact {
    gap: 10px;
}

.activity-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    background: var(--white);
    color: var(--gray-900);
    text-decoration: none;
}

.activity-item:hover {
    border-color: rgba(23, 77, 63, 0.26);
    background: #fbfffc;
}

.activity-dot {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--green);
}

.activity-message {
    background: #2563eb;
}

.activity-review {
    background: #f59e0b;
}

.activity-work-completed,
.activity-sop-submitted {
    background: #16a34a;
}

.activity-sop-photo {
    background: #7c3aed;
}

.activity-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.activity-title strong,
.activity-item p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.activity-item p {
    margin-bottom: 5px;
    color: var(--gray-700);
}

.inline-form {
    margin-top: var(--space-md);
}

.action-form {
    display: block;
    width: 100%;
    margin-bottom: var(--space-lg);
}

.compact-form {
    margin-bottom: var(--space-md);
}

@media (max-width: 719px) {
    .pagination-pill {
        gap: 4px;
        padding: 7px 10px;
    }

    .pagination-link,
    .pagination-ellipsis {
        min-width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .report-filter-form {
        grid-template-columns: 1fr;
    }

    .bar-row {
        grid-template-columns: 1fr 34px;
        gap: 6px;
    }

    .bar-row span {
        grid-column: 1 / -1;
        font-weight: 800;
    }

    .metric strong {
        font-size: 23px;
    }

    .report-table-wrap table,
    .report-table-wrap thead,
    .report-table-wrap tbody,
    .report-table-wrap tr,
    .report-table-wrap td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .report-table-wrap thead {
        display: none;
    }

    .report-table-wrap tr {
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .report-table-wrap td {
        display: flex;
        justify-content: space-between;
        gap: var(--space-md);
        padding: 7px 0;
        border-bottom: 0;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .report-table-wrap td::before {
        content: attr(data-label);
        flex: 0 0 44%;
        color: var(--gray-600);
        font-weight: 800;
        text-align: left;
    }
}

@media (min-width: 720px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 4px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .nav a,
    .nav-user {
        padding: 8px 9px;
        font-size: 14px;
    }

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

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

    .cleaner-card {
        grid-template-columns: 20px 72px minmax(0, 1fr);
        min-height: 108px;
    }

    .cleaner-card img,
    .cleaner-card .avatar-placeholder,
    .profile-photo,
    .cleaner-mini img,
    .cleaner-mini .avatar-placeholder {
        width: 72px;
        height: 72px;
    }

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

    .order-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .order-side {
        justify-content: flex-end;
    }

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

    .filter-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        align-items: end;
    }

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

@media (min-width: 1040px) {
    .grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-form {
        grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto;
    }

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

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

    .nav a,
    .nav-user {
        padding: 9px 11px;
        font-size: 15px;
    }
}

@media (min-width: 1240px) {
    .report-filter-form {
        grid-template-columns: repeat(5, minmax(140px, 1fr)) auto auto;
    }
}
