:root {
    --gt-primary: #16845b;
    --gt-primary-dark: #0e6847;
    --gt-primary-light: #e8f7ef;
    --gt-bg: #f5f7fb;
    --gt-card: #fff;
    --gt-border: #e6ebf1;
    --gt-text: #17212b;
    --gt-muted: #748091;
    --gt-sidebar: 268px;
    --gt-radius: 16px;
    --gt-shadow: 0 8px 28px rgba(25,39,65,.055)
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    min-width: 320px;
    background: var(--gt-bg);
    color: var(--gt-text);
    font-family: Inter,"Segoe UI",Arial,sans-serif
}

a {
    color: inherit
}

button, input, select, textarea {
    font: inherit
}

.btn {
    border-radius: 10px
}

.form-control, .form-select {
    min-height: 44px;
    border-color: #dfe6ed;
    border-radius: 10px
}

    .form-control:focus, .form-select:focus {
        border-color: var(--gt-primary);
        box-shadow: 0 0 0 3px rgba(22,132,91,.1)
    }
/* Login */
.gt-login-layout, .login-layout {
    min-height: 100vh
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 15% 10%,rgba(22,132,91,.13),transparent 34%),linear-gradient(145deg,#f7fbf9,#eef3f7)
}

.login-card {
    width: min(100%,430px);
    padding: 38px;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(25,50,65,.12)
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

    .login-header:before {
        content: "";
        display: block;
        width: 68px;
        height: 68px;
        margin: 0 auto 16px;
        background: url('/images/logo.png') center/contain no-repeat
    }

    .login-header h1 {
        margin: 0;
        padding: 0;
        font-size: 30px;
        font-weight: 800;
        color: var(--gt-primary-dark);
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .login-header p {
        margin: 7px 0 0;
        color: var(--gt-muted)
    }

.form-group {
    margin-bottom: 18px
}

    .form-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 12px;
        font-weight: 700;
        color: #536173
    }

.login-button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 11px;
    background: var(--gt-primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(22,132,91,.2)
}

    .login-button:hover {
        background: var(--gt-primary-dark)
    }

.error-message {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff0f0;
    color: #a52c32;
    font-size: 13px
}

.gt-startup-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px
}

.gt-startup-logo {
    width: 78px
}

.gt-startup-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #dcebe4;
    border-top-color: var(--gt-primary);
    border-radius: 50%;
    animation: gtspin .8s linear infinite
}

@keyframes gtspin {
    to {
        transform: rotate(360deg)
    }
}
/* Shell */
.gt-app-shell {
    min-height: 100vh;
    display: flex
}

.gt-nav-toggle {
    position: fixed;
    opacity: 0;
    pointer-events: none
}

.gt-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: var(--gt-sidebar);
    display: flex;
    flex-direction: column;
    padding: 22px 14px;
    background: #fff;
    border-right: 1px solid var(--gt-border);
    overflow-y: auto
}

.gt-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px 24px
}

.gt-brand-logo {
    width: 43px;
    height: 43px;
    object-fit: contain
}

.gt-brand-name {
    font-size: 20px;
    font-weight: 850;
    color: var(--gt-primary-dark);
    letter-spacing: -.5px
}

.gt-brand-subtitle {
    margin-top: 2px;
    color: #8b96a3;
    font-size: 10px
}

.gt-sidebar-close {
    display: none;
    margin-left: auto;
    font-size: 25px;
    color: #718091
}

.gt-sidebar-caption {
    padding: 5px 13px 9px;
    color: #a0a9b4;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.2px
}

.gt-admin-caption {
    margin-top: 20px
}

.gt-navigation {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.gt-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 0 13px;
    border-radius: 11px;
    color: #5c6978;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 650;
    transition: .18s ease
}

    .gt-nav-item > span:first-child {
        display: grid;
        place-items: center;
        width: 21px;
        font-size: 17px
    }

    .gt-nav-item:hover {
        background: #f1f8f5;
        color: var(--gt-primary-dark)
    }

    .gt-nav-item.active {
        background: var(--gt-primary);
        color: #fff;
        box-shadow: 0 6px 15px rgba(22,132,91,.18)
    }

.gt-nav-subitem {
    padding-left: 22px
}

.gt-sidebar-footer {
    margin-top: auto;
    padding-top: 24px
}

.gt-logout-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #657283;
    font-size: 12px;
    font-weight: 700
}

    .gt-logout-button:hover {
        background: #fff1f1;
        color: #b33d42
    }

.gt-version {
    padding: 12px 13px 0;
    color: #a3adb7;
    font-size: 9px
}

.gt-main-wrapper {
    width: calc(100% - var(--gt-sidebar));
    margin-left: var(--gt-sidebar);
    min-width: 0
}

.gt-topbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--gt-border);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px)
}

.gt-topbar-left, .gt-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px
}

.gt-topbar-title {
    font-size: 16px;
    font-weight: 850
}

.gt-topbar-subtitle {
    margin-top: 2px;
    color: var(--gt-muted);
    font-size: 10px
}

.gt-online {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6d7885;
    font-size: 11px;
    font-weight: 650
}

    .gt-online span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #23ad6a;
        box-shadow: 0 0 0 4px #e5f7ed
    }

.gt-user-avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gt-primary-light);
    color: var(--gt-primary-dark);
    font-weight: 850
}

.gt-menu-button {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    background: #fff;
    font-size: 18px
}

.gt-content {
    padding: 30px 34px 48px
}

.gt-nav-overlay {
    display: none
}
/* Shared */
.gt-page, .gt-dashboard {
    width: 100%;
    max-width: 1580px;
    margin: 0 auto
}

.gt-page-header, .gt-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px
}

.gt-eyebrow {
    margin-bottom: 7px;
    color: var(--gt-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.35px
}

.gt-page-title, .gt-dashboard-title {
    margin: 0;
    font-size: clamp(26px,3vw,34px);
    font-weight: 850;
    letter-spacing: -1px
}

.gt-page-subtitle, .gt-dashboard-description {
    margin: 8px 0 0;
    color: var(--gt-muted);
    font-size: 13px
}

.gt-date-chip {
    padding: 9px 13px;
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    background: #fff;
    color: #657180;
    font-size: 11px;
    font-weight: 650
}

.gt-primary-button, .gt-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800
}

.gt-primary-button {
    background: var(--gt-primary);
    color: #fff;
    box-shadow: 0 5px 14px rgba(22,132,91,.17)
}

    .gt-primary-button:hover {
        background: var(--gt-primary-dark);
        color: #fff
    }

.gt-secondary-button {
    background: var(--gt-primary-light);
    color: var(--gt-primary-dark)
}

.gt-content-card, .gt-summary-card, .gt-location-card {
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow)
}
/* Dashboard */
.gt-summary-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 16px
}

.gt-summary-card {
    min-width: 0;
    padding: 20px;
    transition: .18s ease
}

.gt-card-link {
    text-decoration: none
}

.gt-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(25,39,65,.09)
}

.gt-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    margin-bottom: 16px
}

.gt-summary-icon, .gt-quick-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800
}

.gt-icon-green {
    background: #e8f7ef;
    color: #16845b
}

.gt-icon-blue {
    background: #eaf2ff;
    color: #3478db
}

.gt-icon-purple {
    background: #f1eaff;
    color: #8056d6
}

.gt-icon-orange {
    background: #fff1df;
    color: #c77b21
}

.gt-icon-pink {
    background: #ffeaf1;
    color: #d44e82
}

.gt-summary-badge {
    padding: 4px 8px;
    border-radius: 20px;
    background: #e8f7ef;
    color: #16845b;
    font-size: 9px;
    font-weight: 850
}

.gt-badge-orange {
    background: #fff1df;
    color: #b96d17
}

.gt-summary-label {
    color: var(--gt-muted);
    font-size: 11px;
    font-weight: 650
}

.gt-summary-value {
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(23px,2.2vw,30px);
    font-weight: 850;
    letter-spacing: -.7px
}

.gt-summary-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: #8a95a1;
    font-size: 10px
}

.gt-dashboard-lower-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    margin-top: 20px
}

.gt-content-card {
    padding: 22px
}

.gt-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px
}

    .gt-card-heading h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 850
    }

    .gt-card-heading p {
        margin: 5px 0 0;
        color: var(--gt-muted);
        font-size: 10px
    }

.gt-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.gt-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid #edf0f4;
    border-radius: 11px;
    text-decoration: none;
    transition: .18s
}

    .gt-quick-action:hover {
        background: #f8fbf9;
        border-color: #cfe8da
    }

    .gt-quick-action strong {
        display: block;
        font-size: 12px
    }

    .gt-quick-action small {
        display: block;
        margin-top: 3px;
        color: var(--gt-muted);
        font-size: 10px
    }

    .gt-quick-action b {
        margin-left: auto;
        color: #95a0ab
    }

.gt-health-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 27px;
    padding: 0 9px;
    border-radius: 20px;
    background: #e8f7ef;
    color: #16845b;
    font-size: 9px;
    font-weight: 800
}

    .gt-health-pill i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #22ad6a
    }

.gt-system-list > div {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
    font-size: 11px;
    color: #667383
}

    .gt-system-list > div:last-child {
        border: 0
    }

.gt-system-list strong {
    color: #16845b;
    font-size: 10px
}
/* Locations */
.gt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px
}

.gt-search-box {
    display: flex;
    align-items: center;
    width: min(100%,520px);
    min-height: 44px;
    padding: 0 13px;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: 11px
}

    .gt-search-box input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 12px
    }

.gt-search-icon {
    margin-right: 9px;
    color: #91a0b1
}

.gt-clear-search {
    border: 0;
    background: transparent;
    color: #8c98a6;
    font-size: 19px
}

.gt-results-count {
    color: var(--gt-muted);
    font-size: 11px;
    font-weight: 700
}

.gt-location-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px
}

.gt-location-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    cursor: pointer;
    transition: .18s
}

    .gt-location-card:hover {
        transform: translateY(-2px);
        border-color: #b7ddd2;
        box-shadow: 0 12px 28px rgba(25,39,65,.08)
    }

.gt-location-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px
}

.gt-location-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0
}

.gt-location-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gt-primary-light);
    color: var(--gt-primary-dark);
    font-size: 12px;
    font-weight: 850
}

.gt-location-heading h2 {
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 850
}

.gt-location-code {
    color: var(--gt-muted);
    font-size: 10px;
    font-weight: 700
}

.gt-icon-button {
    display: grid;
    place-items: center;
    flex: 0 0 33px;
    height: 33px;
    border: 1px solid var(--gt-border);
    border-radius: 9px;
    background: #fff;
    color: var(--gt-primary-dark)
}

.gt-detail-label {
    display: block;
    margin-bottom: 5px;
    color: #9aa6b2;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: .65px
}

.gt-location-address {
    min-height: 52px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f3;
    color: #526174;
    font-size: 11px;
    line-height: 1.45
}

.gt-location-contact, .gt-location-metrics, .gt-revenue-split {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3
}

.gt-location-contact {
    grid-template-columns: repeat(2,minmax(0,1fr))
}

.gt-location-metrics {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.gt-revenue-split {
    grid-template-columns: 1.4fr 1fr 1fr;
    border-bottom: 0
}

    .gt-location-contact strong, .gt-revenue-split strong {
        font-size: 10.5px
    }

.gt-metric strong {
    font-size: 13px
}

.gt-location-footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    color: var(--gt-primary);
    font-size: 10px;
    font-weight: 800
}
/* Forms and common legacy page compatibility */
.form-shell {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto
}

.form-heading {
    margin-bottom: 24px
}

    .form-heading h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 850
    }

    .form-heading p {
        margin: 7px 0 0;
        color: var(--gt-muted);
        font-size: 12px
    }

.form-card {
    margin-bottom: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow)
}

    .form-card h4 {
        margin: 0 0 18px;
        font-size: 15px;
        font-weight: 850
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 17px
}

.field.wide {
    grid-column: 1/-1
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: #617083;
    font-size: 10.5px;
    font-weight: 750
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

    .section-head h4 {
        margin: 0
    }

.machine-add, .save {
    background: var(--gt-primary) !important;
    color: #fff !important
}

.machine-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.machine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    background: #fafcfd
}

    .machine-row strong {
        display: block;
        font-size: 12px
    }

    .machine-row span {
        display: block;
        margin-top: 3px;
        color: var(--gt-muted);
        font-size: 10px
    }

.empty {
    color: var(--gt-muted);
    font-size: 11px
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px
}

.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15,28,40,.5)
}

.machine-modal {
    width: min(100%,500px);
    max-height: 90vh;
    overflow: auto;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(0,0,0,.22)
}

    .machine-modal h4 {
        font-weight: 850
    }

    .machine-modal label {
        display: block;
        margin: 12px 0 6px;
        font-size: 10.5px;
        font-weight: 750;
        color: #617083
    }

.gt-error-panel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid #f1c7c9;
    border-radius: 13px;
    background: #fff6f6;
    margin-bottom:18px;
}

.gt-error-icon {
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    height: 31px;
    border-radius: 50%;
    background: #d9534f;
    color: #fff;
    font-weight: 850
}

.gt-error-panel h3 {
    margin: 0 0 4px;
    font-size: 14px
}

.gt-error-panel p {
    margin: 0 0 10px;
    color: #9b5558;
    font-size: 11px
}

.gt-empty-state {
    padding: 55px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d8e1e8;
    border-radius: 15px
}

.gt-empty-icon {
    margin-bottom: 10px;
    color: var(--gt-primary);
    font-size: 30px;
    font-weight: 850
}

.gt-empty-state h3 {
    font-size: 17px
}

.gt-empty-state p {
    color: var(--gt-muted);
    font-size: 12px
}

.gt-skeleton {
    border-radius: 7px;
    background: linear-gradient(90deg,#edf1f4 25%,#f8fafb 50%,#edf1f4 75%);
    background-size: 200% 100%;
    animation: gtskeleton 1.35s infinite
}

.gt-skeleton-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px
}

.gt-skeleton-line {
    width: 65%;
    height: 10px
}

.gt-skeleton-value {
    width: 45%;
    height: 28px;
    margin-top: 12px
}

@keyframes gtskeleton {
    to {
        background-position: -200% 0
    }
}
/* Generic existing page polish */
.page-head, .dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px
}

    .page-head h1, .dashboard-header h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 850
    }

    .page-head p, .dashboard-header p {
        color: var(--gt-muted);
        font-size: 12px
    }

.card, .dashboard-card, .dashboard-panel, .owner-card, .machine-card, .collection-card {
    border-color: var(--gt-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--gt-shadow) !important
}

.table {
    --bs-table-bg: transparent;
    font-size: 12px
}

    .table thead th {
        color: #7d8996;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .6px;
        border-bottom-color: var(--gt-border)
    }

    .table td {
        vertical-align: middle;
        border-color: #edf0f3
    }

.btn-success, .btn-primary {
    background: var(--gt-primary) !important;
    border-color: var(--gt-primary) !important
}

.text-success {
    color: var(--gt-primary) !important
}
/* Responsive */
@media(max-width:1400px) {
    .gt-summary-grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .gt-location-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:1000px) {
    :root {
        --gt-sidebar: 225px
    }

    .gt-content {
        padding: 26px 24px 40px
    }

    .gt-topbar {
        padding: 0 24px
    }

    .gt-dashboard-lower-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:760px) {
    .gt-sidebar {
        width: min(86vw,290px);
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 10px 0 35px rgba(24,39,65,.15)
    }

    .gt-nav-toggle:checked ~ .gt-sidebar {
        transform: translateX(0)
    }

    .gt-nav-toggle:checked + .gt-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(12,25,35,.38)
    }

    .gt-sidebar-close {
        display: block
    }

    .gt-main-wrapper {
        width: 100%;
        margin-left: 0
    }

    .gt-menu-button {
        display: grid
    }

    .gt-topbar {
        height: 68px;
        padding: 0 16px
    }

    .gt-online {
        display: none
    }

    .gt-content {
        padding: 20px 14px 32px
    }

    .gt-page-header, .gt-dashboard-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px
    }

    .gt-date-chip {
        align-self: flex-start
    }

    .gt-summary-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 11px
    }

    .gt-summary-card {
        padding: 16px
    }

    .gt-summary-value {
        font-size: 23px
    }

    .gt-location-grid {
        grid-template-columns: 1fr;
        gap: 13px
    }

    .gt-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .gt-search-box {
        width: 100%
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.wide {
        grid-column: auto
    }

    .form-card {
        padding: 17px
    }

    .section-head, .machine-row {
        align-items: stretch;
        flex-direction: column
    }

    .actions {
        flex-direction: column-reverse
    }

        .actions .btn, .actions button {
            width: 100%
        }

    .page-head, .dashboard-header {
        align-items: stretch;
        flex-direction: column
    }
}

@media(max-width:430px) {
    .gt-summary-grid {
        grid-template-columns: 1fr
    }

    .gt-location-contact, .gt-location-metrics, .gt-revenue-split {
        grid-template-columns: 1fr
    }

    .gt-location-heading h2 {
        white-space: normal;
        overflow-wrap: anywhere
    }

    .login-card {
        padding: 28px 22px
    }

    .gt-topbar-subtitle {
        display: none
    }
}
/* Collection machine date range */
.gt-machine-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
    color: var(--gt-muted);
    font-size: 12px;
    font-weight: 700;
}

.gt-machine-date-arrow {
    color: var(--gt-primary);
    font-weight: 800;
}

@media (max-width: 760px) {
    .gt-machine-date-range {
        font-size: 12px;
        margin-bottom: 14px;
    }
}

/* =========================================
   Associate Location Details
   ========================================= */

.gt-associate-detail {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.gt-associate-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

    .gt-associate-header h1 {
        margin: 0;
        color: var(--gt-text);
        font-size: clamp(28px, 3vw, 36px);
        font-weight: 800;
        letter-spacing: -1px;
    }

    .gt-associate-header p {
        margin: 8px 0 0;
        color: var(--gt-muted);
        font-size: 14px;
    }


/* Result count */

.gt-associate-result-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
    color: var(--gt-muted);
    font-size: 12px;
    font-weight: 700;
}


/* =========================================
   Location Grid
   ========================================= */

.gt-associate-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================
   Location Card
   ========================================= */

.gt-associate-location-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    box-shadow: 0 5px 20px rgba(24, 39, 75, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .gt-associate-location-card:hover {
        transform: translateY(-3px);
        border-color: #b7ddd2;
        box-shadow: 0 12px 28px rgba(24, 39, 75, 0.08);
    }


/* =========================================
   Header
   ========================================= */

.gt-associate-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.gt-associate-location-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gt-associate-location-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--gt-primary-light);
    font-size: 18px;
}

.gt-associate-location-title {
    min-width: 0;
}

    .gt-associate-location-title h2 {
        overflow: hidden;
        margin: 0 0 5px;
        color: var(--gt-text);
        font-size: 17px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.gt-associate-location-code {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    color: var(--gt-primary-dark);
    background: var(--gt-primary-light);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}


/* Small edit button */

.gt-associate-edit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--gt-primary-dark);
    background: #ffffff;
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    font-size: 15px;
}

    .gt-associate-edit-icon:hover {
        background: var(--gt-primary-light);
        border-color: #b7ddd2;
    }


/* =========================================
   Address
   ========================================= */

.gt-associate-address {
    min-height: 65px;
    padding-bottom: 17px;
    color: #526174;
    border-bottom: 1px solid #edf0f3;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   Labels
   ========================================= */

.gt-associate-label {
    display: block;
    margin-bottom: 6px;
    color: #96a2b1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}


/* =========================================
   Metrics
   ========================================= */

.gt-associate-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #edf0f3;
}

.gt-associate-metric strong {
    display: block;
    color: var(--gt-text);
    font-size: 15px;
    font-weight: 800;
}


/* =========================================
   Owner / Phone
   ========================================= */

.gt-associate-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 0;
}

    .gt-associate-contact-grid strong {
        display: block;
        overflow: hidden;
        color: var(--gt-text);
        font-size: 13px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* =========================================
   Edit button
   ========================================= */

.gt-associate-edit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 0 16px;
    color: var(--gt-primary-dark);
    background: var(--gt-primary-light);
    border: 0;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

    .gt-associate-edit-button:hover {
        color: #ffffff;
        background: var(--gt-primary);
    }


/* =========================================
   Empty state
   ========================================= */

.gt-associate-empty {
    padding: 70px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #dce5eb;
    border-radius: var(--gt-radius);
}

.gt-associate-empty-icon {
    margin-bottom: 14px;
    font-size: 40px;
}

.gt-associate-empty h2 {
    margin: 0 0 8px;
    color: var(--gt-text);
    font-size: 20px;
    font-weight: 800;
}

.gt-associate-empty p {
    margin: 0 0 20px;
    color: var(--gt-muted);
    font-size: 13px;
}


/* =========================================
   Loading Skeleton
   ========================================= */

.gt-associate-skeleton-card {
    min-height: 310px;
}

.gt-associate-skeleton {
    border-radius: 7px;
    background: linear-gradient( 90deg, #eef2f5 25%, #f8fafb 50%, #eef2f5 75% );
    background-size: 200% 100%;
    animation: gt-associate-loading 1.4s infinite;
}

.gt-associate-skeleton-title {
    width: 60%;
    height: 22px;
    margin-bottom: 22px;
}

.gt-associate-skeleton-line {
    width: 90%;
    height: 12px;
    margin-bottom: 12px;
}

    .gt-associate-skeleton-line.short {
        width: 55%;
    }

.gt-associate-skeleton-block {
    width: 100%;
    height: 100px;
    margin-top: 25px;
}

@keyframes gt-associate-loading {

    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* =========================================
   Tablet
   ========================================= */

@media (max-width: 1200px) {

    .gt-associate-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 760px) {

    .gt-associate-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

        .gt-associate-header .gt-secondary-button {
            width: 100%;
        }

    .gt-associate-result-bar {
        justify-content: flex-start;
    }

    .gt-associate-location-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gt-associate-location-card {
        padding: 18px;
    }
}


/* =========================================
   Small Mobile
   ========================================= */

@media (max-width: 430px) {

    .gt-associate-location-card {
        padding: 16px;
        border-radius: 14px;
    }

    .gt-associate-location-title h2 {
        font-size: 16px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .gt-associate-location-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .gt-associate-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .gt-associate-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gt-associate-edit-button {
        min-height: 46px;
        font-size: 13px;
    }
}