/* ------------------------------------------------------------------ */
/* LGPD plugin - estilos                                              */
/* ------------------------------------------------------------------ */

/* Área de conteúdo (dentro do #layout-content padrão do Elastic) */

.lgpd-page .header {
    padding: 12px 16px;
    border-bottom: 1px solid #edeef2;
}

.lgpd-page .header-title {
    font-size: 15px;
    font-weight: 600;
}

.lgpd-scroller {
    padding: 16px 20px 40px;
    max-width: 760px;
}

.lgpd-admin-page .lgpd-scroller {
    max-width: 100%;
}

.lgpd-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lgpd-doc-list li {
    border-bottom: 1px solid #edeef2;
}

.lgpd-doc-list li:last-child {
    border-bottom: none;
}

.lgpd-doc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 4px;
    font-size: 14px;
    color: #2a2f45;
    cursor: pointer;
}

.lgpd-doc-link:hover {
    color: #1a73c7;
}

.lgpd-doc-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .65;
}

.lgpd-doc-desc {
    display: block;
    font-size: 12px;
    color: #8a8f9c;
    margin-top: 2px;
}

.lgpd-empty, .lgpd-loading {
    color: #8a8f9c;
    font-size: 13px;
}

/* Admin */

.lgpd-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

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

.lgpd-admin-table th {
    text-align: left;
    font-weight: 600;
    color: #8a8f9c;
    border-bottom: 2px solid #edeef2;
    padding: 8px 6px;
}

.lgpd-admin-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #edeef2;
}

.lgpd-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #cfd3da;
    background: #fff;
    color: #2a2f45;
    font-size: 13px;
    cursor: pointer;
}

.lgpd-btn:hover {
    background: #f3f4f6;
}

.lgpd-btn-primary {
    background: #1a73c7;
    border-color: #1a73c7;
    color: #fff;
}

.lgpd-btn-primary:hover {
    background: #155ea1;
}

.lgpd-btn-small {
    padding: 4px 10px;
    font-size: 12px;
    margin-right: 4px;
}

.lgpd-btn-danger {
    color: #b3261e;
    border-color: #e6b8b5;
}

.lgpd-btn-danger:hover {
    background: #fbeceb;
}

/* Modal */

.lgpd-modal {
    position: fixed;
    inset: 0;
    background: rgba(20,22,30,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.lgpd-modal-dialog {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.lgpd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #edeef2;
}

.lgpd-modal-header h3 {
    margin: 0;
    font-size: 15px;
}

.lgpd-modal-close {
    background: none;
    border: none;
    color: #8a8f9c;
    cursor: pointer;
    font-size: 13px;
}

.lgpd-modal-close:hover {
    color: #2a2f45;
}

.lgpd-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.lgpd-modal-text {
    font-size: 13px;
    color: #4a4f5e;
    white-space: pre-wrap;
    margin-bottom: 12px;
}

.lgpd-modal-text:empty {
    display: none;
    margin: 0;
}

.lgpd-modal-pdf {
    width: 100%;
    height: 60vh;
    border: 1px solid #edeef2;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Formulário admin */

#lgpd-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a4f5e;
    margin: 12px 0 4px;
}

#lgpd-form input[type="text"],
#lgpd-form input[type="number"],
#lgpd-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cfd3da;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.lgpd-checkbox {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.lgpd-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.lgpd-form-error {
    color: #b3261e;
    font-size: 12px;
    margin-top: 10px;
}

/* Botão da taskbar (ícone simples em forma de escudo) */

#taskmenu .button-lgpd .inner,
.lgpd.button-lgpd .inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-lgpd::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.5 9-8 11-4.5-2-8-6-8-11V5l8-3z'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.5 9-8 11-4.5-2-8-6-8-11V5l8-3z'/></svg>") no-repeat center / contain;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .lgpd-scroller { padding: 0 12px 40px; }
    .lgpd-modal-pdf { height: 45vh; }
}
