/* Estilos Gerais */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h1, h2 {
    color: #1a2b3c;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Navegação */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
nav a {
    margin-left: 15px;
    font-weight: 500;
}

/* Formulários */
input[type="text"],
input[type="password"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}
button, .btn-request {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover, .btn-request:hover {
    background-color: #0056b3;
}
button:disabled, .btn-request:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Formulário de Login */
.login-form {
    display: block;
    max-width: 400px;
    margin: 30px auto;
}
.login-form div {
    margin-bottom: 15px;
}
.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
/* Faz o botão "Entrar" ter 100% de largura */
.login-form button {
    width: 100%;
    box-sizing: border-box;
}

/* Botão "Voltar ao Site" (Página de Login) */
.btn-secondary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f4f7f6;
    color: #333;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-secondary:hover {
    background-color: #e9e9e9;
}


/* Formulário de Busca (index.php) */
#search-form {
    display: flex;
    gap: 10px;
    margin-top: 10px; /* Espaço acima (depois da msg) */
    margin-bottom: 20px; /* Espaço abaixo (antes dos resultados) */
}
/* Garante que o botão de busca não tenha 100% de largura */
#search-form button {
    width: auto;
}


/* Mensagens de Erro/Sucesso */
.error { color: #d9534f; }
.success { color: #5cb85c; }
#message-container {
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    margin: 15px 0;
}

/* Resultados da Busca */
#results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.result-card {
    display: flex;
    gap: 15px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    overflow: hidden;
}
.result-card img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.result-card .card-content {
    flex: 1;
}
.result-card h3 {
    margin: 0 0 10px 0;
}
.result-card p {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #555;
}
.btn-request {
    padding: 8px 12px;
    font-size: 14px;
}

/* Campos do Cliente (Nome, Wpp, Msg) */
.form-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.form-inline {
    display: flex;
    gap: 15px;
}
.form-inline div {
    flex: 1;
}
.form-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

/* Campo de Mensagem (Textarea) */
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

/* Tabela Admin */
.requests-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.requests-table th,
.requests-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle; /* Alinha botões verticalmente */
}
.requests-table th {
    background-color: #f2f2f2;
}
.requests-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Linha da Mensagem (Admin) */
.requests-table .message-row td {
    background-color: #fdfdfd;
    padding: 10px 15px;
    border-bottom: 2px solid #ddd;
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
}
.requests-table .message-row strong {
    color: #0056b3;
    margin-right: 5px;
}

/* Botão Apagar (Admin) */
.btn-delete {
    padding: 6px 10px;
    font-size: 14px;
    background-color: #d9534f; /* Vermelho */
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.btn-delete:hover {
    background-color: #c9302c; /* Vermelho mais escuro */
}
.requests-table td form {
    margin: 0;
}
/* --- Melhorias do painel de pedidos --- */
select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font-size: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.choice-grid label { border: 1px solid #ddd; padding: 10px 12px; border-radius: 6px; background: #fff; cursor: pointer; }
.admin-cards { display: grid; gap: 18px; }
.request-box { border: 1px solid #ddd; border-radius: 10px; padding: 18px; background: #fff; }
.request-box-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.request-box-header h3 { margin: 8px 0 0; }
.status-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #eef4ff; font-size: 13px; font-weight: 700; }
.request-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.original-message, .organized-request { margin-top: 14px; padding: 14px; border-radius: 8px; background: #f8f8f8; }
.organized-request textarea { width: 100%; min-height: 180px; margin: 10px 0; resize: vertical; }
.btn-copy { padding: 10px 14px; border: 0; border-radius: 6px; cursor: pointer; }

/* --- ETAPA 2: Painel administrativo profissional --- */
.admin-container { max-width: 1100px; }
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0 18px;
}
.stat-card {
    background: #f7f9fb;
    color: #1a2b3c;
    border: 1px solid #dde4ea;
    padding: 14px 10px;
    text-align: center;
}
.stat-card:hover, .stat-card.active { background: #eef5ff; border-color: #8fbfff; color: #0056b3; }
.stat-card strong { display: block; font-size: 25px; line-height: 1.1; }
.stat-card span { display: block; margin-top: 5px; font-size: 12px; }
.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.admin-toolbar input, .admin-toolbar select { width: 100%; box-sizing: border-box; }
.request-box { box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.request-box-header h3 { font-size: 21px; }
.status-badge { background: #eef4ff; color: #245ca6; }
.status-novo-pedido { background: #fff3cd; color: #7a5a00; }
.status-repassado { background: #dbeafe; color: #1d4ed8; }
.status-concluido { background: #dcfce7; color: #166534; }
.status-nao-encontrado { background: #f1f3f5; color: #495057; }
.request-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.request-actions .btn-copy { background: #007bff; color: #fff; }
.request-actions .status-select { width: auto; min-width: 190px; }
@media (max-width: 800px) {
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-toolbar { grid-template-columns: 1fr; }
    nav { align-items: flex-start; gap: 10px; }
    nav > div { display: flex; flex-wrap: wrap; gap: 8px; }
    nav a { margin-left: 0; }
}

/* Etapa 3 - histórico do revendedor e formulário inteligente */
.client-history {
    margin: -2px 0 18px;
    padding: 14px 16px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #f8fafc;
}
.client-history[hidden] { display: none !important; }
.history-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f2742;
}
.history-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #e7edf3;
    font-size: 14px;
}
.history-item:first-of-type { border-top: 0; }
.history-item span { color: #5d6b7a; text-align: right; }
@media (max-width: 700px) {
    .history-item { flex-direction: column; gap: 3px; }
    .history-item span { text-align: left; }
}

/* Etapa 4 - Assistente inteligente para organizar pedidos */
.smart-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.smart-label-row label { margin: 0; }
.btn-smart {
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
    background: #111827;
    color: #fff;
    white-space: nowrap;
}
.btn-smart:disabled { opacity: .65; cursor: wait; }
.smart-preview {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    line-height: 1.55;
}
.smart-preview-title {
    font-weight: 800;
    margin-bottom: 6px;
}
.smart-preview small {
    display: block;
    margin-top: 9px;
    opacity: .75;
}
@media (max-width: 640px) {
    .smart-label-row { align-items: stretch; flex-direction: column; }
    .btn-smart { width: 100%; }
}

/* ETAPA 5 - Fluxo simplificado: TMDB + descrição + análise */
.smart-flow-container { max-width: 930px; }
.step-card { border: 1px solid #e3e8ee; border-radius: 12px; padding: 18px; margin-bottom: 18px; background: #fff; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #15283d; margin-bottom: 14px; }
.step-title span { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #007bff; color: #fff; font-size: 14px; }
.compact-group { margin: 0; padding: 0; background: transparent; border: 0; }
.compact-choices { margin: 0; }
.search-highlight { margin: 0 !important; }
.selected-content { display: flex; gap: 16px; align-items: center; border: 2px solid #b9d7ff; background: #f5f9ff; border-radius: 12px; padding: 14px; margin-top: 14px; }
.selected-content[hidden] { display: none !important; }
.selected-content img, .selected-content .poster-placeholder { width: 78px; height: 112px; border-radius: 7px; object-fit: cover; flex: 0 0 auto; }
.poster-placeholder { display:flex; align-items:center; justify-content:center; text-align:center; background:#eef1f4; color:#7a8793; font-size:12px; }
.selected-content h3 { margin: 2px 0 4px; }
.selected-content p { margin: 0 0 8px; color: #637083; }
.selected-label { color: #0069d9; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.btn-select-content { padding: 9px 14px; font-size: 14px; }
.btn-secondary-inline { padding: 8px 12px; border: 1px solid #ccd5df; border-radius: 6px; background: #fff; color: #34495e; font-size: 14px; cursor: pointer; }
.problem-box textarea { min-height: 105px; }
.example-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.example-chips button { background: #f1f5f9; color: #334155; border: 1px solid #dbe3ec; padding: 7px 10px; font-size: 12px; }
.example-chips button:hover { background: #e8f1ff; color: #0056b3; }
.btn-analyze { width: 100%; background: #172033; font-weight: 800; }
.btn-analyze:hover { background: #0d1422; }
.review-card { margin-top: 14px; border: 1px solid #cfe2ff; background: #f8fbff; border-radius: 12px; padding: 18px; }
.review-card[hidden] { display: none !important; }
.review-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: #15375b; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-grid > div { background: #fff; border: 1px solid #e1e9f1; border-radius: 8px; padding: 10px 12px; }
.review-grid span { display: block; color: #718096; font-size: 12px; margin-bottom: 2px; }
.review-grid strong { display: block; color: #1f2937; }
.review-full { grid-column: 1 / -1; }
.confidence { margin: 12px 0; color: #526170; font-size: 13px; }
.btn-confirm { background: #198754; margin-right: 8px; }
.btn-confirm:hover { background: #146c43; }
.success-panel { padding: 8px 0; color: #166534; }
.success-panel strong { font-size: 18px; }
@media (max-width: 700px) {
  .form-inline { flex-direction: column; }
  .review-grid { grid-template-columns: 1fr; }
  .review-full { grid-column: auto; }
  .selected-content { align-items: flex-start; }
}


/* ETAPA 8 — Protocolo + privacidade da área administrativa */
.public-nav { justify-content: flex-start; }
.protocol-box {
    margin: 14px 0;
    padding: 12px 16px;
    border: 1px solid #b8d4ff;
    border-radius: 10px;
    background: #f4f8ff;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.protocol-box span { font-size: 12px; opacity: .75; }
.protocol-box strong { font-size: 18px; letter-spacing: .4px; }
.protocol-inline { margin: 4px 0 8px; font-size: 12px; opacity: .8; }

/* ETAPA 9 — Anexo de print no pedido */
.attachment-upload {
    margin: 12px 0 14px;
    padding: 14px;
    border: 1px dashed #b8c5d3;
    border-radius: 10px;
    background: #f8fafc;
}
.attachment-label { display: block; font-weight: 800; margin-bottom: 8px; color: #20364d; }
.attachment-label span { font-weight: 500; color: #718096; }
.attachment-upload input[type="file"] { display: block; width: 100%; margin-bottom: 6px; }
.attachment-upload small { color: #6b7280; }
.attachment-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.attachment-preview[hidden] { display: none !important; }
.attachment-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid #d8e0e8; }
.attachment-preview div { min-width: 0; }
.attachment-preview strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 500px; }
.attachment-preview span { display: block; color: #6b7280; font-size: 12px; margin-top: 3px; }
.attachment-badge { display: inline-block; margin: 0 0 8px; padding: 4px 8px; background: #fff7ed; color: #9a4d00; border-radius: 999px; font-size: 12px; font-weight: 700; }
.attachment-admin-block { background: #fffdf7; border: 1px solid #f1dfb6; }
.attachment-admin-link { display: block; margin-top: 10px; text-decoration: none; color: #0056b3; }
.attachment-admin-link img { display: block; width: min(100%, 520px); max-height: 360px; object-fit: contain; object-position: left center; border: 1px solid #d9dee5; border-radius: 10px; background: #fff; }
.attachment-admin-link span { display: inline-block; margin-top: 8px; font-weight: 700; }
@media (max-width: 640px) {
    .attachment-preview strong { max-width: 220px; }
}

/* ETAPA 10 — Área pública para acompanhamento de pedidos */
.public-nav { gap: 16px; }
.public-track-link {
    margin-left: auto;
    color: #0056b3;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}
.public-track-link:hover { text-decoration: underline; }
.success-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.btn-track-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 7px;
    background: #0f6bdc;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}
.btn-track-order:hover { background: #0957b7; color: #fff; }
.tracking-container { max-width: 820px; }
.tracking-card, .tracking-result {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .06);
}
.tracking-card { max-width: 590px; margin-left: auto; margin-right: auto; }
.tracking-icon { font-size: 34px; }
.tracking-card h2 { margin: 8px 0 5px; color: #172b42; }
.tracking-card > p { margin: 0 0 20px; color: #657386; }
.tracking-form { display: grid; gap: 14px; }
.tracking-form label { display: block; margin-bottom: 6px; font-weight: 800; color: #283e55; }
.tracking-form input { width: 100%; box-sizing: border-box; }
.btn-track-submit { width: 100%; background: #0f6bdc; font-weight: 800; }
.btn-track-submit:hover { background: #0957b7; }
.tracking-security { margin-top: 14px; color: #708090; font-size: 12px; text-align: center; }
.tracking-error { margin-bottom: 15px; padding: 10px 12px; background: #fff1f2; color: #b42318; border: 1px solid #fecdd3; border-radius: 8px; }
.tracking-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tracking-eyebrow { display: block; font-size: 12px; color: #718096; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.tracking-result-head h2 { margin: 3px 0 0; color: #162c44; font-size: 24px; }
.tracking-status { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #fff3cd; color: #775b00; }
.tracking-status.status-repassado { background: #dbeafe; color: #1d4ed8; }
.tracking-status.status-concluido { background: #dcfce7; color: #166534; }
.tracking-status.status-nao-encontrado { background: #f1f3f5; color: #495057; }
.tracking-status-help { margin: 18px 0; padding: 12px 14px; border-left: 4px solid #0f6bdc; background: #f5f9ff; color: #3d5268; border-radius: 0 8px 8px 0; }
.tracking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tracking-grid > div { padding: 11px 12px; border: 1px solid #e5ebf1; border-radius: 9px; background: #fbfcfe; }
.tracking-grid span, .tracking-message span { display: block; color: #718096; font-size: 12px; margin-bottom: 3px; }
.tracking-grid strong { color: #1f2937; }
.tracking-message { margin-top: 14px; padding: 14px; border: 1px solid #e5ebf1; border-radius: 9px; background: #fbfcfe; }
.tracking-message p { margin: 4px 0 0; color: #2b3d50; line-height: 1.55; }
.tracking-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 650px) {
    .public-nav { align-items: flex-start; flex-direction: column; }
    .public-track-link { margin-left: 0; }
    .tracking-card, .tracking-result { padding: 18px; }
    .tracking-result-head { flex-direction: column; }
    .tracking-grid { grid-template-columns: 1fr; }
}


/* ETAPA 11 — Resposta do administrador + linha do tempo */
.admin-response-block { background: #f7fbff; border: 1px solid #cfe1f5; }
.admin-response-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.admin-response-head span { font-size: 12px; color: #6b7d90; }
.admin-response-block label { display: block; margin: 10px 0 6px; font-weight: 800; color: #28445f; font-size: 13px; }
.admin-response-block label small { font-weight: 500; color: #7a8796; }
.admin-response-block select,
.admin-response-block textarea { width: 100%; box-sizing: border-box; border: 1px solid #cad6e2; border-radius: 8px; background: #fff; padding: 10px 11px; font: inherit; color: #24364a; }
.admin-response-block textarea { min-height: 82px; resize: vertical; }
.btn-save-update { margin-top: 12px; background: #0f6bdc; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 900; cursor: pointer; }
.btn-save-update:hover { background: #0957b7; }
.btn-save-update:disabled { opacity: .65; cursor: wait; }
.admin-order-timeline { background: #fbfcfe; }
.admin-timeline-list { margin-top: 10px; display: grid; gap: 9px; }
.admin-timeline-entry { padding: 10px 12px; border-left: 3px solid #0f6bdc; background: #fff; border-radius: 0 8px 8px 0; }
.admin-timeline-entry > div { display: flex; justify-content: space-between; gap: 12px; }
.admin-timeline-entry span { font-size: 12px; color: #718096; }
.admin-timeline-entry p { margin: 6px 0 0; color: #45576a; }
.tracking-status.status-em-analise { background: #e0f2fe; color: #075985; }
.tracking-status.status-aguardando-correcao { background: #fef3c7; color: #92400e; }
.tracking-admin-message { margin-top: 14px; padding: 15px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; }
.tracking-admin-message span { display: block; color: #1d4ed8; font-size: 12px; font-weight: 900; margin-bottom: 5px; }
.tracking-admin-message p { margin: 0; color: #1e3a5f; line-height: 1.55; }
.tracking-timeline { margin-top: 22px; padding-top: 4px; }
.tracking-timeline h3 { margin: 0 0 14px; color: #20364d; }
.tracking-timeline-item { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding-bottom: 16px; }
.tracking-timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: #dbe6f2; }
.tracking-dot { width: 14px; height: 14px; border-radius: 50%; background: #0f6bdc; margin-top: 3px; position: relative; z-index: 1; box-shadow: 0 0 0 4px #eaf3ff; }
.tracking-timeline-content { padding: 0 0 3px; }
.tracking-timeline-top { display: flex; justify-content: space-between; gap: 12px; }
.tracking-timeline-top strong { color: #263b51; }
.tracking-timeline-top span { font-size: 12px; color: #7b8794; white-space: nowrap; }
.tracking-timeline-content p { margin: 5px 0 0; color: #4b5e72; line-height: 1.5; }
@media (max-width: 640px) {
    .admin-response-head, .tracking-timeline-top { align-items: flex-start; flex-direction: column; gap: 4px; }
}


/* Etapa 12 - encaminhamento ao responsável */
.admin-toolbar { grid-template-columns: minmax(240px, 1fr) minmax(180px, 270px) auto; align-items: center; }
.btn-batch-copy { border: 0; border-radius: 8px; padding: 11px 14px; font-weight: 700; cursor: pointer; background: #13213a; color: #fff; white-space: nowrap; }
.btn-batch-copy:hover { filter: brightness(1.08); }
@media (max-width: 850px) {
  .admin-toolbar { grid-template-columns: 1fr; }
  .btn-batch-copy { width: 100%; }
}


/* ETAPA 13 — Central por Servidor */
.server-central { margin: 20px 0 18px; padding: 18px; border: 1px solid #dbe4ee; border-radius: 14px; background: linear-gradient(180deg,#fbfdff,#f6f9fc); }
.server-central-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.server-central-head h2 { margin: 0 0 4px; color: #172b42; }
.server-central-head p { margin: 0; color: #6b7b8d; font-size: 13px; }
.server-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.server-tab { border: 1px solid #d7e0ea; border-radius: 11px; background: #fff; color: #20364d; padding: 12px 14px; cursor: pointer; text-align: left; transition: .18s ease; }
.server-tab:hover { border-color: #8eb9ef; transform: translateY(-1px); }
.server-tab.active { border-color: #0f6bdc; background: #eef6ff; box-shadow: inset 0 0 0 1px #0f6bdc; }
.server-central-head > .server-tab { min-width: 122px; text-align: center; }
.server-tab span { display: inline-block; font-weight: 900; }
.server-tab strong { float: right; font-size: 20px; color: #0f6bdc; }
.server-tab small { display: block; clear: both; margin-top: 7px; color: #718096; font-size: 11px; }
.server-summary { margin-top: 13px; display: grid; grid-template-columns: minmax(170px,1fr) minmax(120px,.55fr) auto; gap: 10px; align-items: stretch; }
.server-summary > div { padding: 10px 12px; border: 1px solid #e0e7ef; border-radius: 9px; background: #fff; }
.server-summary span { display: block; font-size: 11px; color: #7a8796; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.server-summary strong { display: block; margin-top: 2px; color: #20364d; font-size: 17px; }
.admin-toolbar { grid-template-columns: minmax(240px,1fr) minmax(180px,270px); }
@media (max-width: 900px) { .server-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); } .server-summary { grid-template-columns: 1fr 1fr; } .server-summary .btn-batch-copy { grid-column: 1/-1; } }
@media (max-width: 560px) { .server-central-head { align-items: stretch; flex-direction: column; } .server-central-head > .server-tab { width: 100%; } .server-tabs { grid-template-columns: 1fr; } .server-summary { grid-template-columns: 1fr; } .server-summary .btn-batch-copy { grid-column: auto; } }
