/* OVH Dedicated Catalog - estilos do admin e da pagina publica */

.ovhdc-wrap { margin-top: 10px; }
.ovhdc-title small { color: #888; font-size: 13px; font-weight: normal; margin-left: 8px; }
.ovhdc-tabs { margin-bottom: 18px; }
.ovhdc-content { min-height: 200px; }

/* Cards de resumo */
.ovhdc-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ovhdc-card {
    flex: 1 1 140px; background: #fff; border: 1px solid #e2e2e2; border-radius: 6px;
    padding: 14px 16px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ovhdc-card-num { display: block; font-size: 26px; font-weight: 700; color: #2b6cb0; }
.ovhdc-card-label { display: block; font-size: 12px; color: #777; text-transform: uppercase; }

/* Toolbar e filtros */
.ovhdc-toolbar { margin-bottom: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ovhdc-lastsync { color: #666; font-size: 13px; margin-left: 6px; }
.ovhdc-sync-status { margin-left: 8px; font-weight: 600; }
.ovhdc-filters { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ovhdc-filters .form-control { width: auto; }

/* Tabela */
.ovhdc-table { font-size: 13px; }
.ovhdc-table td { vertical-align: middle; }
.ovhdc-toggle { cursor: pointer; user-select: none; }
.ovhdc-edit-cell { cursor: pointer; white-space: nowrap; }
.ovhdc-edit-cell:hover { background: #f3f8ff; }
.ovhdc-actions { white-space: nowrap; }
.ovhdc-raw { margin-top: 6px; max-width: 480px; }
.ovhdc-raw pre { max-height: 240px; overflow: auto; font-size: 11px; }

.ovhdc-settings th, .ovhdc-diag th { background: #f7f7f7; }

.ovhdc-show-unavailable { margin-left: 4px; font-weight: normal; white-space: nowrap; }
.ovhdc-bulkbar {
    background: #fbfbfb; border: 1px solid #eee; border-radius: 6px;
    padding: 8px 12px; margin-bottom: 10px; display: flex; align-items: center;
    gap: 8px; flex-wrap: wrap;
}

.ovhdc-log-context {
    max-height: 160px; overflow: auto; font-size: 11px; margin: 0;
    white-space: pre-wrap; word-break: break-word; max-width: 640px;
}

/* =========================================================================
   Vitrine publica de dedicados (tabela por categoria, expansivel e animada)
   ========================================================================= */
.ovhdc-catalog {
    /* Palette aligned to OVHStyle / Kimsufi (navy + blue, blue CTA). */
    --ovhdc-accent: #0050d7;
    --ovhdc-accent2: #000e9c;
    --ovhdc-cta: #0050d7;
    --ovhdc-cta-d: #003fad;
    --ovhdc-ink: #0b1b3a;
    --ovhdc-muted: #8893a4;
    --ovhdc-line: #e6e9f0;
    max-width: 1180px; margin: 24px auto; padding: 0 8px;
    color: var(--ovhdc-ink);
    -webkit-font-smoothing: antialiased;
}
.ovhdc-note {
    background: #eef2ff; border: 1px solid #dbe2ff; color: #3b4a7a;
    padding: 16px 18px; border-radius: 12px; text-align: center;
}

.ovhdc-catalog-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.ovhdc-catalog-total { color: var(--ovhdc-muted); font-size: 14px; }
.ovhdc-openall {
    border: 1px solid var(--ovhdc-line); background: #fff; color: var(--ovhdc-accent);
    padding: 8px 16px; border-radius: 999px; font-weight: 600; cursor: pointer;
    transition: all .18s ease;
}
.ovhdc-openall:hover { background: var(--ovhdc-accent); color: #fff; border-color: var(--ovhdc-accent); }
.ovhdc-bar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ovhdc-currency {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--ovhdc-line); background: #fff; color: var(--ovhdc-muted);
    padding: 5px 10px; border-radius: 999px; transition: border-color .18s ease;
}
.ovhdc-currency:hover { border-color: var(--ovhdc-accent); }
.ovhdc-currency .ovhdc-ic { color: var(--ovhdc-accent); flex: 0 0 auto; }
.ovhdc-currency select {
    border: 0; background: transparent; color: var(--ovhdc-text, #1b2333);
    font-weight: 600; font-size: 14px; cursor: pointer; outline: none; padding: 2px 2px;
}

/* Barra de filtros */
.ovhdc-filters {
    background: #fff; border: 1px solid var(--ovhdc-line); border-radius: 18px;
    padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 10px 30px -20px rgba(31,42,68,.4);
    animation: ovhdc-fade-up .45s ease both;
}
.ovhdc-filters-primary { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.ovhdc-filter { display: flex; flex-direction: column; gap: 8px; }

/* Botao "Mais filtros" e secao colapsavel */
.ovhdc-more-toggle {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; margin-left: auto;
    background: #eef3ff; color: var(--ovhdc-accent); border: 0; border-radius: 999px;
    padding: 9px 16px; font-weight: 700; cursor: pointer; transition: all .15s ease;
}
.ovhdc-more-toggle:hover { background: #dfe7ff; }
.ovhdc-more-plus {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
    border-radius: 50%; background: var(--ovhdc-accent); color: #fff; font-size: 17px; line-height: 1;
    transition: transform .3s ease;
}
.ovhdc-filters.is-expanded .ovhdc-more-plus { transform: rotate(135deg); }
.ovhdc-filters-more {
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1);
}
.ovhdc-filters.is-expanded .ovhdc-filters-more { grid-template-rows: 1fr; }
.ovhdc-filters-more-inner { overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.ovhdc-filters.is-expanded .ovhdc-filters-more-inner {
    padding-top: 18px; margin-top: 8px; border-top: 1px dashed var(--ovhdc-line);
}
.ovhdc-ramtype { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; }
.ovhdc-flag { width: 30px; height: 20px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: block; }
.ovhdc-filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ovhdc-muted); }
.ovhdc-filter-title em { font-style: normal; color: var(--ovhdc-accent); margin-left: 4px; font-weight: 800; }
.ovhdc-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.ovhdc-choices-sm { gap: 6px; margin-top: 6px; }
.ovhdc-filter-slider { min-width: 240px; flex: 1 1 240px; }
.ovhdc-filter-clear { align-self: flex-end; margin-left: auto; background: none; border: 0;
    color: var(--ovhdc-accent); font-weight: 700; cursor: pointer; padding: 8px 4px; }
.ovhdc-filter-clear:hover { text-decoration: underline; }

.ovhdc-choice {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; min-width: 86px; height: 66px; padding: 8px 12px; border: 2px solid var(--ovhdc-line);
    border-radius: 14px; background: #fff; cursor: pointer; transition: all .15s ease;
    font-weight: 600; font-size: 13px; color: var(--ovhdc-ink);
}
.ovhdc-choice:hover { border-color: #cdd7ea; transform: translateY(-1px); }
.ovhdc-choice.is-active { border-color: var(--ovhdc-accent); background: #eef3ff; box-shadow: 0 8px 18px -12px var(--ovhdc-accent); }
.ovhdc-ic { width: 26px; height: 22px; color: var(--ovhdc-accent); }

.ovhdc-logo {
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 30px;
    border-radius: 8px; font-weight: 800; letter-spacing: .5px; font-size: 16px;
}
.ovhdc-logo-intel { background: #0068b5; color: #fff; font-style: italic; }
.ovhdc-logo-amd { background: #111418; color: #fff; }

.ovhdc-chip-btn {
    border: 1.5px solid var(--ovhdc-line); background: #fff; border-radius: 999px; padding: 5px 14px;
    font-weight: 700; font-size: 12px; cursor: pointer; color: var(--ovhdc-ink); transition: all .15s ease;
}
.ovhdc-chip-btn:hover { border-color: #cdd7ea; }
.ovhdc-chip-btn.is-active { background: var(--ovhdc-accent); border-color: var(--ovhdc-accent); color: #fff; }

/* Slider de faixa (dual e simples) */
.ovhdc-range { position: relative; height: 34px; }
.ovhdc-range-track {
    position: absolute; top: 50%; left: 2px; right: 2px; height: 6px; transform: translateY(-50%);
    background: #e5e9f2; border-radius: 999px;
}
.ovhdc-range-fill {
    position: absolute; top: 0; bottom: 0; left: 0; right: 0;
    background: linear-gradient(90deg, var(--ovhdc-accent), var(--ovhdc-accent2)); border-radius: 999px;
}
.ovhdc-range input[type=range] {
    position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.ovhdc-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; border: 3px solid var(--ovhdc-accent);
    box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer;
}
.ovhdc-range input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 3px solid var(--ovhdc-accent); cursor: pointer;
}
.ovhdc-range input[type=range]::-webkit-slider-runnable-track { background: none; }
.ovhdc-range input[type=range]::-moz-range-track { background: none; }

.ovhdc-noresult {
    background: #fff; border: 1px dashed var(--ovhdc-line); border-radius: 14px;
    padding: 26px; text-align: center; color: var(--ovhdc-muted); margin-bottom: 18px;
}
.ovhdc-srv.is-hidden { display: none; }

/* Categoria */
.ovhdc-cat {
    margin-bottom: 30px;
    animation: ovhdc-fade-up .5s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i, 0) * .07s);
}
.ovhdc-cat-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px 2px; }
.ovhdc-cat-bar { width: 6px; height: 22px; border-radius: 4px;
    background: linear-gradient(180deg, var(--ovhdc-accent), var(--ovhdc-accent2)); }
.ovhdc-cat-title { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.ovhdc-cat-count {
    background: #eef2ff; color: var(--ovhdc-accent); font-size: 12px; font-weight: 700;
    padding: 2px 10px; border-radius: 999px;
}

/* "Tabela" em grid */
.ovhdc-grid {
    background: #fff; border: 1px solid var(--ovhdc-line); border-radius: 16px;
    overflow: hidden; box-shadow: 0 10px 30px -18px rgba(31,42,68,.35);
}
.ovhdc-grid-head, .ovhdc-srv-row {
    display: grid;
    grid-template-columns: 1.5fr 1.7fr .9fr 1.5fr 1.1fr 1fr auto;
    align-items: center; gap: 10px;
}
.ovhdc-grid-head {
    padding: 14px 18px; background: #f7f9fc; border-bottom: 1px solid var(--ovhdc-line);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    color: var(--ovhdc-muted);
}
.ovhdc-srv { border-bottom: 1px solid var(--ovhdc-line); }
.ovhdc-srv:last-child { border-bottom: 0; }
.ovhdc-srv-row { padding: 16px 18px; transition: background .15s ease; }
.ovhdc-srv:hover .ovhdc-srv-row { background: #f9fbff; }
.ovhdc-srv.is-open .ovhdc-srv-row { background: #f4f8ff; }

.ovhdc-col { font-size: 14px; min-width: 0; }
.ovhdc-col small { display: block; color: var(--ovhdc-muted); font-size: 12px; margin-top: 2px; }
.ovhdc-strong { font-weight: 600; }
/* Opcoes de armazenamento empilhadas na primeira linha */
.ovhdc-stack { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ovhdc-stack-item {
    font-size: 12.5px; line-height: 1.3; color: var(--ovhdc-text, #1b2333);
    padding: 1px 7px; border-radius: 6px; background: #f1f4fb; border: 1px solid var(--ovhdc-line);
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ovhdc-stack-item.is-base { background: #e0edff; border-color: #c4dbff; color: var(--ovhdc-accent); font-weight: 700; }
.ovhdc-stack-more { font-size: 11px; color: var(--ovhdc-muted); font-weight: 600; padding-left: 4px; }
.ovhdc-col-name { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ovhdc-name { font-weight: 800; font-size: 15px; }
.ovhdc-exp {
    border: 0; background: #eef2ff; color: var(--ovhdc-accent); border-radius: 9px;
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex: 0 0 auto; transition: transform .3s ease, background .15s ease;
}
.ovhdc-col-name:hover .ovhdc-exp { background: #dfe7ff; }
.ovhdc-srv.is-open .ovhdc-exp { transform: rotate(180deg); }
.ovhdc-badge {
    background: linear-gradient(90deg,#f59e0b,#f97316); color: #fff; font-size: 10px;
    font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
}

.ovhdc-price { text-align: right; }
.ovhdc-amount { font-size: 20px; font-weight: 800; color: var(--ovhdc-ink); }
.ovhdc-cta { text-align: right; }
.ovhdc-btn {
    display: inline-block; background: var(--ovhdc-cta); color: #fff; font-weight: 700;
    padding: 10px 20px; border-radius: 8px; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 16px -8px rgba(0,80,215,.9); transition: transform .15s ease, background .15s ease;
}
.ovhdc-btn:hover { background: var(--ovhdc-cta-d); color: #fff; transform: translateY(-1px); text-decoration: none; }

/* Painel de detalhes animado */
.ovhdc-details {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1);
}
.ovhdc-srv.is-open .ovhdc-details { grid-template-rows: 1fr; }
.ovhdc-details-inner { overflow: hidden; }
.ovhdc-srv.is-open .ovhdc-details-inner {
    padding: 4px 18px 20px; border-top: 1px dashed var(--ovhdc-line);
}
.ovhdc-desc { color: var(--ovhdc-muted); margin: 12px 0; font-size: 14px; }
.ovhdc-detail-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin-top: 12px;
}
.ovhdc-detail { background: #f7f9fc; border-radius: 10px; padding: 10px 12px; }
.ovhdc-detail span { display: block; color: var(--ovhdc-muted); font-size: 11px;
    text-transform: uppercase; letter-spacing: .3px; }
.ovhdc-detail strong { font-size: 14px; }
.ovhdc-opts { margin-top: 14px; }
.ovhdc-opt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ovhdc-opt-row > span { color: var(--ovhdc-muted); font-weight: 700; font-size: 12px; min-width: 46px; }
.ovhdc-chip {
    display: inline-block; background: #eef2f7; color: #34495e; border-radius: 999px;
    padding: 4px 12px; font-size: 12px;
}
.ovhdc-chip.is-base { background: #e0edff; color: var(--ovhdc-accent); font-weight: 700; }
.ovhdc-details-cta { margin-top: 16px; }

@keyframes ovhdc-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Responsivo: vira lista empilhada no mobile */
@media (max-width: 820px) {
    .ovhdc-grid-head { display: none; }
    .ovhdc-srv-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
    .ovhdc-col-name { grid-column: 1 / -1; }
    .ovhdc-col::before {
        content: attr(data-label); display: block; color: var(--ovhdc-muted);
        font-size: 11px; text-transform: uppercase; letter-spacing: .3px;
    }
    .ovhdc-price, .ovhdc-cta { text-align: left; }
    .ovhdc-cta { grid-column: 1 / -1; }
    .ovhdc-btn { display: block; text-align: center; }
}

/* Opcoes configuraveis (tela de edicao admin) */
.ovhdc-opt-list { margin: 4px 0 14px; padding-left: 18px; }
.ovhdc-opt-list li { font-size: 13px; padding: 1px 0; }

/* ===== Paginas legais (white-label) ===== */
.ovhdc-legal{max-width:860px;margin:0 auto;padding:8px 0 40px;}
.ovhdc-legal-title{font-size:30px;font-weight:800;color:#001a72;margin:8px 0 20px;}
.ovhdc-legal-body{font-size:15px;line-height:1.75;color:#3a4252;}
.ovhdc-legal-body h2{font-size:19px;font-weight:700;color:#001a72;margin:26px 0 8px;}
.ovhdc-legal-body p{margin:0 0 12px;}
.ovhdc-legal-body a{color:#0050d7;}
.ovhdc-legal-body small{color:#8893a4;}
