:root {
    --font-sans: "Urbanist", "Segoe UI", sans-serif;
    --font-display: "Urbanist", "Segoe UI", sans-serif;
    --bg: #f4f7fb;
    --bg-accent: #eaf0f8;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --surface-dark: #11243d;
    --line: #d7e0ec;
    --line-strong: #c5d2e2;
    --text: #162133;
    --muted: #6c7a90;
    --primary: #1f5fb8;
    --primary-deep: #184888;
    --success: #1f9d73;
    --danger: #d44747;
    --info: #2f7fc2;
    --warning: #cc8a18;
    --shadow-lg: 0 22px 48px rgba(15, 35, 64, 0.1);
    --shadow-md: 0 12px 28px rgba(15, 35, 64, 0.07);
    --shadow-sm: 0 6px 16px rgba(15, 35, 64, 0.05);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --sidebar-width: 256px;
    --container-gap: 22px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(29, 95, 209, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 40%, #eef3f9 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-copy,
.topbar-subtitle,
.site-footer p,
.surface-note p,
.note-card p {
    color: var(--muted);
    line-height: 1.7;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-left: var(--sidebar-width);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    gap: 22px;
    padding: 24px 18px;
    background: linear-gradient(180deg, rgba(16, 35, 63, 0.98), rgba(11, 24, 44, 0.98));
    color: #dbe7f7;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 16px 0 30px rgba(7, 18, 34, 0.14);
}

.sidebar-brand,
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-brand strong,
.brand-lockup h1 {
    display: block;
    margin: 0;
    font-family: var(--font-display);
}

.brand-lockup h1 {
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    line-height: 1.1;
}

.brand-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d5fd1, #3d88ff);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(29, 95, 209, 0.28);
}

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

.nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #c2d4ef;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(177, 206, 244, 0.18);
    transform: translateY(-1px);
}

.nav-link-title {
    font-weight: 700;
}

.sidebar-user {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(177, 206, 244, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-name {
    font-weight: 800;
    color: #ffffff;
}

.sidebar-user-meta {
    color: #9db4d3;
    font-size: 0.92rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px 14px;
    background: rgba(243, 246, 251, 0.84);
    backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 2.6vw, 1.8rem);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-user-copy {
    display: grid;
    gap: 2px;
}

.topbar-user-copy strong {
    font-size: 0.95rem;
}

.topbar-user-copy span {
    color: var(--muted);
    font-size: 0.88rem;
}

.logout-form {
    margin: 0;
}

.status-dot {
    display: inline-flex;
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #22b07f, #1a8c66);
    box-shadow: 0 0 0 4px rgba(31, 157, 115, 0.14);
}

.app-content {
    display: grid;
    gap: var(--container-gap);
    padding: 0 28px 28px;
}

.page-section,
.content-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.hero-card,
.surface-card,
.stat-card,
.auth-card {
    border: 1px solid rgba(191, 208, 228, 0.7);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
}

.hero-card h1,
.card-head h2,
.auth-card h2 {
    margin: 0;
    font-family: var(--font-display);
}

.hero-card h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.stat-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-card p,
.stat-card span {
    margin: 0;
}

.stat-card strong {
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    line-height: 1;
}

.content-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
}

.surface-card,
.auth-card {
    padding: 20px;
}

.stack-gap {
    align-content: start;
}

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

.card-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.card-head h2 {
    font-size: 1.18rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge-success {
    background: rgba(31, 157, 115, 0.12);
    color: var(--success);
}

.badge-muted {
    background: rgba(29, 95, 209, 0.08);
    color: var(--primary-deep);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(191, 208, 228, 0.72);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

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

.data-table th,
.data-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(217, 227, 240, 0.9);
    vertical-align: top;
    word-break: break-word;
}

.data-table th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.data-table td strong {
    display: block;
    margin-bottom: 4px;
}

.table-meta {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.note-card,
.surface-note {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.surface-note {
    display: block;
}

.surface-note strong {
    display: block;
    margin-bottom: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 700;
    transition: 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #347fff);
    box-shadow: 0 16px 28px rgba(29, 95, 209, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 20px 34px rgba(29, 95, 209, 0.28);
}

.btn-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #c53a50, #e05b71);
    box-shadow: 0 16px 28px rgba(197, 58, 80, 0.18);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 9px;
}

.form-field span {
    font-size: 0.94rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
    min-height: 108px;
    padding: 12px 14px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(29, 95, 209, 0.48);
    box-shadow: 0 0 0 4px rgba(29, 95, 209, 0.11);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 90px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    min-width: 68px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
    color: var(--primary-deep);
    font-weight: 700;
    transform: translateY(-50%);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.form-helper {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.alert {
    display: block;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 600;
    line-height: 1.7;
}

.alert-stack {
    display: grid;
    gap: 12px;
}

.alert-success {
    color: #17654d;
    border-color: rgba(31, 157, 115, 0.18);
    background: rgba(31, 157, 115, 0.11);
}

.alert-danger {
    color: #8f2d2d;
    border-color: rgba(212, 71, 71, 0.16);
    background: rgba(212, 71, 71, 0.1);
}

.alert-info {
    color: #1d5d8f;
    border-color: rgba(47, 127, 194, 0.18);
    background: rgba(47, 127, 194, 0.1);
}

.alert-list {
    margin: 0;
    padding-left: 18px;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(460px, 100%);
    margin: 0 auto;
}

.auth-main {
    display: grid;
    gap: 16px;
}

.auth-grid {
    display: grid;
    gap: 16px;
}

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

.auth-card {
    padding: 26px;
}

.auth-login-shell {
    display: grid;
}

.auth-card-compact {
    padding: 28px;
}

.auth-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-login-brand strong,
.auth-login-brand span {
    display: block;
}

.auth-login-brand span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-login-head {
    margin-bottom: 18px;
}

.auth-login-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
}

.btn-block {
    width: 100%;
}

.site-footer {
    padding: 4px 0 0;
}

.site-footer p {
    margin: 0;
    font-size: 0.86rem;
    text-align: center;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    border: 0;
    background: rgba(8, 18, 35, 0.4);
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.filters-card,
.details-grid,
.summary-grid,
.content-stack {
    display: grid;
    gap: 16px;
}

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

.customer-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 16px;
    align-items: start;
}

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

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

.filters-actions,
.table-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-actions form {
    margin: 0;
}

.inline-actions .btn,
.inline-actions form .btn {
    min-width: 88px;
    white-space: nowrap;
}

.empty-state {
    padding: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
}

.detail-card {
    padding: 18px;
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.detail-card h3,
.detail-list dt,
.detail-list dd {
    margin: 0;
}

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

.detail-list-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.detail-row {
    display: grid;
    gap: 4px;
}

.detail-row-wide {
    grid-column: 1 / -1;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-list dd {
    font-size: 1rem;
    line-height: 1.6;
}

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

.summary-box {
    padding: 16px;
    border: 1px solid rgba(191, 208, 228, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.summary-box strong,
.summary-box span {
    display: block;
}

.summary-box span {
    margin-top: 6px;
    color: var(--muted);
}

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

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

.form-section-grid .form-field.is-full {
    grid-column: 1 / -1;
}

.section-block {
    padding: 18px;
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
}

.section-block h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.section-block p {
    margin: 0 0 14px;
    color: var(--muted);
}

.metric-inline {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(29, 95, 209, 0.08);
    color: var(--primary-deep);
    font-size: 0.84rem;
    font-weight: 800;
}

.amount-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(31, 157, 115, 0.12);
    color: var(--success);
    font-weight: 800;
    white-space: nowrap;
}

.map-placeholder,
.module-placeholder,
.note-surface {
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(240, 246, 255, 0.78));
}

.map-placeholder {
    min-height: 260px;
    padding: 20px;
    display: flex;
    align-items: stretch;
}

.map-placeholder-grid {
    display: grid;
    width: 100%;
    gap: 14px;
    align-content: center;
    justify-items: start;
    padding: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(29, 95, 209, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 255, 0.9));
}

.map-placeholder-grid strong,
.module-placeholder-row strong,
.placeholder-title {
    font-size: 1rem;
}

.map-placeholder-grid p,
.module-placeholder-row p,
.placeholder-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.map-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.module-placeholder {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.map-form-panel {
    display: grid;
    gap: 16px;
}

.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.leaflet-map {
    width: 100%;
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.leaflet-map-form {
    min-height: 320px;
}

.leaflet-map-detail {
    min-height: 280px;
}

.leaflet-map-page {
    min-height: 500px;
}

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

[data-map-status].is-success {
    background: rgba(31, 157, 115, 0.12);
    color: var(--success);
}

[data-map-status].is-danger {
    background: rgba(212, 71, 71, 0.12);
    color: var(--danger);
}

[data-map-status].is-muted {
    background: rgba(29, 95, 209, 0.08);
    color: var(--primary-deep);
}

.map-popup {
    display: grid;
    gap: 12px;
    min-width: 260px;
    max-width: 320px;
}

.map-popup strong,
.map-popup p {
    margin: 0;
}

.map-popup p {
    color: var(--muted);
    line-height: 1.6;
}

.map-popup-head {
    display: grid;
    gap: 4px;
}

.map-popup-head span,
.map-popup-section small {
    color: var(--muted);
    line-height: 1.5;
}

.map-popup-section {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(191, 208, 228, 0.7);
}

.map-popup-section label {
    color: var(--primary-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-popup-machine-list {
    display: grid;
    gap: 8px;
    max-height: 140px;
    margin: 0;
    padding-left: 18px;
    overflow-y: auto;
    color: var(--muted);
}

.map-popup-machine-list li {
    line-height: 1.5;
}

.map-popup-empty {
    color: var(--muted);
}

.hero-card .section-copy,
.topbar-subtitle {
    display: none;
}

.map-popup-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.map-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(29, 95, 209, 0.1);
    color: var(--primary-deep);
    font-weight: 700;
    text-align: center;
}

.map-popup-link.is-secondary {
    background: rgba(16, 35, 63, 0.08);
    color: var(--text);
}

.map-customer-list {
    display: grid;
    gap: 14px;
}

.map-list-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.map-list-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.map-list-card-top,
.map-list-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.module-placeholder-row {
    display: grid;
    gap: 6px;
}

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

.placeholder-item,
.placeholder-table-row,
.placeholder-table-head {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
}

.placeholder-item {
    border: 1px solid rgba(191, 208, 228, 0.8);
    background: rgba(255, 255, 255, 0.86);
}

.placeholder-title {
    font-weight: 800;
}

.placeholder-list-table {
    gap: 8px;
}

.placeholder-table-head,
.placeholder-table-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.placeholder-table-head {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(29, 95, 209, 0.06);
}

.placeholder-table-row {
    border: 1px solid rgba(191, 208, 228, 0.8);
    background: rgba(255, 255, 255, 0.86);
}

.note-surface {
    padding: 18px;
    color: var(--text);
    line-height: 1.8;
    min-height: 180px;
    white-space: pre-wrap;
}

.detail-card-sticky {
    position: sticky;
    top: 104px;
}

.detail-delete {
    width: 100%;
}

.assignment-form {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
}

.assignment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr) minmax(0, 1fr);
    gap: 14px;
}

.assignment-note {
    grid-column: auto;
}

.assignment-table-wrap {
    border: 1px solid rgba(191, 208, 228, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.assignment-table td form {
    margin: 0;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid,
    .filters-grid,
    .filters-grid-wide,
    .summary-grid,
    .details-grid,
    .customer-detail-layout,
    .detail-list-two,
    .assignment-grid,
    .map-helper-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .menu-toggle,
    .sidebar-backdrop.is-visible {
        display: inline-flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .topbar {
        padding: 20px 20px 14px;
    }

    .app-content {
        padding: 0 20px 24px;
    }
}

@media (max-width: 720px) {
    body,
    .auth-page {
        padding: 0;
    }

    .auth-shell,
    .app-shell {
        width: 100%;
    }

    .topbar,
    .hero-card,
    .card-head,
    .topbar-left,
    .topbar-right,
    .page-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-right,
    .hero-actions,
    .form-actions {
        width: 100%;
    }

    .topbar-right .btn,
    .hero-actions .btn,
    .form-actions .btn,
    .page-toolbar .btn {
        width: 100%;
    }

    .auth-card,
    .surface-card,
    .hero-card,
    .stat-card {
        padding: 16px;
        border-radius: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .map-popup-actions {
        grid-template-columns: 1fr;
    }

    .map-list-card-top,
    .map-list-card-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .placeholder-table-head,
    .placeholder-table-row {
        grid-template-columns: 1fr 1fr;
    }
}
