/* 
    Created on : 23 de mai. de 2026, 23:56:01
    Author     : Célio Ricardo
*/
/* ===============================
   MODERNIZAÇÃO ORDENS DE SERVIÇO
   =============================== */
/* ==========================
   TELA ORDENS DE SERVIÇO
   Escopo seguro: .os-page
   ========================== */

.os-page {
    background: #f5f7fb !important;
    color: #1f2937;
}

/* Topo / breadcrumb */
.os-page .header_section {
    background: #ffffff !important;
    color: #6b7280 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid #e5e7eb;
}

.os-page .header_section h1 {
    color: #6b7280 !important;
    font-size: 1em;
    font-weight: 500;
}

.os-page .header_section a {
    color: #4f6692 !important;
    font-weight: 600;
    text-decoration: none;
}

/* Cabeçalho da página */
.os-page .wc_ead_home_header {
    background: transparent !important;
    border-bottom: 1px solid #d7dde6 !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px;
}

.os-page .wc_ead_home_header h1 {
    color: #374151 !important;
    font-size: 1.55em !important;
    font-weight: 800 !important;
}

.os-page .wc_ead_home_header p {
    color: #6b7280 !important;
    font-size: 0.85em !important;
    letter-spacing: 0.02em;
}

/* Caixa de busca */
.os-page .marketing__box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 0px;
}

.os-page .marketing__filter {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Campo de busca */
.os-page .marketing__search {
    display: flex;
    align-items: center;
    max-width: 620px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.os-page .marketing__search input[type="search"] {
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    height: 35px;
    padding: 0 16px !important;
    color: #374151;
}

.os-page .marketing__search button {
    width: 52px;
    height: 38px;
    border: none;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
}
/* ==========================
   RESULTADO AJAX DA BUSCA OS
   ========================== */

.os-page .marketing__content {
    margin-top: 14px;
}

.os-page .js-marketing-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

/* Cada linha */
.os-page .marketing__table {
    display: block;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.2s ease, transform 0.2s ease;
}

.os-page .marketing__table:last-child {
    border-bottom: none;
}

/* Cabeçalho */
.os-page .marketing__table--header {
    background: #f8fafc !important;
}

.os-page .marketing__table--header .marketing__data p {
    color: #64748b !important;
    font-weight: 800;
    font-size: 0.9em;
}

/* Link da linha inteira */
.os-page .marketing__table .link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none !important;
}

/* Grid interno */
.os-page .marketing__data {
    display: grid;
    grid-template-columns: 15% 20% 25% 40%;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
}

/* Células */
.os-page .marketing__data p {
    margin: 0;
    color: #475569;
    font-size: 0.94em;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover da linha */
.os-page .marketing__table:not(.marketing__table--header):hover {
    background: #f8fafc !important;
}

/* Ordem de serviço */
.os-page .marketing__data p.icon-ticket {
    color: #111827 !important;
    font-weight: 800;
}

.os-page .marketing__data p.icon-ticket::before {
    color: #64748b;
    margin-right: 8px;
}

/* Ícones */
.os-page .marketing__data p[class*="icon-"]::before {
    color: #64748b;
    margin-right: 8px;
}

/* Cliente */
.os-page .marketing__data p.icon-user {
    color: #2563eb;
    font-weight: 700;
}

/* Alternância leve entre linhas */
.os-page .marketing__table:not(.marketing__table--header):nth-child(odd) {
    background: #ffffff;
}

.os-page .marketing__table:not(.marketing__table--header):nth-child(even) {
    background: #fbfdff;
}

/* Responsivo */
@media (max-width: 768px) {
    .os-page .marketing__table--header {
        display: none;
    }

    .os-page .marketing__data {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .os-page .marketing__data p {
        white-space: normal;
    }
}
/* Filtro de datas */
.os-page .os-filter__dates label {
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.os-page .os-filter__dates span {
    color: #6b7280;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
}

.os-page .os-filter__dates input[type="date"] {
    width: 170px;
    height: 42px;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #374151;
}

.os-page .os-filter__button {
    width: auto;
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.os-page .os-filter__clear {
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Cards de status */
.os-page .page_ticket .js-tabs_control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0 24px;
}

.os-page .page_ticket .js-tabs_control li {
    width: 100%;
}

.os-page .os-card {
    width: 100%;
    min-height: 88px;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    cursor: default !important;
}

.os-page .os-card strong {
    display: block;
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 8px;
}

.os-page .os-card span {
    display: block;
    font-size: 1.8em;
    font-weight: 900;
}

.os-page .os-card--open {
    border-left: 6px solid #22c55e !important;
}

.os-page .os-card--closed {
    border-left: 6px solid #ef4444 !important;
}

.os-page .os-card--unfinished {
    border-left: 6px solid #a855f7 !important;
}

/* Lista de ordens */
.os-page .wc_account_order {
    display: grid;
    grid-template-columns: 14% 18% 18% 32% 18%;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 14px;
}
.os-page .wc_account_order p {
    line-height: 1.35;
    word-break: normal;
}

.os-page .wc_account_order p:nth-child(3),
.os-page .wc_account_order p:nth-child(4) {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.os-page .wc_account_order p:nth-child(5) {
    text-align: right;
}
.os-page .wc_account_order:first-of-type {
    background: #f8fafc;
    color: #6b7280;
    font-weight: 800;
    border-radius: 14px 14px 0 0;
}

.os-page .wc_account_order p {
    margin: 0;
    color: #4b5563;
}

.os-page .wc_account_order a {
    color: #111827;
    font-weight: 900;
    text-decoration: none;
    background: #fffbea;
    padding: 6px 8px;
    border-radius: 8px;
}

.os-page .wc_account_order.close_order:hover {
    background: #f9fafb;
}

/* Botão encerrar */
.os-page .wc_account_order .btn {
    justify-self: end;
    background: #6b7280 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.os-page .wc_account_order .btn:hover {
    background: #4b5563 !important;
}

/* Mensagem final */
.os-page .tkt-infor {
    color: #9ca3af !important;
    font-size: 0.85em;
    margin-top: 28px;
}
.os-page .page_ticket header p {
    margin-bottom: 10px !important;
    padding-left: 0;
}

.os-page .page_ticket .js-tabs_control {
    margin-top: 8px !important;
}
.os-page .tabs > h3 {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    color: #374151 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
}
.os-page .os-card,
.os-page .os-card strong,
.os-page .os-card span {
    font-family: inherit !important;
}
.os-page .tabs > h3 a {
    color: #4f46e5 !important;
    text-decoration: none !important;
}
.os-page .js-tabs_control-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* Responsivo */
@media (max-width: 768px) {
    .os-page .page_ticket .js-tabs_control {
        grid-template-columns: 1fr;
    }

    .os-page .wc_account_order {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .os-page .wc_account_order:first-of-type {
        display: none;
    }

    .os-page .wc_account_order .btn {
        justify-self: start;
    }

    .os-page .os-filter__dates input[type="date"],
    .os-page .os-filter__button,
    .os-page .os-filter__clear {
        width: 100%;
    }
}

/*FILTER*/
.os-page .os-date-filter-pro {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(230px, 1fr) auto;
    align-items: center;
    gap: 22px;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 18px;
    padding: 18px 22px;
    margin: 18px 0 28px 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.os-page .os-filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #25364d;
    font-size: 0.98rem;
    font-weight: 800;
    white-space: nowrap;
}

.os-page .os-filter-header span {
    color: #355c8c;
    font-size: 1.05rem;
}

.os-page .os-filter-controlbar {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 12px;
}

.os-page .os-filter-field {
    width: 185px !important;
    min-width: 185px !important;
    display: flex !important;
    flex-direction: column;
    gap: 7px;
    margin: 0 !important;
}

.os-page .os-filter-field span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    line-height: 1;
    margin-left: 2px;
}

.os-page .os-filter-field input[type="date"] {
    width: 100% !important;
    height: 46px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    border: 1px solid #cfd7e3 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: #1f2937 !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
}

.os-page .os-filter-field input[type="date"]:focus {
    outline: none !important;
    border-color: #355c8c !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(53, 92, 140, 0.13) !important;
}

.os-page .os-filter-controlbar .btn {
    width: auto !important;
    min-width: 132px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.os-page .os-filter-controlbar .btn_blue {
    background: #355c8c !important;
    color: #ffffff !important;
}

.os-page .os-filter-controlbar .btn_blue:hover {
    background: #2d4f79 !important;
    transform: translateY(-1px);
}

.os-page .os-filter-controlbar .btn_light {
    background: #eef2f7 !important;
    color: #405066 !important;
    border: 1px solid #d7dee8 !important;
}

.os-page .os-filter-controlbar .btn_light:hover {
    background: #e5ebf3 !important;
    transform: translateY(-1px);
}

@media (max-width: 1180px) {
    .os-page .os-date-filter-pro {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .os-page .os-filter-controlbar {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .os-page .os-filter-controlbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .os-page .os-filter-field {
        width: 100% !important;
        min-width: 0 !important;
    }

    .os-page .os-filter-controlbar .btn {
        width: 100% !important;
    }
}

@media (max-width: 540px) {
    .os-page .os-filter-controlbar {
        grid-template-columns: 1fr;
    }

    .os-page .os-filter-header {
        white-space: normal;
        line-height: 1.35;
    }
}