
.tm-ops-overview,
.tm-ops-overview *,
.tm-ops-jobs,
.tm-ops-jobs * {
    box-sizing: border-box;
}

.tm-ops-overview {
    margin: 18px 0;
}

.tm-ops-success {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-left: 4px solid #16a34a;
    border-radius: 9px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 800;
}

.tm-ops-new-alert {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #fde68a;
    border-radius: 13px;
    background: #fffbeb;
    justify-content: space-between;
    align-items: center;
}

.tm-ops-new-alert > div {
    display: flex;
    gap: 11px;
    align-items: center;
}

.tm-ops-new-alert strong,
.tm-ops-new-alert small {
    display: block;
}

.tm-ops-new-alert strong {
    color: #92400e;
}

.tm-ops-new-alert small {
    margin-top: 3px;
    color: #a16207;
}

.tm-ops-new-alert > a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 8px;
    background: #d97706;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.tm-ops-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, .14);
}

.tm-ops-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    gap: 24px;
    min-height: 210px;
    padding: 28px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .13), transparent 26%),
        linear-gradient(135deg, #081521, #1e293b 62%, #081521);
    color: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
    align-items: center;
}

.tm-ops-command-copy p {
    margin: 0 0 7px;
    color: #FF8F26;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.tm-ops-command-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.05;
}

.tm-ops-command-copy > span {
    display: block;
    max-width: 600px;
    margin-top: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.tm-ops-availability {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: rgba(15, 23, 42, .36);
    backdrop-filter: blur(12px);
}

.tm-ops-availability-current {
    display: flex;
    gap: 11px;
    margin-bottom: 13px;
    align-items: center;
}

.tm-ops-availability-current small,
.tm-ops-availability-current strong {
    display: block;
}

.tm-ops-availability-current small {
    color: #94a3b8;
    font-size: 10px;
    text-transform: uppercase;
}

.tm-ops-availability-current strong {
    margin-top: 3px;
    color: #fff;
    font-size: 17px;
}

.tm-ops-status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, .14);
}

.tm-ops-status-available {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .14);
}

.tm-ops-status-busy {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, .14);
}

.tm-ops-status-offline {
    background: #94a3b8;
}

.tm-ops-availability-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.tm-ops-availability-buttons button {
    display: inline-flex;
    gap: 6px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.tm-ops-availability-buttons button i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.tm-ops-availability-buttons button.is-active {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.tm-availability-choice-available i {
    color: #22c55e;
}

.tm-availability-choice-busy i {
    color: #f59e0b;
}

.tm-availability-choice-offline i {
    color: #94a3b8;
}

.tm-ops-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 11px;
}

.tm-ops-metrics article {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .04);
}

.tm-ops-metrics span,
.tm-ops-metrics strong,
.tm-ops-metrics small {
    display: block;
}

.tm-ops-metrics span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tm-ops-metrics strong {
    overflow: hidden;
    margin-top: 6px;
    color: #081521;
    font-size: 25px;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.tm-ops-metrics small {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 10px;
}

.tm-ops-jobs {
    scroll-margin-top: 24px;
}

.tm-ops-jobs-header {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
    justify-content: space-between;
    align-items: flex-start;
}

.tm-ops-jobs-header p {
    margin: 0 0 5px;
    color: #FF7A00;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.tm-ops-jobs-header h2 {
    margin: 0;
}

.tm-ops-jobs-header > div:first-child > span {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.tm-ops-job-count {
    min-width: 94px;
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.tm-ops-job-count strong,
.tm-ops-job-count small {
    display: block;
}

.tm-ops-job-count strong {
    color: #FF7A00;
    font-size: 25px;
}

.tm-ops-job-count small {
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
}

.tm-ops-filterbar {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    justify-content: space-between;
    align-items: center;
}

.tm-ops-filter-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tm-ops-filter-buttons button {
    min-height: 36px;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-weight: 800;
}

.tm-ops-filter-buttons button.is-active {
    background: #081521;
    color: #fff;
}

.tm-ops-filterbar > label {
    display: flex;
    width: min(330px, 100%);
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    align-items: center;
}

.tm-ops-filterbar input {
    width: 100%;
    border: 0;
    box-shadow: none;
    outline: 0;
}

.tm-ops-job-list {
    display: grid;
    gap: 13px;
}

.tm-ops-job {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(15, 23, 42, .05);
}

.tm-ops-job > header {
    display: flex;
    gap: 13px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: #fbfdff;
    justify-content: space-between;
    align-items: center;
}

.tm-ops-job-identity {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tm-ops-job-identity > span {
    display: flex;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: rgba(255,122,0,0.12);
    color: #FF7A00;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.tm-ops-job-new .tm-ops-job-identity > span {
    background: #fff7ed;
    color: #ea580c;
}

.tm-ops-job-completed .tm-ops-job-identity > span {
    background: #ecfdf5;
    color: #16a34a;
}

.tm-ops-job-cancelled .tm-ops-job-identity > span {
    background: #fef2f2;
    color: #FF7A00;
}

.tm-ops-job-identity strong,
.tm-ops-job-identity small {
    display: block;
}

.tm-ops-job-identity strong {
    color: #081521;
    font-size: 16px;
}

.tm-ops-job-identity small {
    margin-top: 3px;
    color: #64748b;
}

.tm-ops-job-status {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,122,0,0.12);
    color: #FF7A00;
    font-size: 10px;
    font-weight: 900;
}

.tm-ops-job-new .tm-ops-job-status {
    background: #fff7ed;
    color: #c2410c;
}

.tm-ops-job-completed .tm-ops-job-status {
    background: #ecfdf5;
    color: #166534;
}

.tm-ops-job-cancelled .tm-ops-job-status {
    background: #fef2f2;
    color: #991b1b;
}

.tm-ops-job-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 16px;
    padding: 16px;
}

.tm-ops-contact-actions,
.tm-ops-quick-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.tm-ops-contact-actions a,
.tm-ops-quick-actions button {
    display: inline-flex;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.tm-ops-job-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.tm-ops-job-details > div {
    padding: 10px;
    border-radius: 9px;
    background: #f8fafc;
}

.tm-ops-job-details > div.is-wide {
    grid-column: 1 / -1;
}

.tm-ops-job-details span,
.tm-ops-job-details strong {
    display: block;
    overflow-wrap: anywhere;
}

.tm-ops-job-details span {
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
}

.tm-ops-job-details strong {
    margin-top: 4px;
    color: #081521;
    font-size: 12px;
}

.tm-ops-customer-message {
    margin-top: 11px;
    padding: 11px;
    border-left: 3px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.tm-ops-customer-message span {
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.tm-ops-customer-message p {
    margin: 5px 0 0;
    color: #334155;
}

.tm-ops-quick-actions {
    margin-top: 12px;
}

.tm-ops-quick-form {
    margin: 0;
}

.tm-ops-quick-actions button.is-primary {
    border-color: #FF7A00;
    background: #FF7A00;
    color: #fff;
}

.tm-ops-quick-actions button.is-success {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.tm-ops-quick-actions button.is-danger {
    border-color: #FF8F26;
    background: #fef2f2;
    color: #b91c1c;
}

.tm-ops-job-manage {
    padding: 13px;
    border-radius: 11px;
    background: #f8fafc;
}

.tm-ops-job-manage form {
    margin: 0;
}

.tm-ops-job-manage label {
    display: block;
    margin-bottom: 10px;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.tm-ops-job-manage input,
.tm-ops-job-manage select,
.tm-ops-job-manage textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.tm-ops-job-manage button {
    width: 100%;
    min-height: 41px;
    border: 0;
    border-radius: 8px;
    background: #081521;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.tm-ops-closed-job strong,
.tm-ops-closed-job span {
    display: block;
}

.tm-ops-closed-job strong {
    color: #081521;
}

.tm-ops-closed-job span {
    margin-top: 5px;
    color: #64748b;
}

.tm-ops-closed-job p {
    padding: 9px;
    border-radius: 8px;
    background: #fff;
    color: #475569;
}

.tm-ops-empty,
.tm-ops-no-results {
    padding: 35px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.tm-ops-empty strong {
    display: block;
    color: #081521;
}

.tm-ops-empty p {
    color: #64748b;
}

@media (max-width: 1150px) {
    .tm-ops-command {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 800px) {
    .tm-ops-filterbar,
    .tm-ops-new-alert,
    .tm-ops-jobs-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tm-ops-filterbar > label {
        width: 100%;
    }

    .tm-ops-job-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .tm-ops-command {
        padding: 20px;
    }

    .tm-ops-availability-buttons,
    .tm-ops-metrics,
    .tm-ops-job-details {
        grid-template-columns: 1fr;
    }

    .tm-ops-job > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tm-ops-filter-buttons {
        width: 100%;
    }

    .tm-ops-filter-buttons button {
        flex: 1 1 calc(50% - 5px);
    }

    .tm-ops-contact-actions a,
    .tm-ops-quick-actions form,
    .tm-ops-quick-actions button {
        width: 100%;
    }
}
