/*--Base WP Template changes--*/
.single-maintenance_request .wp-block-post-title 
{
    display: none;
}
/* ---------------------------------
   Core cards / ticket UI
---------------------------------- */
.ovm-whm-card,
.ovm-whm-ticket-card,
.ovm-whm-ticket-action-bar,
.ovm-whm-ticket-staff-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    font-size: 1.5rem;
}

.ovm-whm-card + .ovm-whm-card,
.ovm-whm-ticket-card > section + section {
    margin-top: 24px;
}

.ovm-whm-card__header,
.ovm-whm-ticket-section-heading,
.ovm-whm-ticket-header {
    margin-bottom: 18px;
}

.ovm-whm-card__title,
.ovm-whm-ticket-section-heading h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #102a43;
}

.ovm-whm-card__subtitle,
.ovm-whm-ticket-empty,
.ovm-whm-ticket-table__subtitle {
    margin: 0;
    color: #5b6474;
}
.ovm-whm-ticket-table .ovm-whm-ticket-status-pill 
{
    width: 100%;
    text-align: center;
}
.ovm-whm-placeholder {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #1f3a56;
}

.ovm-whm-placeholder p {
    margin: 0.5rem 0 0;
}

/* ---------------------------------
   Notices
---------------------------------- */
.ovm-whm-notice {
    padding: 14px 16px;
    margin: 1rem 0;
    border: 1px solid #facc15;
    background: #fffbeb;
    color: #713f12;
    font-size: 1.25rem;
}

.ovm-whm-notice--warning {
    background: #fff7e6;
    border-color: #f2d38b;
    color: #8a5b00;
}

.ovm-whm-notice--empty-history {
    margin-bottom: 0;
}

.ovm-whm-ticket-notice {
    padding: 14px 16px;
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

/* ---------------------------------
   Gravity Forms compatibility / polish
---------------------------------- */
.ovm-whm-card .gform_required_legend,
.ovm-whm-card .gfield_required {
    display: none !important;
}

.ovm-whm-card .gform_button {
    width: 100%;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 2;
    border: 0;
    background: #222222;
}

.ovm-whm-card .ginput_container_fileupload {
    margin-top: 0.5rem;
}

.ovm-whm-card .gform_fileupload_multifile {
    width: 100%;
}

.ovm-whm-card .gform_drop_area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 2rem 1.5rem;
    background: #f8fbff;
    border: 2px dashed #9fc4ea;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ovm-whm-card .gform_drop_area:hover,
.ovm-whm-card .gform_drop_area:focus-within {
    background: #f1f7fe;
    border-color: #6aa6df;
    box-shadow: 0 0 0 4px rgba(106, 166, 223, 0.12);
}

.ovm-whm-card .gform_drop_instructions {
    display: block;
    margin: 0 0 0.9rem;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 500;
    color: #2b4c6f;
}

.ovm-whm-card .gform_button_select_files,
.ovm-whm-card button.gform_button_select_files {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.2rem;
    background: #1f3a56;
    border: 1px solid #1f3a56;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(31, 58, 86, 0.16);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ovm-whm-card .gform_button_select_files:hover,
.ovm-whm-card button.gform_button_select_files:hover {
    background: #29527a;
    border-color: #29527a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(31, 58, 86, 0.22);
}

.ovm-whm-card .gform_button_select_files:focus,
.ovm-whm-card button.gform_button_select_files:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(106, 166, 223, 0.18);
}

.ovm-whm-card .gform_fileupload_rules {
    display: block;
    margin-top: 0.85rem;
    font-size: 1.25rem;
    line-height: 1.5;
    color: #59708a;
}

.ovm-whm-card .ginput_preview_list {
    margin-top: 1rem;
}

.ovm-whm-card .ginput_preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: #ffffff;
    border: 1px solid #d6e2ee;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ovm-whm-card .ginput_preview img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid #d9e2ec;
    flex-shrink: 0;
}

.ovm-whm-card .ginput_preview .gfield_fileupload_filename,
.ovm-whm-card .ginput_preview .ginput_preview_filename {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #1f3a56;
    font-weight: 500;
    word-break: break-word;
}

.ovm-whm-card .ginput_preview .gfield_fileupload_progress,
.ovm-whm-card .ginput_preview .gform_delete_file {
    font-size: 1.25rem;
    color: #b42318;
}

.ovm-whm-card .ginput_preview .gform_delete_file:hover {
    color: #912018;
    text-decoration: underline;
}

.ovm-whm-card #gform_multifile_messages_1_5,
.ovm-whm-card .validation_message--hidden-on-empty {
    margin-top: 0.75rem;
    padding-left: 0;
    list-style: none;
}

.ovm-whm-card #gform_multifile_messages_1_5 li,
.ovm-whm-card .validation_message--hidden-on-empty li {
    margin: 0 0 0.5rem;
    padding: 0.7rem 0.9rem;
    background: #fff7e6;
    border: 1px solid #f2d38b;
    color: #8a5b00;
    font-size: 1.25rem;
}

/* ---------------------------------
   Ticket list compatibility
---------------------------------- */
.ovm-whm-ticket-list {
    display: grid;
    gap: 1rem;
}

.ovm-whm-ticket {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    padding: 1rem;
}

.ovm-whm-ticket__title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: #102a43;
}

.ovm-whm-ticket__meta {
    margin: 0;
    color: #617d98;
    font-size: 0.95rem;
}

/* ---------------------------------
   Ticket table
---------------------------------- */
.ovm-whm-ticket-table {
    display: block;
}

.ovm-whm-ticket-table__row {
    display: grid;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f7;
}

.ovm-whm-ticket-table--user .ovm-whm-ticket-table__row {
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 2fr) auto;
}

.ovm-whm-ticket-table--staff .ovm-whm-ticket-table__row {
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 2fr) minmax(0, 1fr) auto;
}

@media screen and (max-width: 768px){
    .ovm-whm-ticket-table--staff .ovm-whm-ticket-table__row
    {
        grid-template-columns: 1fr!important;
    }
}


.ovm-whm-ticket-table__row--head {
    padding-top: 0;
    font-weight: 700;
}

.ovm-whm-ticket-table__cell {
    min-width: 0;
}

.ovm-whm-ticket-table__cell--status {
    display: flex;
    align-items: center;
}

.ovm-whm-ticket-table__row--head .ovm-whm-ticket-table__cell--status {
    display: block;
}

.ovm-whm-ticket-table__title {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.35;
    color: #102a43;
}

.ovm-whm-ticket-table__action-wrap {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

.ovm-whm-ticket-table__button,
.ovm-whm-ticket-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.ovm-whm-ticket-table__button:hover,
.ovm-whm-ticket-table__button:focus,
.ovm-whm-ticket-primary-button:hover,
.ovm-whm-ticket-primary-button:focus {
    color: #fff;
    transform: translateY(-1px);
}

.ovm-whm-ticket-table__button--secondary {
    background: #475569;
}

.ovm-whm-ticket-status-pill,
.ovm-whm-ticket-table__status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 1.25rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #1e293b;
}

.ovm-whm-ticket-table__status--open,
.ovm-whm-ticket-status-pill.status-open {
    background: #fef3c7;
    color: #92400e;
}

.ovm-whm-ticket-status-pill.status-scheduled { background: #ede9fe; color: #5b21b6; }
.ovm-whm-ticket-status-pill.status-in_progress { background: #dbeafe; color: #1d4ed8; }
.ovm-whm-ticket-status-pill.status-resolved,
.ovm-whm-ticket-status-pill.status-closed,
.ovm-whm-ticket-status-pill.status-completed { background: #dcfce7; color: #166534; }
.ovm-whm-ticket-status-pill.status-new,
.ovm-whm-ticket-status-pill.status-open { background: #fef3c7; color: #92400e; }

/* ---------------------------------
   Status tracker
---------------------------------- */
.ovm-whm-status-tracker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0.75rem;
}

.ovm-whm-status-step {
    font-size: 1.1rem;
    position: relative;
    padding: 1rem 1.5rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    text-align: center;
    font-weight: 600;
    color: #334155;
}

.ovm-whm-status-step.is-current {
    border-color: #1d4ed8;
    background: #dbeafe;
    color: #1e3a8a;
}

.ovm-whm-status-step.is-complete {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}

/* ---------------------------------
   Single-ticket / staff workflow
---------------------------------- */
.ovm-whm-ticket-app {
    display: grid;
    gap: 20px;
}

.ovm-whm-ticket-action-bar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.ovm-whm-ticket-status-form {
    margin: 0;
}

.ovm-whm-ticket-status-button {
    padding: 1rem!important;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
	line-height: 1!important;
	font-size: 1.1rem!important;
}

.ovm-whm-ticket-status-button.is-current {
    background: #dbeafe;
    border-color: #1d4ed8;
    color: #1e3a8a;
}

.ovm-whm-ticket-status-button.is-complete-action {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.ovm-whm-ticket-eyebrow {
    margin: 0 0 8px;
    font-size: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: .5rem 1.5rem;
    background: #222222;
    color: #ffffff;
}

.ovm-whm-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ovm-whm-ticket-meta-item {
    color: #475569;
}

.ovm-whm-ticket-content {
    margin: 22px 0;
    background: #fafafa;
    border-left: 3px solid #222;
    padding: 0 0 0 0 ;
    font-size: 1rem;
}
.ovm-whm-ticket-content-inner
{
    padding: 24px;
	font-size: 2rem;
}
.ovm-whm-ticket-content h2 
{
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: .5rem 1.5rem;
    background: #222222;
    color: #ffffff;
}

.ovm-whm-ticket-detail-list {
    display: grid;
    gap: 14px;
}

.ovm-whm-ticket-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-left: 3px solid #222222;
    font-size: 2rem;
}
.ovm-whm-ticket-detail-item strong 
{
    font-weight: bold;
}

.ovm-whm-ticket-detail-item--stacked {
    flex-direction: column;
}

.ovm-whm-ticket-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.ovm-whm-ticket-photo-card {
    display: block;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ovm-whm-ticket-photo-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ovm-whm-ticket-staff-form {
    display: grid;
    gap: 14px;
}

.ovm-whm-ticket-staff-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
}

.ovm-whm-ticket-staff-form input,
.ovm-whm-ticket-staff-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    box-sizing: border-box;
}

/* ---------------------------------
   Responsive
---------------------------------- */
@media (max-width: 900px) {
    .ovm-whm-ticket-table__row {
        grid-template-columns: 1fr;
    }

    .ovm-whm-ticket-table__action-wrap {
        justify-content: flex-start;
    }

    .ovm-whm-status-tracker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ovm-whm-ticket-detail-item {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ovm-whm-card,
    .ovm-whm-ticket-card,
    .ovm-whm-ticket-action-bar,
    .ovm-whm-ticket-staff-panel {
        padding: 18px;
    }

    .ovm-whm-card .gform_drop_area {
        min-height: 150px;
        padding: 1.5rem 1rem;
    }

    .ovm-whm-card .gform_drop_instructions {
        font-size: 1.1rem;
    }

    .ovm-whm-card .ginput_preview {
        gap: 0.6rem;
        padding: 0.7rem 0.75rem;
    }

    .ovm-whm-card .ginput_preview img {
        width: 44px;
        height: 44px;
    }

    .ovm-whm-status-tracker {
        grid-template-columns: 1fr;
    }

    .ovm-whm-ticket-table__row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .ovm-whm-ticket-table__cell--actions,
    .ovm-whm-ticket-table__action-wrap {
        width: 100%;
    }

    .ovm-whm-ticket-table__button {
        flex: 1 1 auto;
    }
}


/* ---------------------------------
   Front-end photo manager
---------------------------------- */
.ovm-whm-ticket-staff-panel--after-photos {
    margin-top: 24px;
}

.ovm-whm-ticket-staff-form--after-photos .ovm-whm-photo-manager__actions {
    margin-top: 12px;
    padding: 24px;
    background: #fafafa;
    border-left: 2px solid #222222;
}
.ovm-whm-add-images
{
    background: #222222;
    font-size: 1rem;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    padding: .5rem 1rem;
}

.ovm-whm-photo-manager--frontend .description {
    margin-top: 10px;
    color: #5b6474;
}

.ovm-whm-photo-manager--frontend .ovm-whm-photo-manager__card {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    border-radius: 0;
}

.ovm-whm-photo-manager--frontend .ovm-whm-photo-manager__preview {
    min-height: 160px;
}

.ovm-whm-ticket-staff-form--after-photos .ovm-whm-ticket-primary-button {
    margin-top: 16px;
}


.ovm-whm-ticket-staff-panel--resolution-notes {
    margin-top: 24px;
}

.ovm-whm-ticket-staff-form--resolution-notes textarea {
    min-height: 180px;
}


/* ---------------------------------
   Ticket sidebar navigation layout
---------------------------------- */
.ovm-whm-ticket-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
    gap: 24px;
    align-items: start;
    font-size: 1rem;
}

.ovm-whm-ticket-sidebar {
    position: relative;
    align-self: start;
}

.ovm-whm-ticket-sidebar__inner {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.ovm-whm-ticket-sidebar__title {
    margin: 0 0 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}

.ovm-whm-ticket-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ovm-whm-ticket-sidebar__link {
    display: block;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #111111;
    text-decoration: none;
    font-weight: 600;
	font-size: 1.25rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ovm-whm-ticket-sidebar__link:hover,
.ovm-whm-ticket-sidebar__link:focus,
.ovm-whm-ticket-sidebar__link.is-active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.ovm-whm-ticket-eyebrow {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ovm-whm-ticket-eyebrow.is-active {
    background: #444444;
    color: #ffffff;
}

.ovm-whm-replace-image,
.ovm-whm-remove-image
{
    background: #222222!important;
    border-radius: 0;
    border: 0;
    font-size: .8rem!important;
    padding: .5rem .75rem!important;
	line-height: 1!important;
}
.ovm-whm-photo-manager__meta
{
    display: none!important;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 900px) {
    .ovm-whm-ticket-layout {
        grid-template-columns: 1fr;
    }

    .ovm-whm-ticket-sidebar__inner {
        position: static;
        width: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
}
