/* ============================================================
   MASTER MANAGEMENT
   ============================================================ */

.gtr-master-page,
.gtr-master-page * {
    box-sizing: border-box;
}


.gtr-master-page {
    width: 100%;
    min-height: 100%;

    background: #0d0f16;

    color: #f8fafc;
}


.gtr-master-container {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    padding: 26px 28px 120px;
}


/* ============================================================
   HEADING
   ============================================================ */

.gtr-master-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
}


.gtr-master-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #7d899d;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;
}


.gtr-master-heading h1 {
    margin: 0;

    color: #fff;

    font-size: 27px;
    line-height: 34px;

    font-weight: 750;
}


.gtr-master-heading p {
    margin: 5px 0 0;

    color: #8994a6;

    font-size: 12px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.gtr-master-primary-btn,
.gtr-master-secondary-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 16px;

    border-radius: 9px;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .15s ease;
}


.gtr-master-primary-btn {
    background: #e51a24;

    border: 1px solid #ef343d;

    color: #fff;

    box-shadow:
        0 5px 15px rgba(229, 26, 36, .20);
}


.gtr-master-primary-btn:hover {
    background: #f02731;
}


.gtr-master-primary-btn svg {
    width: 17px;
    height: 17px;
}


.gtr-master-primary-btn:disabled {
    opacity: .55;

    cursor: not-allowed;
}


.gtr-master-secondary-btn {
    background: #1a1e28;

    border: 1px solid #2b3343;

    color: #abb5c4;
}


/* ============================================================
   STATS
   ============================================================ */

.gtr-master-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 18px;
}


.gtr-master-stat {
    min-height: 95px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 17px;

    background: #151820;

    border: 1px solid #222936;

    border-radius: 13px;
}


.gtr-master-stat-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #202530;

    border-radius: 9px;
}


.gtr-master-stat-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    background: #778296;

    border-radius: 50%;
}


.gtr-master-stat.active .gtr-master-stat-dot {
    background: #38d996;

    box-shadow:
        0 0 9px rgba(56, 217, 150, .5);
}


.gtr-master-stat.inactive .gtr-master-stat-dot {
    background: #e51a24;
}


.gtr-master-stat span {
    display: block;

    color: #778296;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;
}


.gtr-master-stat strong {
    display: block;

    margin-top: 4px;

    color: #fff;

    font-size: 25px;
    line-height: 27px;
}


/* ============================================================
   ALERT
   ============================================================ */

.gtr-master-alert {
    margin-bottom: 12px;

    padding: 11px 14px;

    border-radius: 8px;

    font-size: 11px;
}


.gtr-master-alert.error {
    background: rgba(229, 26, 36, .08);

    border: 1px solid rgba(229, 26, 36, .25);

    color: #ff7077;
}


.gtr-master-alert.success {
    background: rgba(56, 217, 150, .08);

    border: 1px solid rgba(56, 217, 150, .20);

    color: #50dfa5;
}


/* ============================================================
   FORM PANEL
   ============================================================ */

.gtr-master-form-panel {
    margin-bottom: 18px;

    overflow: hidden;

    background: #151820;

    border: 1px solid #222936;

    border-radius: 13px;
}


.gtr-master-form-header {
    width: 100%;
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 16px;

    background: transparent;

    border: 0;

    color: #fff;

    text-align: left;

    cursor: pointer;
}


.gtr-master-form-header:hover {
    background: #191d26;
}


.gtr-master-form-header-left {
    display: flex;
    align-items: center;

    gap: 11px;
}


.gtr-master-form-add-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(229, 26, 36, .10);

    border-radius: 9px;

    color: #e51a24;

    font-size: 22px;
}


.gtr-master-form-header strong {
    display: block;

    font-size: 12px;
}


.gtr-master-form-header span {
    display: block;

    margin-top: 2px;

    color: #7f8a9d;

    font-size: 10px;
}


.gtr-master-chevron {
    width: 18px;
    height: 18px;

    color: #69758a;

    transition: transform .2s ease;
}


.gtr-master-chevron.open {
    transform: rotate(180deg);
}


/* ============================================================
   FORM
   ============================================================ */

.gtr-master-form {
    padding: 20px;

    border-top: 1px solid #222936;
}


.gtr-master-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.gtr-master-field.full,
.gtr-master-status-row.full {
    grid-column: 1 / -1;
}


.gtr-master-field label {
    display: block;

    margin-bottom: 6px;

    color: #9aa4b4;

    font-size: 10px;

    font-weight: 700;
}


.gtr-master-field label span {
    display: inline;

    color: #e51a24;
}


.gtr-master-field input,
.gtr-master-field textarea {
    width: 100%;

    padding: 10px 12px;

    background: #20242e;

    border: 1px solid #2a3140;

    border-radius: 8px;

    outline: none;

    color: #fff;

    font-size: 12px;

    transition: border-color .15s ease;
}


.gtr-master-field input {
    height: 42px;
}


.gtr-master-field textarea {
    resize: vertical;
}


.gtr-master-field input:focus,
.gtr-master-field textarea:focus {
    border-color: #515c70;
}


.gtr-master-validation {
    display: block;

    margin-top: 5px;

    color: #ef5961;

    font-size: 9px;
}


/* ============================================================
   STATUS
   ============================================================ */

.gtr-master-status-row {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 11px 13px;

    background: #1a1e27;

    border-radius: 9px;
}


.gtr-master-status-row strong {
    display: block;

    color: #e7ebf2;

    font-size: 11px;
}


.gtr-master-status-row span {
    display: block;

    margin-top: 2px;

    color: #778296;

    font-size: 9px;
}


/* ============================================================
   SWITCH
   ============================================================ */

.gtr-master-switch {
    width: 43px;
    height: 24px;

    flex: 0 0 43px;

    position: relative;

    padding: 2px;

    background: #343b49;

    border: 0;

    border-radius: 15px;

    cursor: pointer;

    transition: background .2s ease;
}


.gtr-master-switch span {
    width: 20px;
    height: 20px;

    display: block;

    margin: 0;

    background: #8994a6;

    border-radius: 50%;

    transition:
        transform .2s ease,
        background .2s ease;
}


.gtr-master-switch.active {
    background: #155f47;
}


.gtr-master-switch.active span {
    transform: translateX(19px);

    background: #4edea3;
}


.gtr-master-switch:disabled {
    opacity: .45;
}


/* ============================================================
   FORM ACTIONS
   ============================================================ */

.gtr-master-form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 9px;

    margin-top: 18px;
}


/* ============================================================
   TOOLBAR
   ============================================================ */

.gtr-master-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin: 22px 0 14px;
}


.gtr-master-filters {
    display: flex;

    gap: 7px;
}


.gtr-master-filters button {
    min-height: 32px;

    padding: 0 12px;

    background: #191d26;

    border: 1px solid #252c39;

    border-radius: 17px;

    color: #8490a3;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}


.gtr-master-filters button span {
    margin-left: 4px;

    opacity: .7;
}


.gtr-master-filters button.active {
    background: #e51a24;

    border-color: #e51a24;

    color: #fff;
}


/* ============================================================
   SEARCH
   ============================================================ */

.gtr-master-search {
    width: 280px;
    height: 38px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 11px;

    background: #181c25;

    border: 1px solid #252d3b;

    border-radius: 9px;
}


.gtr-master-search svg {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    color: #68758a;
}


.gtr-master-search input {
    width: 100%;

    background: transparent;

    border: 0;

    outline: 0;

    color: #fff;

    font-size: 11px;
}


/* ============================================================
   CARD GRID
   ============================================================ */

.gtr-master-card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;
}


.gtr-master-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 15px;

    background: #151820;

    border: 1px solid #222936;

    border-radius: 12px;

    transition:
        background .15s ease,
        border-color .15s ease;
}


.gtr-master-card:hover {
    background: #191d26;

    border-color: #30394a;
}


.gtr-master-card.inactive {
    opacity: .76;
}


.gtr-master-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.gtr-master-card-badges {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 7px;
}


.gtr-master-code {
    max-width: 150px;

    overflow: hidden;

    padding: 4px 7px;

    background: #232833;

    border-radius: 5px;

    color: #d9dee7;

    font-family: monospace;

    font-size: 9px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.gtr-master-status {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 3px 7px;

    border-radius: 10px;

    font-size: 8px;

    font-weight: 800;
}


.gtr-master-status i {
    width: 5px;
    height: 5px;

    border-radius: 50%;
}


.gtr-master-status.active {
    background: rgba(56, 217, 150, .08);

    color: #4edea3;
}


.gtr-master-status.active i {
    background: #4edea3;
}


.gtr-master-status.inactive {
    background: rgba(229, 26, 36, .08);

    color: #ef5961;
}


.gtr-master-status.inactive i {
    background: #e51a24;
}


.gtr-master-card-body {
    flex: 1;

    padding: 15px 0;
}


.gtr-master-card-body h3 {
    margin: 0;

    color: #f4f6f9;

    font-size: 13px;

    font-weight: 700;
}


.gtr-master-card-body p {
    margin: 5px 0 0;

    color: #7f8a9c;

    font-size: 10px;
    line-height: 16px;
}


.gtr-master-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 10px;

    border-top: 1px solid #222936;

    color: #5f6c80;

    font-size: 9px;
}


.gtr-master-card-footer button {
    padding: 5px 9px;

    background: #202530;

    border: 1px solid #2a3240;

    border-radius: 6px;

    color: #b6c0cf;

    font-size: 9px;

    cursor: pointer;
}


/* ============================================================
   EMPTY / LOADING
   ============================================================ */

.gtr-master-empty,
.gtr-master-loading {
    padding: 50px 20px;

    color: #788498;

    text-align: center;

    font-size: 11px;
}


.gtr-master-empty strong,
.gtr-master-empty span {
    display: block;
}


.gtr-master-empty strong {
    margin-bottom: 4px;

    color: #cbd2dc;

    font-size: 13px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media screen and (max-width: 991px) {

    .gtr-master-container {
        padding:
            20px
            18px
            110px;
    }


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

}


/* ============================================================
   MOBILE
   ============================================================ */

@media screen and (max-width: 600px) {

    .gtr-master-container {
        padding:
            15px
            12px
            100px;
    }


    .gtr-master-heading {
        align-items: center;

        margin-bottom: 15px;
    }


    .gtr-master-heading h1 {
        font-size: 20px;
        line-height: 25px;
    }


    .gtr-master-heading p {
        display: none;
    }


    .gtr-master-heading > .gtr-master-primary-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;

        padding: 0;

        border-radius: 50%;
    }


    .gtr-master-heading >
    .gtr-master-primary-btn span {
        display: none;
    }


    .gtr-master-stats {
        gap: 7px;
    }


    .gtr-master-stat {
        min-height: 78px;

        padding: 11px;

        gap: 8px;
    }


    .gtr-master-stat-icon {
        display: none;
    }


    .gtr-master-stat strong {
        font-size: 20px;
    }


    .gtr-master-form {
        padding: 14px;
    }


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


    .gtr-master-field.full,
    .gtr-master-status-row.full {
        grid-column: auto;
    }


    .gtr-master-toolbar {
        flex-direction: column;

        align-items: stretch;
    }


    .gtr-master-filters {
        width: 100%;

        overflow-x: auto;

        padding-bottom: 2px;
    }


    .gtr-master-filters button {
        flex: 0 0 auto;
    }


    .gtr-master-search {
        width: 100%;
    }


    .gtr-master-card-grid {
        grid-template-columns: 1fr;
    }


    .gtr-master-form-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

}

/* ============================================================
   PICKUP LOCATION COORDINATES
   ============================================================ */

.gtr-location-meta {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 11px;
    padding: 8px 10px;

    background: #11141a;

    border-radius: 7px;

    color: #778397;

    font-size: 9px;
}


.gtr-location-meta svg {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    color: #7199dc;
}