﻿/* ==========================================================================
   registar.pt — Área de Gestão / Clientes (Layout Moderno 2026)
   ========================================================================== */

:root {
    --g-blue: #0168b3;
    --g-blue-dark: #003d6b;
    --g-blue-mid: #0a84db;
    --g-blue-soft: #eff6ff;
    --g-blue-line: #dbeafe;
    --g-slate-900: #0f172a;
    --g-slate-800: #1e293b;
    --g-slate-700: #334155;
    --g-slate-600: #475569;
    --g-slate-500: #64748b;
    --g-slate-300: #cbd5e1;
    --g-slate-200: #e2e8f0;
    --g-slate-100: #f1f5f9;
    --g-slate-50: #f8fafc;
    --g-green: #059669;
    --g-red: #dc2626;
    --g-text: #1e293b;
    --g-muted: #64748b;
    --g-white: #ffffff;
    --g-radius: 12px;
    --g-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --g-shadow: 0 4px 16px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --g-shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--g-text);
    background: var(--g-slate-100);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--g-blue); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--g-blue-dark); text-decoration: underline; }

h1 { font-size: 1.5rem; font-weight: 700; color: var(--g-slate-900); margin: 0 0 1rem; letter-spacing: -.015em; }
h2 { font-size: 1.2rem; font-weight: 700; color: var(--g-slate-900); margin: 1.25rem 0 .6rem; }
h3 { font-size: 1.05rem; font-weight: 700; color: var(--g-slate-800); margin: 1rem 0 .5rem; }
h4 { font-size: 0.9rem; font-weight: 700; color: var(--g-muted); margin: .75rem 0 .35rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Topbar ---------- */
.g-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g-slate-200);
    position: sticky;
    top: 0;
    z-index: 50;
}
.g-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: .65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.g-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--g-slate-900);
    text-decoration: none;
}
.g-brand:hover { text-decoration: none; color: var(--g-slate-900); }
.g-brand img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}
.g-brand-text {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}
.g-brand-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.01em;
    color: var(--g-slate-900);
}
.g-brand-badge {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--g-blue-soft);
    color: var(--g-blue);
    border: 1px solid var(--g-blue-line);
}
.g-brand-badge--adm {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
.g-brand-badge--com {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.g-header-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.g-user-chip {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .3rem .75rem .3rem .4rem;
    border-radius: 999px;
    background: var(--g-slate-100);
    border: 1px solid var(--g-slate-200);
    font-size: .85rem;
    font-weight: 600;
    color: var(--g-slate-700);
}
.g-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g-blue), var(--g-blue-mid));
    color: var(--g-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
}
@media (min-width: 640px) {
    .g-user-chip { display: inline-flex; }
}

.g-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--g-slate-100);
    border: 1px solid var(--g-slate-200);
    color: var(--g-slate-800);
    border-radius: 8px;
    padding: .45rem .8rem;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.g-menu-toggle:hover { background: var(--g-slate-200); }

/* ---------- App Shell (Sidebar + Main) ---------- */
.g-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    min-height: calc(100vh - 125px);
}

.g-sidebar {
    background: linear-gradient(180deg, var(--g-slate-900) 0%, #132238 100%);
    color: #e2e8f0;
    border-radius: var(--g-radius);
    box-shadow: var(--g-shadow);
    padding: 1rem .75rem;
    display: none;
}
.g-sidebar.is-open { display: block; }

.g-nav-group { margin-bottom: 1.1rem; }
.g-nav-group:last-child { margin-bottom: 0; }
.g-nav-heading {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    padding: .35rem .75rem;
    margin-bottom: .25rem;
}

.g-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.g-nav-link, a.g-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    text-align: left;
    padding: .58rem .75rem;
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    transition: background .15s, color .15s, transform .12s;
}
.g-nav-link svg, a.g-nav-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: .8;
}
.g-nav-link:hover, a.g-nav-link:hover, .g-nav-link:focus {
    background: rgba(255, 255, 255, .09);
    color: var(--g-white);
    text-decoration: none;
}
.g-nav-link.is-active, a.g-nav-link.is-active {
    background: linear-gradient(135deg, var(--g-blue), var(--g-blue-mid));
    color: var(--g-white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(1, 104, 179, .35);
}
.g-nav-link.is-active svg { opacity: 1; }

.g-nav-link--danger, a.g-nav-link--danger {
    color: #fca5a5;
    margin-top: .65rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0 0 8px 8px;
    padding-top: .75rem;
}
.g-nav-link--danger:hover, a.g-nav-link--danger:hover {
    background: rgba(220, 38, 38, .18);
    color: #fecaca;
}

.g-main {
    background: var(--g-white);
    border: 1px solid var(--g-slate-200);
    border-radius: var(--g-radius);
    box-shadow: var(--g-shadow);
    padding: 1.5rem;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.gestao-content { width: 100%; min-width: 0; }

@media (min-width: 960px) {
    .g-menu-toggle { display: none; }
    .g-shell {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 1.5rem 2.75rem;
    }
    .g-sidebar {
        display: block;
        position: sticky;
        top: 4.75rem;
    }
    .g-main { padding: 1.75rem 2rem; }
}

/* ---------- Dashboards (Páginas Iniciais Modernas) ---------- */
.g-dash-hero {
    background: linear-gradient(135deg, #0f172a 0%, #0168b3 100%);
    color: var(--g-white);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(1, 104, 179, .18);
}
.g-dash-hero h1 {
    color: var(--g-white);
    margin: 0 0 .25rem 0;
    font-size: 1.4rem;
}
.g-dash-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
}
.g-dash-date {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--g-white);
    white-space: nowrap;
}

.g-dash-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--g-muted);
    margin: 1.35rem 0 .7rem;
}

.g-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .95rem;
}

.g-tile {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.15rem 1.1rem;
    background: var(--g-slate-50);
    border: 1px solid var(--g-slate-200);
    border-radius: 11px;
    color: var(--g-slate-900);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.g-tile:hover, .g-tile:focus {
    transform: translateY(-2px);
    background: var(--g-white);
    border-color: var(--g-blue);
    box-shadow: 0 8px 20px rgba(1, 104, 179, .11);
    text-decoration: none;
    color: var(--g-blue-dark);
}
.g-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--g-blue-soft);
    color: var(--g-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.g-tile-icon svg { width: 21px; height: 21px; }
.g-tile:hover .g-tile-icon {
    background: var(--g-blue);
    color: var(--g-white);
}
.g-tile--accent .g-tile-icon { background: #ecfdf5; color: var(--g-green); }
.g-tile--accent:hover .g-tile-icon { background: var(--g-green); color: var(--g-white); }
.g-tile--warn .g-tile-icon { background: #fef3c7; color: #b45309; }
.g-tile--warn:hover .g-tile-icon { background: #d97706; color: var(--g-white); }
.g-tile--switch { background: linear-gradient(135deg, #f8fafc, #eff6ff); border-style: dashed; }

.g-tile-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--g-slate-900);
}
.g-tile-desc {
    font-size: .8rem;
    color: var(--g-muted);
    line-height: 1.38;
}

.g-dash-meta {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--g-slate-200);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    font-size: .8rem;
    color: var(--g-muted);
}

/* ---------- Rodapé ---------- */
.g-footer {
    background: var(--g-slate-900);
    color: #94a3b8;
    text-align: center;
    padding: 1.15rem 1rem;
    font-size: .84rem;
    border-top: 1px solid var(--g-slate-800);
}
.g-footer a { color: #e2e8f0; font-weight: 600; }
.g-footer a:hover { color: var(--g-white); }

/* ---------- Botão Flutuante de Apoio ---------- */
.contact-fab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: block;
    line-height: 0;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .25);
}
.contact-fab img { display: block; width: 41px; height: auto; }

/* ---------- Páginas de Autenticação / Recuperação / Manutenção ---------- */
.g-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(1, 104, 179, .14), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(15, 23, 42, .12), transparent 45%),
        var(--g-slate-100);
}
.g-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--g-white);
    border-radius: 16px;
    box-shadow: var(--g-shadow-lg);
    border: 1px solid var(--g-slate-200);
    border-top: 5px solid var(--g-blue);
    padding: 2.25rem 2rem;
}
.g-auth-logo { text-align: center; margin-bottom: 1.25rem; }
.g-auth-logo img { max-height: 68px; width: auto; }
.g-auth-title { text-align: center; font-size: 1.35rem; margin: 0 0 .35rem; color: var(--g-slate-900); }
.g-auth-sub { text-align: center; color: var(--g-muted); font-size: .9rem; margin: 0 0 1.5rem; }
.g-field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.g-field label { font-weight: 600; font-size: .88rem; color: var(--g-slate-700); }
.g-captcha-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.g-captcha-row img { border: 1px solid var(--g-slate-200); border-radius: 8px; }
.g-auth-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--g-slate-200);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    text-align: center;
    font-size: .88rem;
}
.g-alert-error { display: block; color: var(--g-red); font-weight: 600; margin-top: .75rem; font-size: .88rem; }
.g-security-note { margin-top: 1.25rem; font-size: .78rem; color: var(--g-muted); text-align: center; line-height: 1.45; }

/* ---------- Modernização Automática de Controlos e Tabelas ASP.NET ---------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    font: inherit;
    font-size: .9rem;
    color: var(--g-text);
    background: var(--g-white);
    border: 1px solid var(--g-slate-300);
    border-radius: 8px;
    padding: .46rem .72rem;
    max-width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:disabled,
input[type="password"]:disabled,
select:disabled,
textarea:disabled {
    background: var(--g-slate-100);
    color: var(--g-slate-500);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: var(--g-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 104, 179, .16);
}

input[type="submit"],
input[type="button"],
button.g-btn,
.g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    padding: .52rem 1.15rem;
    border-radius: 8px;
    border: 1px solid var(--g-blue);
    background: var(--g-blue);
    color: var(--g-white);
    transition: background .15s, border-color .15s, box-shadow .15s;
}
input[type="submit"]:hover,
input[type="button"]:hover,
.g-btn:hover {
    background: var(--g-blue-dark);
    border-color: var(--g-blue-dark);
    color: var(--g-white);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(1, 104, 179, .22);
}
.g-btn--block { width: 100%; text-align: center; }

/* Compatibilidade com markup legado */
font { font-family: inherit; font-size: .92rem; }
font.azul { color: var(--g-slate-800); }
label.erro { color: var(--g-red); font-weight: 700; }

/* Tabelas, GridView e DetailsView modernos (substitui estilos legados #5D7B9D / #284775) */
.g-main table {
    border-collapse: collapse;
    max-width: 100%;
}
.g-main table[id*="GV_"],
.g-main table[id*="GridView"],
.g-main table[id*="DV_"],
.g-main table[id*="DetailsView"] {
    width: 100% !important;
    border: 1px solid var(--g-slate-200) !important;
    border-radius: 10px;
    overflow: hidden;
    background: var(--g-white) !important;
    margin: .75rem 0 1rem;
    font-size: .875rem;
}
.g-main table[id*="GV_"] th,
.g-main table[id*="GridView"] th {
    background: var(--g-slate-800) !important;
    color: var(--g-white) !important;
    font-weight: 600 !important;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .7rem .75rem !important;
    border-bottom: 1px solid var(--g-slate-700) !important;
    text-align: left;
}
.g-main table[id*="GV_"] th a,
.g-main table[id*="GridView"] th a {
    color: var(--g-white) !important;
}
.g-main table[id*="GV_"] td,
.g-main table[id*="GridView"] td,
.g-main table[id*="DV_"] td,
.g-main table[id*="DetailsView"] td {
    padding: .6rem .75rem !important;
    border-bottom: 1px solid var(--g-slate-200) !important;
    color: var(--g-text) !important;
    vertical-align: middle;
}
.g-main table[id*="GV_"] tr:nth-child(even) td,
.g-main table[id*="GridView"] tr:nth-child(even) td {
    background: var(--g-slate-50) !important;
}
.g-main table[id*="GV_"] tr:hover td,
.g-main table[id*="GridView"] tr:hover td {
    background: var(--g-blue-soft) !important;
}
.g-main table[id*="DV_"] td:first-child,
.g-main table[id*="DetailsView"] td:first-child {
    background: var(--g-slate-50) !important;
    color: var(--g-slate-700) !important;
    font-weight: 600;
    width: 220px;
    border-right: 1px solid var(--g-slate-200) !important;
}

.g-main table th {
    background: var(--g-slate-100);
    color: var(--g-slate-800);
    font-weight: 700;
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--g-slate-200);
    text-align: left;
}
.g-main table td {
    padding: .45rem .6rem;
    vertical-align: middle;
}

table.form1 { width: 100%; margin: .5rem 0; border: 1px solid var(--g-slate-200); border-radius: 10px; overflow: hidden; }
td.h1, td.h2 {
    padding: .7rem .95rem;
    color: var(--g-white);
    font-weight: 700;
    background-color: var(--g-slate-800);
    vertical-align: middle;
}
td.h2 { text-align: center; }
td.c1, td.c2, td.c3, td.c4, td.c5 {
    padding: .65rem .9rem;
    color: var(--g-text);
    vertical-align: middle;
    background-color: var(--g-slate-50);
    border-bottom: 1px solid var(--g-slate-200);
}
td.c2, td.c4 { text-align: center; }
td.c3, td.c5 { text-align: justify; }
td.b1, td.b2, td.b3, td.b4, td.b5 {
    padding: .65rem .9rem;
    color: var(--g-slate-800);
    vertical-align: middle;
    border-bottom: 1px solid var(--g-slate-200);
}
td.b2, td.b4 { text-align: center; }
td.b3, td.b5 { text-align: justify; }
img.link { width: 100px; }

#caixa_contacte-nos { display: none; }

/* ---------- Cabeçalhos Modernos de Página (substitui img/titulos/*.gif) ---------- */
.g-page-header {
    display: flex;
    align-items: center;
    gap: .95rem;
    padding: 0 0 1.05rem 0;
    margin: 0 0 1.35rem 0;
    border-bottom: 1px solid var(--g-slate-200);
}
.g-page-header-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--g-blue), var(--g-blue-mid));
    color: var(--g-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(1, 104, 179, .24);
}
.g-page-header-icon svg {
    width: 23px;
    height: 23px;
}
.g-page-header-text h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--g-slate-900);
    line-height: 1.25;
}
.g-page-header-text p {
    margin: .18rem 0 0 0;
    font-size: .875rem;
    color: var(--g-muted);
    font-weight: 400;
}

/* ---------- Botões Modernos (substitui input[type="image"] img/botoes/*.gif) ---------- */
.g-orig-imgbtn {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
img[src*="botaobranco.gif"] {
    display: none !important;
}
.g-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
.g-btn--primary {
    background: var(--g-blue);
    border-color: var(--g-blue);
    color: var(--g-white);
}
.g-btn--primary:hover {
    background: var(--g-blue-dark);
    border-color: var(--g-blue-dark);
}
.g-btn--secondary {
    background: var(--g-white);
    border-color: var(--g-slate-300);
    color: var(--g-slate-700);
}
.g-btn--secondary:hover {
    background: var(--g-slate-100);
    border-color: var(--g-slate-400, #94a3b8);
    color: var(--g-slate-900);
    box-shadow: none;
}
.g-btn--success {
    background: var(--g-green);
    border-color: var(--g-green);
    color: var(--g-white);
}
.g-btn--success:hover {
    background: #047857;
    border-color: #047857;
}
.g-btn--danger {
    background: var(--g-red);
    border-color: var(--g-red);
    color: var(--g-white);
}
.g-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
.g-btn--wide {
    width: 100%;
    justify-content: flex-start;
    padding: .72rem 1rem;
    margin-bottom: .5rem;
}
button.g-tile-btn {
    width: 100%;
    min-width: 180px;
    max-width: 260px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    margin: .35rem;
}

/* ---------- Gestão de Domínios (cli_gestao_dominios.aspx) ---------- */
.g-dom-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .g-dom-layout {
        grid-template-columns: minmax(280px, .9fr) minmax(400px, 1.35fr);
    }
}
.g-dom-card {
    background: var(--g-slate-50);
    border: 1px solid var(--g-slate-200);
    border-radius: 12px;
    padding: 1.35rem 1.45rem;
}
.g-panel-title {
    margin: 0 0 .95rem 0;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--g-slate-200);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--g-slate-900);
}
.g-panel-sub {
    margin: 0 0 .9rem 0;
    font-size: .88rem;
    color: var(--g-muted);
}
.g-dom-options {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.g-dom-form {
    display: grid;
    gap: .85rem;
}
.g-dom-form--ns {
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
    .g-dom-form--ns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.g-dom-row {
    display: grid;
    gap: .3rem;
}
.g-dom-row--2col {
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
}
@media (min-width: 640px) {
    .g-dom-row--2col {
        grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
    }
}
.g-dom-row--2col > div {
    display: grid;
    gap: .3rem;
}
.g-dom-row label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--g-slate-700);
}
.g-dom-row input[type="text"] {
    width: 100%;
}
.g-dom-warn {
    margin-top: 1rem;
    padding: .75rem .95rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: .84rem;
    color: #92400e;
}
.g-dom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.15rem;
    padding-top: .95rem;
    border-top: 1px solid var(--g-slate-200);
}
.g-dom-notice {
    margin-top: 1.35rem;
    padding: 1rem 1.2rem;
    background: var(--g-blue-soft);
    border: 1px solid var(--g-blue-line);
    border-radius: 10px;
    font-size: .88rem;
    color: var(--g-slate-700);
    line-height: 1.55;
}
.g-dom-notice p {
    margin: 0 0 .45rem 0;
}
.g-dom-notice p:last-child {
    margin-bottom: 0;
}

/* Paginação limpa e legível para todas as GridViews */
.g-main table[id*="GV_"] tr > td > table,
.g-main table[id*="GridView"] tr > td > table {
    width: auto !important;
    margin: .25rem auto !important;
    border: 0 !important;
    background: transparent !important;
}
.g-main table[id*="GV_"] tr > td > table td,
.g-main table[id*="GridView"] tr > td > table td {
    background: transparent !important;
    border: 0 !important;
    padding: .15rem .2rem !important;
}
.g-main table[id*="GV_"] tr > td > table a,
.g-main table[id*="GridView"] tr > td > table a {
    display: inline-block;
    min-width: 28px;
    padding: .25rem .55rem;
    border-radius: 6px;
    color: #334155 !important;
    font-weight: 400 !important;
    text-decoration: none;
    background: transparent;
}
.g-main table[id*="GV_"] tr > td > table a:hover,
.g-main table[id*="GridView"] tr > td > table a:hover {
    background: var(--g-slate-200) !important;
    color: var(--g-slate-900) !important;
    text-decoration: none;
}
.g-main table[id*="GV_"] tr > td > table span,
.g-main table[id*="GridView"] tr > td > table span {
    display: inline-block;
    min-width: 28px;
    padding: .25rem .55rem;
    border-radius: 6px;
    color: #003d6b !important;
    font-weight: 700 !important;
    background: var(--g-blue-soft) !important;
    border: 1px solid var(--g-blue-line);
}

/* Linha selecionada de alto contraste para todas as GridViews */
.g-main table[id*="GV_"] tr.g-row-selected td,
.g-main table[id*="GridView"] tr.g-row-selected td,
.g-main table[id*="GV_"] tr.g-row-selected:hover td,
.g-main table[id*="GridView"] tr.g-row-selected:hover td {
    background: #dbeafe !important;
    color: #003d6b !important;
    font-weight: 700 !important;
    border-bottom-color: #93c5fd !important;
}
.g-main table[id*="GV_"] tr.g-row-selected td:first-child,
.g-main table[id*="GridView"] tr.g-row-selected td:first-child {
    box-shadow: inset 4px 0 0 #0168b3;
}
.g-main table[id*="GV_"] tr.g-row-selected a,
.g-main table[id*="GridView"] tr.g-row-selected a {
    color: #003d6b !important;
    font-weight: 700 !important;
}
.g-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none !important;
}
