/**
 * AJT MSP Hub — Portal Styles
 *
 * Loaded on pages with [ajt_customer_portal] shortcode.
 * Theme: Pewter Plum — muted plum-tinged greys
 *
 * @package AJT_MSP_Hub
 * @since   1.0.0
 */

/* ── Tables ───────────────────────────────────────────────── */

.ajt-msphub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ajt-msphub-table thead th {
    text-align: left;
    padding: 10px 12px;
    background: var(--msphub-neutral-bg-alt, #E9E7EC);
    border-bottom: 2px solid var(--msphub-neutral-border, #DBD8DE);
    font-size: 12px;
    color: var(--msphub-neutral-mid-light, #716B7E);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ajt-msphub-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--msphub-neutral-border-soft, #E0DCE4);
}

.ajt-msphub-table tbody tr:hover {
    background: var(--msphub-neutral-bg-light, #F0EEF2);
}

/* ── Buttons ──────────────────────────────────────────────── */

.ajt-msphub-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    border-radius: 6px;
    background: var(--msphub-neutral-bg-surface, #F5F4F6);
    color: var(--msphub-dark, #4A3E55);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.ajt-msphub-btn:hover {
    background: var(--msphub-neutral-border-soft, #E0DCE4);
    border-color: var(--msphub-neutral-border, #CCC8D0);
}

.ajt-msphub-btn-primary {
    background: var(--msphub-primary, #7B4C75);
    color: #fff;
    border-color: var(--msphub-primary, #7B4C75);
}

.ajt-msphub-btn-primary:hover {
    background: var(--msphub-primary-hover, #6A3F64);
    border-color: var(--msphub-primary-hover, #6A3F64);
}

/* ── Cards ────────────────────────────────────────────────── */

.ajt-msphub-card {
    background: var(--msphub-neutral-bg-light, #F0EEF2);
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

/* ── Status badges ────────────────────────────────────────── */

.ajt-msphub-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--msphub-neutral-bg-alt, #E9E7EC);
    color: var(--msphub-neutral-mid-light, #716B7E);
}

/* ── Progress bar ─────────────────────────────────────────── */

.ajt-msphub-progress-bar {
    height: 6px;
    background: var(--msphub-neutral-border, #DBD8DE);
    border-radius: 3px;
    overflow: hidden;
}

.ajt-msphub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--msphub-primary, #7B4C75), var(--msphub-gradient-end, #6B5A7A));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Project grid ─────────────────────────────────────────── */

.ajt-msphub-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* ── Notes timeline ───────────────────────────────────────── */

.ajt-msphub-notes-timeline {
    border-left: 2px solid var(--msphub-neutral-border, #DBD8DE);
    padding-left: 16px;
    margin-left: 8px;
}

.ajt-msphub-note {
    margin-bottom: 14px;
    position: relative;
}

.ajt-msphub-note::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--msphub-primary, #7B4C75);
    border: 2px solid var(--msphub-neutral-bg-surface, #F5F4F6);
}

.ajt-msphub-note-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Empty states ─────────────────────────────────────────── */

.ajt-msphub-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--msphub-neutral-muted, #9B95A6);
    font-size: 14px;
}

.ajt-msphub-error {
    color: #dc2626;
    font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 600px) {
    .ajt-msphub-table thead {
        display: none;
    }
    .ajt-msphub-table tbody td {
        display: block;
        padding: 6px 12px;
        text-align: right;
    }
    .ajt-msphub-table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--msphub-neutral-mid-light, #716B7E);
    }
    .ajt-msphub-project-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Services: Page Header ────────────────────────────────── */

.ajt-msphub-svc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.ajt-msphub-svc-page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--msphub-neutral-very-dark, #2D2836);
    margin: 0;
    letter-spacing: -0.2px;
}
.ajt-msphub-svc-page-count {
    color: var(--msphub-neutral-muted, #9B95A6);
    font-weight: 400;
    font-size: 13px;
    margin-left: 6px;
}
.ajt-msphub-svc-pills {
    display: flex;
    gap: 6px;
}
.ajt-msphub-svc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--msphub-neutral-bg-surface, #F5F4F6);
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    border-radius: 18px;
    font-size: 12px;
    color: var(--msphub-neutral-mid, #5A5468);
}
.ajt-msphub-svc-pill strong {
    color: var(--msphub-primary, #7B4C75);
    font-weight: 700;
}

/* ── Services: Category Sections ─────────────────────────── */

.ajt-msphub-svc-category {
    margin-bottom: 24px;
}
.ajt-msphub-svc-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--msphub-neutral-border-soft, #E0DCE4);
}
.ajt-msphub-svc-cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: var(--msphub-primary-light, rgba(123, 76, 117, 0.08));
    color: var(--msphub-primary, #7B4C75);
}
.ajt-msphub-svc-cat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--msphub-neutral-very-dark, #2D2836);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ajt-msphub-svc-cat-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--msphub-neutral-muted, #9B95A6);
    background: var(--msphub-neutral-bg-alt, #E9E7EC);
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: auto;
}

.ajt-msphub-svc-cat-total {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
}

.ajt-msphub-svc-cat-cost {
    font-size: 12px;
    font-weight: 600;
    color: var(--msphub-neutral-very-dark, #2D2836);
    background: rgba(245, 244, 246, 0.65);
    padding: 2px 10px;
    border-radius: 4px;
}

/* Category accent colours */
.cat-m365 .ajt-msphub-svc-cat-icon { background: #fff0e6; color: #d83b01; }
.cat-m365 .ajt-msphub-svc-cat-header { border-bottom-color: rgba(216, 59, 1, 0.12); }

.cat-security .ajt-msphub-svc-cat-icon { background: #e8f5e9; color: #2e7d32; }
.cat-security .ajt-msphub-svc-cat-header { border-bottom-color: rgba(46, 125, 50, 0.12); }

.cat-support .ajt-msphub-svc-cat-icon { background: #e6f4f7; color: #007991; }
.cat-support .ajt-msphub-svc-cat-header { border-bottom-color: rgba(0, 121, 145, 0.12); }

.cat-web .ajt-msphub-svc-cat-icon { background: #ede7f6; color: #5e35b1; }
.cat-web .ajt-msphub-svc-cat-header { border-bottom-color: rgba(94, 53, 177, 0.12); }

.cat-applications .ajt-msphub-svc-cat-icon { background: #fff3e0; color: #ef6c00; }
.cat-applications .ajt-msphub-svc-cat-header { border-bottom-color: rgba(239, 108, 0, 0.12); }

.ajt-svc-cat-other .ajt-msphub-svc-cat-icon { background: var(--msphub-neutral-bg-alt, #E9E7EC); color: var(--msphub-neutral-muted, #9B95A6); }

/* ── Services: Row Layout ────────────────────────────────── */

.ajt-msphub-svc-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ajt-msphub-svc-row {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 12px;
    padding: 12px 14px;
    background: var(--msphub-neutral-bg-surface, #F5F4F6);
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    border-radius: 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.ajt-msphub-svc-row:hover {
    box-shadow: 0 1px 4px rgba(74, 62, 85, 0.05), 0 4px 16px rgba(74, 62, 85, 0.04);
    border-color: var(--msphub-primary-light, rgba(123, 76, 117, 0.2));
}

/* Icon */
.ajt-msphub-svc-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--msphub-primary-light, rgba(123, 76, 117, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    line-height: 1;
}

/* Info */
.ajt-msphub-svc-info {
    min-width: 0;
}
.ajt-msphub-svc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--msphub-neutral-very-dark, #2D2836);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ajt-msphub-svc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
}
.ajt-msphub-svc-price {
    font-size: 11px;
    color: var(--msphub-neutral-muted, #9B95A6);
}
.ajt-msphub-svc-multi {
    font-size: 10px;
    color: var(--msphub-neutral-muted, #9B95A6);
    background: var(--msphub-neutral-bg-alt, #E9E7EC);
    padding: 1px 6px;
    border-radius: 3px;
}

/* Period badges */
.ajt-msphub-svc-period {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 3px;
    letter-spacing: 0.2px;
}
.ajt-msphub-svc-period--monthly {
    background: #e6f4f7;
    color: #007991;
}
.ajt-msphub-svc-period--annual {
    background: #ede7f6;
    color: #7c3aed;
}
.ajt-msphub-svc-period--commitment {
    background: #FFEBEE;
    color: #dc2626;
}

/* Quantity */
.ajt-msphub-svc-qty {
    text-align: right;
    padding-right: 2px;
    min-width: 48px;
}
.ajt-msphub-svc-qty-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--msphub-primary, #7B4C75);
    line-height: 1;
    letter-spacing: -0.5px;
}
.ajt-msphub-svc-qty-label {
    display: block;
    font-size: 9px;
    color: var(--msphub-neutral-muted, #9B95A6);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-top: 2px;
}

/* ── Services: Edit Controls ─────────────────────────────── */

.ajt-msphub-svc-edit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--msphub-neutral-border-soft, #E0DCE4);
}
.ajt-msphub-svc-edit-select {
    flex: 1 1 auto;
    min-width: 0;
    padding: 5px 8px;
    font-size: 11px;
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    border-radius: 5px;
    font-family: inherit;
    color: var(--msphub-neutral-mid, #5A5468);
    background: var(--msphub-neutral-bg-surface, #F5F4F6);
}
/* Hidden contract selectors must not participate in flex layout. */
input[type="hidden"].ajt-msphub-svc-contract-select {
    display: none;
}
.ajt-msphub-svc-edit-btn {
    flex: 0 0 30px;
    width: 30px !important;
    max-width: 30px;
    height: 30px;
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    border-radius: 6px;
    background: var(--msphub-neutral-bg-surface, #F5F4F6);
    color: var(--msphub-neutral-mid, #5A5468);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}
.ajt-msphub-svc-edit-btn:hover {
    background: var(--msphub-primary, #7B4C75);
    color: #fff;
    border-color: var(--msphub-primary, #7B4C75);
}
.ajt-msphub-svc-edit-input {
    width: 52px !important;
    max-width: 52px;
    flex: 0 0 52px;
    text-align: center;
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    border-radius: 6px;
    padding: 5px 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--msphub-neutral-very-dark, #2D2836);
    font-family: inherit;
    box-sizing: border-box;
}
.ajt-msphub-svc-edit-input:focus {
    outline: none;
    border-color: var(--msphub-primary, #7B4C75);
    box-shadow: 0 0 0 3px var(--msphub-primary-light, rgba(123, 76, 117, 0.1));
}
/* Remove native number spinners */
.ajt-msphub-svc-edit-input::-webkit-inner-spin-button,
.ajt-msphub-svc-edit-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ajt-msphub-svc-edit-input[type=number] {
    -moz-appearance: textfield;
}
.ajt-msphub-svc-edit-submit {
    padding: 6px 14px;
    background: var(--msphub-primary, #7B4C75);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
}
.ajt-msphub-svc-edit-submit:hover {
    background: var(--msphub-primary-hover, #6A3F64);
}
.ajt-msphub-svc-msg {
    font-size: 11px;
    width: 100%;
    margin-top: 4px;
}

/* ── Services: Approval Notice ───────────────────────────── */

.ajt-msphub-svc-approval-notice {
    text-align: center;
    font-size: 12px;
    color: var(--msphub-neutral-muted, #9B95A6);
    margin-top: 20px;
    padding: 8px;
}
.ajt-msphub-svc-approval-notice svg {
    vertical-align: -2px;
    margin-right: 3px;
    opacity: 0.5;
}

/* ── Services: Responsive ────────────────────────────────── */

@media (max-width: 640px) {
    .ajt-msphub-svc-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ajt-msphub-svc-row {
        grid-template-columns: 32px 1fr auto;
        gap: 3px 8px;
        padding: 10px;
    }
    .ajt-msphub-svc-icon { width: 30px; height: 30px; font-size: 15px; }
    .ajt-msphub-svc-name { font-size: 12px; }
    .ajt-msphub-svc-qty-number { font-size: 17px; }
    .ajt-msphub-svc-edit { gap: 4px; }
    .ajt-msphub-svc-edit-btn { width: 28px !important; max-width: 28px; flex: 0 0 28px; height: 28px; }
    .ajt-msphub-svc-edit-input { width: 46px !important; max-width: 46px; flex: 0 0 46px; font-size: 12px; }
}

/* ── Services table v2 — Icon, Stepper, Controls ─────── */

.ajt-msphub-svc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3f0f5, #ebe7ee);
    color: var(--msphub-primary, #7B4C75);
    flex-shrink: 0;
}

.ajt-msphub-svc-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    background: #f1f0f3;
    color: #333;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
}

.ajt-msphub-svc-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
    min-width: 180px;
}

.ajt-msphub-svc-select {
    font-size: 10px;
    padding: 3px 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 100px;
    font-family: inherit;
    background: #fff;
}

/* — Stepper (joined minus/value/plus) ────────────────── */

.ajt-msphub-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d1d0d4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 32px;
    min-width: 102px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: border-color .15s, box-shadow .15s;
}
.ajt-msphub-stepper:focus-within {
    border-color: var(--msphub-primary, #7B4C75);
    box-shadow: 0 0 0 3px rgba(123,76,117,.1);
}

.ajt-msphub-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    flex-shrink: 0;
    border: none;
    background: #f7f6f8;
    color: #666;
    cursor: pointer;
    transition: background .12s, color .12s;
    padding: 0;
    font-size: 0;
    line-height: 1;
}
.ajt-msphub-stepper-btn:hover {
    background: #ebe8ee;
    color: var(--msphub-primary, #7B4C75);
}
.ajt-msphub-stepper-btn:active {
    background: #ddd9e0;
}

.ajt-msphub-stepper-val {
    width: 38px !important;
    border: none !important;
    border-left: 1px solid #e4e3e6 !important;
    border-right: 1px solid #e4e3e6 !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600;
    font-family: inherit;
    color: #333;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none;
    height: 30px !important;
    min-height: 0 !important;
    line-height: 30px !important;
    vertical-align: middle;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    -webkit-appearance: none;
}
input.ajt-msphub-stepper-val {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.ajt-msphub-stepper-val::-webkit-inner-spin-button,
.ajt-msphub-stepper-val::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* — Request / Apply button ───────────────────────────── */

.ajt-msphub-svc-commit {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #7c6e1b;
    background: #fef9e7;
    border: 1px solid #f5e6a3;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.5;
    letter-spacing: .2px;
    white-space: nowrap;
}

.ajt-msphub-svc-renewal {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #1a6b47;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.5;
    letter-spacing: .2px;
    white-space: nowrap;
    margin-left: 2px;
}

.ajt-msphub-svc-contracts-note {
    font-size: 10px;
    color: #999;
    margin-left: 2px;
}

.ajt-msphub-svc-request-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    background: var(--msphub-primary, #7B4C75);
    color: #fff;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 1px 3px rgba(123,76,117,.2);
}
.ajt-msphub-svc-request-btn:hover {
    background: var(--msphub-primary-dark, #654060);
    box-shadow: 0 2px 6px rgba(123,76,117,.3);
    transform: translateY(-1px);
}
.ajt-msphub-svc-request-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(123,76,117,.2);
}

/* — Responsive: stack controls on small screens ──────── */
@media (max-width: 640px) {
    .ajt-msphub-svc-controls {
        flex-wrap: wrap;
        gap: 4px;
    }
    .ajt-msphub-stepper {
        height: 30px;
    }
    .ajt-msphub-stepper-btn {
        width: 28px;
    }
    .ajt-msphub-stepper-val {
        width: 28px !important;
        font-size: 12px !important;
        line-height: 28px !important;
    }
    .ajt-msphub-svc-request-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .ajt-msphub-svc-icon {
        width: 28px;
        height: 28px;
    }
}

/* ── Ticket filter tabs ──────────────────────────────── */

.ajt-msphub-ticket-filter {
    border: 1px solid var(--msphub-neutral-border, #DBD8DE);
    background: var(--msphub-neutral-bg-surface, #F5F4F6);
    color: var(--msphub-neutral-mid, #5A5468);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.ajt-msphub-ticket-filter:hover {
    background: var(--msphub-neutral-bg-alt, #E9E7EC);
}
.ajt-msphub-ticket-filter.active {
    background: var(--msphub-primary, #7B4C75);
    color: #fff;
    border-color: var(--msphub-primary, #7B4C75);
}

/* ── Ticket cards ────────────────────────────────── */

/* ── Invoice-style panel (shared by tickets, quotes) ── */
/* Visual styling deferred to ajt-stripe-pro portal.css; only alignment overrides here */
.ajt-inv-tbl tr:last-child td{border-bottom:none;}
.ajt-inv-tbl .inv-desc{display:flex;flex-wrap:wrap;gap:3px;align-items:center;}

@media(max-width:600px){
    .ajt-inv-tbl .inv-desc{max-width:none;}
}

/* ═══════════════════════════════════════════════
 * White-Label Typography Overrides
 * ═══════════════════════════════════════════════ */

.ajt-msphub-portal h1,
.ajt-msp-login h1         { font-size: var(--msphub-font-h1, revert); }

.ajt-msphub-portal h2,
.ajt-msp-login-title,
.ajt-cm-title              { font-size: var(--msphub-font-h2, revert); }

.ajt-msphub-portal h3,
.ajt-msphub-svc-page-title { font-size: var(--msphub-font-h3, revert); }

.ajt-msphub-portal,
.ajt-msphub-portal p,
.ajt-msphub-portal td,
.ajt-msphub-portal li,
.ajt-msp-login,
.ajt-cm {
    font-size: var(--msphub-font-body, revert);
    font-family: var(--msphub-font-family, inherit);
}


/* ═══════════════════════════════════════════════════════════════════════════
   v1.13.0+ Additions — Enhanced ticket form, note types, file uploads,
   ticket detail panel, priority controls, pagination, quote actions.
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-btn-small {
	padding: 6px 12px;
	font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Form Styles
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-field {
	margin-bottom: 16px;
}

.ajt-msphub-field label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--ajt-text);
	letter-spacing: 0.3px;
}

.ajt-msphub-field input[type="text"],
.ajt-msphub-field input[type="tel"],
.ajt-msphub-field input[type="email"],
.ajt-msphub-field textarea,
.ajt-msphub-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ajt-border);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: var(--ajt-text);
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.ajt-msphub-field input::placeholder,
.ajt-msphub-field textarea::placeholder {
	color: var(--ajt-text-muted);
}

.ajt-msphub-field input:focus,
.ajt-msphub-field textarea:focus,
.ajt-msphub-field select:focus {
	outline: none;
	border-color: var(--ajt-primary);
	box-shadow: 0 0 0 3px var(--ajt-primary-light);
}

.ajt-msphub-field textarea {
	resize: vertical;
	min-height: 120px;
}

.ajt-msphub-field select {
	padding: 10px 12px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M1.5 4.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 32px;
	appearance: none;
}

.ajt-msphub-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 16px;
}

.ajt-msphub-form-row .ajt-msphub-field {
	margin-bottom: 0;
}

.ajt-msphub-field-half {
	/* Flex child in form-row */
}

.ajt-msphub-form-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--ajt-border);
}

.ajt-msphub-optional {
	color: var(--ajt-text-muted);
	font-size: 12px;
	font-weight: 400;
	margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Priority Segmented Control
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-priority-control {
	display: flex;
	border: 1px solid var(--ajt-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.ajt-msphub-priority-option {
	flex: 1;
	text-align: center;
	padding: 10px 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	border-right: 1px solid var(--ajt-border);
	background: #fff;
	color: var(--ajt-text);
	transition: all 0.15s ease;
	user-select: none;
}

.ajt-msphub-priority-option:last-child {
	border-right: none;
}

.ajt-msphub-priority-option input {
	display: none;
}

.ajt-msphub-priority-option:hover {
	background: var(--ajt-bg-light);
}

.ajt-msphub-priority-option-active {
	background: var(--ajt-primary) !important;
	color: #fff !important;
	font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Impact Radio Group
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-impact-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ajt-msphub-impact-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 400;
	margin: 0;
	padding: 0;
}

.ajt-msphub-impact-group input[type="radio"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: var(--ajt-primary);
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   File Upload
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-file-upload {
	margin-bottom: 8px;
}

.ajt-msphub-file-upload input[type="file"] {
	display: block;
	padding: 10px 12px;
	border: 1px dashed var(--ajt-border);
	border-radius: 6px;
	width: 100%;
	cursor: pointer;
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.ajt-msphub-file-upload input[type="file"]:hover {
	border-color: var(--ajt-primary);
	background: var(--ajt-primary-light);
}

.ajt-msphub-file-upload input[type="file"]:focus {
	outline: none;
	border-color: var(--ajt-primary);
	box-shadow: 0 0 0 3px var(--ajt-primary-light);
}

.ajt-msphub-file-hint {
	display: block;
	font-size: 12px;
	color: var(--ajt-text-muted);
	margin-top: 6px;
	line-height: 1.4;
}

.ajt-msphub-file-previews {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.ajt-msphub-file-thumb {
	position: relative;
	display: inline-block;
}

.ajt-msphub-file-thumb img {
	width: 80px;
	height: 80px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid var(--ajt-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.15s ease;
}

.ajt-msphub-file-thumb img:hover {
	transform: scale(1.05);
}

.ajt-msphub-file-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ajt-danger);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	transition: all 0.15s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ajt-msphub-file-remove:hover {
	background: #c2222a;
	transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Messages & Alerts
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-msg-success,
.ajt-msphub-msg-error,
.ajt-msphub-msg-info {
	display: none;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 16px;
	word-break: break-word;
}

.ajt-msphub-msg-success {
	background: #d1fae5;
	color: #065f46;
	border-left: 4px solid var(--ajt-success);
}

.ajt-msphub-msg-error {
	background: #fee2e2;
	color: #7f1d1d;
	border-left: 4px solid var(--ajt-danger);
}

.ajt-msphub-msg-info {
	background: #dbeafe;
	color: #1e40af;
	border-left: 4px solid var(--ajt-info);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Ticket List & Table
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-ticket-list {
	width: 100%;
	border-collapse: collapse;
}

.ajt-msphub-ticket-list thead {
	background: var(--ajt-bg-light);
	border-bottom: 2px solid var(--ajt-border);
}

.ajt-msphub-ticket-list thead th {
	padding: 12px 16px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	color: var(--ajt-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ajt-msphub-ticket-list tbody tr {
	border-bottom: 1px solid var(--ajt-border-light);
	transition: background-color 0.15s ease;
}

.ajt-msphub-ticket-list tbody tr:hover {
	background: var(--ajt-bg-light);
}

.ajt-msphub-ticket-list td {
	padding: 12px 16px;
	vertical-align: middle;
	font-size: 13px;
}

.ajt-msphub-ticket-link {
	color: var(--ajt-primary);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
	cursor: pointer;
}

.ajt-msphub-ticket-link:hover {
	color: var(--ajt-primary-dark);
	text-decoration: underline;
}

.ajt-msphub-ticket-contact {
	font-size: 12px;
	color: var(--ajt-text-secondary);
	margin-top: 2px;
}

.ajt-msphub-ticket-queue {
	font-size: 12px;
	color: var(--ajt-text-muted);
}

.ajt-msphub-priority-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.ajt-msphub-priority-1,
.ajt-msphub-priority-2 {
	background: var(--ajt-danger);
}

.ajt-msphub-priority-3 {
	background: var(--ajt-warning);
}

.ajt-msphub-priority-4 {
	background: var(--ajt-success);
}

.ajt-msphub-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}

.ajt-msphub-status-open {
	background: var(--ajt-info);
}

.ajt-msphub-status-closed {
	background: var(--ajt-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Ticket Filter Tabs
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-ticket-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--ajt-border);
	padding-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Ticket Detail View
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-ticket-detail-panel {
	display: none;
	position: fixed;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	max-width: 600px;
	background: #fff;
	border-left: 1px solid var(--ajt-border);
	box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
	z-index: 100;
}

.ajt-msphub-ticket-detail-panel.show {
	display: flex;
	flex-direction: column;
}

.ajt-msphub-detail-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--ajt-border);
	background: var(--ajt-bg-light);
	flex-shrink: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.ajt-msphub-detail-header h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--ajt-text);
}

.ajt-msphub-detail-number {
	font-size: 12px;
	color: var(--ajt-text-secondary);
}

.ajt-msphub-close-detail {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: var(--ajt-text-secondary);
	transition: color 0.15s ease;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ajt-msphub-close-detail:hover {
	color: var(--ajt-text);
}

.ajt-msphub-detail-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Metadata Grid
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px 20px;
	padding: 16px;
	background: var(--ajt-bg-light);
	border-radius: 6px;
	margin-bottom: 20px;
}

.ajt-msphub-meta-item {
	flex: 1;
	min-width: 120px;
}

.ajt-msphub-meta-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ajt-text-secondary);
	margin-bottom: 4px;
	font-weight: 600;
}

.ajt-msphub-meta-value {
	font-size: 14px;
	color: var(--ajt-text);
	font-weight: 500;
	word-break: break-word;
}

.ajt-msphub-meta-value a {
	color: var(--ajt-primary);
	text-decoration: none;
}

.ajt-msphub-meta-value a:hover {
	text-decoration: underline;
}

.ajt-msphub-note--customer {
	background: rgba(59, 130, 246, 0.05);
	border-left: 4px solid var(--ajt-info);
}

.ajt-msphub-note--staff {
	background: var(--ajt-bg-light);
	border-left: 4px solid var(--ajt-primary);
}

.ajt-msphub-note--internal {
	background: #fef3c7;
	border-left: 4px solid var(--ajt-warning);
}

.ajt-msphub-note-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ajt-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.ajt-msphub-note--customer .ajt-msphub-note-avatar {
	background: var(--ajt-info);
}

.ajt-msphub-note-sender {
	font-weight: 600;
	font-size: 13px;
	color: var(--ajt-text);
}

.ajt-msphub-note-badge {
	display: inline-block;
	padding: 2px 6px;
	background: var(--ajt-primary);
	color: #fff;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-left: 6px;
}

.ajt-msphub-note-date {
	font-size: 12px;
	color: var(--ajt-text-muted);
	white-space: nowrap;
	margin-left: auto;
}

.ajt-msphub-note-body {
	font-size: 14px;
	color: var(--ajt-text);
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Attachments
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-attachments {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ajt-border);
}

.ajt-msphub-attachments h5 {
	font-size: 13px;
	margin-bottom: 12px;
}

.ajt-msphub-attachment-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--ajt-bg-light);
	border: 1px solid var(--ajt-border);
	border-radius: 6px;
	font-size: 13px;
	margin: 0 6px 8px 0;
	transition: all 0.15s ease;
	text-decoration: none;
	color: var(--ajt-primary);
}

.ajt-msphub-attachment-item:hover {
	background: var(--ajt-primary-light);
	border-color: var(--ajt-primary);
	color: var(--ajt-primary-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Reply Form
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-reply-form {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--ajt-border);
}

.ajt-msphub-reply-form h5 {
	font-size: 13px;
	margin-bottom: 12px;
}

.ajt-msphub-reply-form textarea {
	width: 100%;
	min-height: 100px;
	padding: 10px 12px;
	border: 1px solid var(--ajt-border);
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	resize: vertical;
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.ajt-msphub-reply-form textarea:focus {
	outline: none;
	border-color: var(--ajt-primary);
	box-shadow: 0 0 0 3px var(--ajt-primary-light);
}

.ajt-msphub-reply-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.ajt-msphub-file-name-indicator {
	display: inline-block;
	padding: 6px 12px;
	background: var(--ajt-bg-light);
	border: 1px solid var(--ajt-border);
	border-radius: 6px;
	font-size: 12px;
	color: var(--ajt-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Pagination
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-top: 1px solid var(--ajt-border);
	margin-top: 16px;
}

.ajt-msphub-pagination-info {
	font-size: 12px;
	color: var(--ajt-text-secondary);
}

.ajt-msphub-page-controls {
	display: flex;
	align-items: center;
	gap: 4px;
	justify-content: center;
	flex-wrap: wrap;
}

.ajt-msphub-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--ajt-border);
	background: #fff;
	color: var(--ajt-text);
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.15s ease;
}

.ajt-msphub-page-btn:hover:not(:disabled) {
	background: var(--ajt-bg-light);
	border-color: var(--ajt-text-secondary);
}

.ajt-msphub-page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ajt-msphub-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 12px;
	color: var(--ajt-text-muted);
	cursor: default;
}

.ajt-msphub-page-num-active {
	background: var(--ajt-primary);
	color: #fff;
	border-radius: 4px;
	font-weight: 700;
}

.ajt-msphub-page-ellipsis {
	display: inline-block;
	width: 24px;
	text-align: center;
	color: var(--ajt-text-muted);
	font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Quote & Service Items
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-quote-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.ajt-msphub-quote-approve,
.ajt-msphub-quote-decline {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid var(--ajt-border);
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.15s ease;
}

.ajt-msphub-quote-approve {
	background: var(--ajt-success);
	color: #fff;
	border-color: var(--ajt-success);
}

.ajt-msphub-quote-approve:hover {
	background: #047857;
}

.ajt-msphub-quote-decline {
	background: var(--ajt-danger);
	color: #fff;
	border-color: var(--ajt-danger);
}

.ajt-msphub-quote-decline:hover {
	background: #b91c1c;
}

.ajt-msphub-service-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--ajt-border);
	border-radius: 6px;
	margin-bottom: 8px;
	background: #fff;
}

.ajt-msphub-qty-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ajt-msphub-qty-decrease,
.ajt-msphub-qty-increase {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--ajt-border);
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ajt-msphub-qty-decrease:hover,
.ajt-msphub-qty-increase:hover {
	background: var(--ajt-bg-light);
	border-color: var(--ajt-text-secondary);
}

.ajt-msphub-qty-value {
	display: inline-block;
	min-width: 24px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tab Switching (Invoices, Tickets, Quotes, Services)
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-portal-tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--ajt-border);
	margin-bottom: 20px;
}

.ajt-msphub-portal-tab-link {
	padding: 12px 16px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	color: var(--ajt-text-secondary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	text-transform: capitalize;
	white-space: nowrap;
}

.ajt-msphub-portal-tab-link:hover {
	color: var(--ajt-text);
}

.ajt-msphub-portal-tab-link.active {
	color: var(--ajt-primary);
	border-bottom-color: var(--ajt-primary);
}

.ajt-msphub-portal-tab-content {
	display: none;
}

.ajt-msphub-portal-tab-content.active {
	display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Empty States
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-empty-state {
	text-align: center;
	padding: 40px 20px;
}

.ajt-msphub-empty-state-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.ajt-msphub-empty-state h4 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--ajt-text);
}

.ajt-msphub-empty-state p {
	font-size: 13px;
	color: var(--ajt-text-secondary);
	margin: 0 0 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Loading States
   ═════════════════════════════════════════════════════════════════════════ */

.ajt-msphub-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--ajt-primary-light);
	border-top-color: var(--ajt-primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive Design
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.ajt-msphub-form-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ajt-msphub-meta-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ajt-msphub-ticket-detail-panel {
		max-width: 100%;
	}

	.ajt-msphub-card {
		padding: 16px;
	}

	.ajt-msphub-field {
		margin-bottom: 12px;
	}

	.ajt-msphub-priority-control {
		flex-direction: column;
	}

	.ajt-msphub-priority-option {
		border-right: none;
		border-bottom: 1px solid var(--ajt-border);
	}

	.ajt-msphub-priority-option:last-child {
		border-bottom: none;
	}

	.ajt-msphub-ticket-list {
		font-size: 12px;
	}

	.ajt-msphub-ticket-list td {
		padding: 8px 12px;
	}

	.ajt-msphub-ticket-list thead th {
		padding: 8px 12px;
		font-size: 11px;
	}

	.ajt-msphub-pagination {
		flex-direction: column;
		gap: 12px;
	}

	.ajt-msphub-page-controls {
		order: -1;
	}

	.ajt-msphub-notes-timeline {
		margin: 16px 0;
	}

	.ajt-msphub-note {
		padding: 12px 12px;
		gap: 8px;
	}

	.ajt-msphub-note-avatar {
		width: 28px;
		height: 28px;
		font-size: 11px;
	}

	.ajt-msphub-reply-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ajt-msphub-reply-actions .ajt-msphub-btn {
		width: 100%;
	}

	.ajt-msphub-ticket-filters {
		flex-wrap: wrap;
	}

	.ajt-msphub-ticket-filter {
		padding: 6px 12px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.ajt-msphub-portal {
		font-size: 13px;
	}

	.ajt-msphub-card h4 {
		font-size: 14px;
	}

	.ajt-msphub-btn {
		padding: 6px 12px;
		font-size: 12px;
	}

	.ajt-msphub-file-previews {
		gap: 8px;
	}

	.ajt-msphub-file-thumb img {
		width: 60px;
		height: 60px;
	}

	.ajt-msphub-detail-header {
		padding: 16px;
	}

	.ajt-msphub-detail-content {
		padding: 16px;
	}

	.ajt-msphub-meta-grid {
		padding: 12px;
		gap: 12px 16px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   Accessibility
   ═════════════════════════════════════════════════════════════════════════ */

/* Focus visible for keyboard navigation */
.ajt-msphub-btn:focus-visible,
.ajt-msphub-ticket-link:focus-visible,
.ajt-msphub-priority-option:focus-visible,
.ajt-msphub-field input:focus-visible,
.ajt-msphub-field textarea:focus-visible,
.ajt-msphub-field select:focus-visible {
	outline: 3px solid var(--ajt-primary);
	outline-offset: 2px;
}

/* Priority badges inside tables */
.ajt-msphub-priority-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

/* Print styles */
@media print {
	.ajt-msphub-btn,
	.ajt-msphub-ticket-filters,
	.ajt-msphub-reply-form,
	.ajt-msphub-close-detail {
		display: none !important;
	}

	.ajt-msphub-card {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}