/* Shared Operations shell for pages that use includes/header.php. */
.tt-operations-shell.tt-operations-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0;
    max-width: none;
    min-height: calc(100vh - 72px);
    margin: 0;
    padding: 0;
    background: var(--bg, #f3f4f6);
}

.tt-operations-shell.tt-operations-shell > .tt-sidebar.tt-module-nav {
    position: static;
    width: 240px;
}

.tt-operations-shell.tt-operations-shell > .tt-ops-page {
    min-width: 0;
    padding: 24px;
}

.tt-operations-menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .tt-operations-shell.tt-operations-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .tt-operations-shell.tt-operations-shell > .tt-sidebar.tt-module-nav {
        display: block;
        width: 100%;
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid #d9dde3;
    }

    .tt-module-nav-header {
        margin: 0;
    }

    .tt-module-nav-header h3 {
        display: none;
    }

    .tt-operations-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid #b9c2ce;
        border-radius: 6px;
        background: #fff;
        color: #1f2937;
        font: inherit;
        font-weight: 700;
        text-align: left;
    }

    .tt-operations-menu-toggle:focus-visible {
        outline: 3px solid rgba(13, 110, 253, .28);
        outline-offset: 2px;
    }

    .tt-operations-menu-icon::before {
        content: "\2630";
        font-size: 1.25rem;
        line-height: 1;
    }

    .tt-operations-menu-toggle[aria-expanded="true"] .tt-operations-menu-icon::before {
        content: "\00d7";
        font-size: 1.6rem;
    }

    .tt-module-nav-list {
        display: none;
        padding-top: 8px;
    }

    .tt-module-nav-list.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
    }

    .tt-module-nav-list a {
        min-width: 0;
        min-height: 44px;
        padding: 10px 8px;
        overflow-wrap: anywhere;
    }

    .tt-operations-shell.tt-operations-shell > .tt-ops-page {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .tt-operations-shell.tt-operations-shell > .tt-ops-page {
        padding: 16px 12px 28px;
    }

    .tt-module-nav-list.is-open {
        grid-template-columns: 1fr;
    }
}

.tt-work-order-table .tt-location-heading > th {
    padding: 12px 14px;
    border-color: #aeb8c4;
    background: #dfe6ee;
    color: #17212b;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

@media print {
    .tt-operations-menu-toggle {
        display: none !important;
    }
    .tt-work-order-table thead {
        display: table-header-group;
    }

    .tt-work-order-table .tt-location-heading > th {
        padding: 7px 8px;
        border: 1px solid #000;
        background: #e8e8e8 !important;
        color: #000 !important;
        break-after: avoid;
    }
}
