/*
    AxonASP Standard Stylesheet
    Copyright (C) 2026 G3pix Ltda. All rights reserved.
*/

:root {
    --win-blue-dark: #003399;
    --win-blue-light: #3366cc;
    --win-blue-soft: #c7d7f8;
    --win-bg: #ece9d8;
    --win-panel: #ffffff;
    --win-panel-alt: #f7f8fb;
    --win-border: #808080;
    --win-text: #0f0f0f;
    --win-muted: #404040;
    --win-link: #003399;
    --win-link-hover: #335ea8;
    --win-gold: #ffd700;
    --win-gold-dark: #c8a200;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 4px 16px rgba(0, 51, 153, 0.10), 0 2px 6px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 8px 28px rgba(0, 51, 153, 0.18), 0 4px 14px rgba(0, 0, 0, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

label {
    margin-left: 2px;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Tahoma, Verdana, Arial, "Segoe UI", sans-serif;
    color: var(--win-text);
    line-height: 1.5;
    font-size: 12px;
    margin-bottom: 24px;
    background-color: var(--win-bg);
    background-image:
        radial-gradient(ellipse at 10% 15%, rgba(51, 102, 204, 0.12), transparent 38%),
        radial-gradient(ellipse at 88% 8%, rgba(0, 51, 153, 0.09), transparent 32%),
        radial-gradient(ellipse at 50% 90%, rgba(0, 33, 102, 0.07), transparent 40%),
        linear-gradient(180deg, #f2efe4 0%, #ece9d8 40%, #e4e0cc 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

a {
    color: var(--win-link);
    text-decoration: underline;
}

a:hover {
    color: var(--win-link-hover);
    text-decoration: none;
}

#header {
    background: linear-gradient(90deg, var(--win-blue-dark) 0%, #1f56bc 42%, var(--win-blue-light) 100%);
    color: #fff;
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--win-blue-light);
    z-index: 100;
}

#header h1 {
    font-family: Tahoma, Verdana, serif;
    font-style: normal;
    font-size: 24px;
    margin: 0 0 0 10px;
    font-weight: normal;
    color: #fff !important;
    border-bottom: none !important;
    padding-bottom: 0;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

#main-container {
    display: flex;
    min-height: calc(100vh - 84px);
}

#status-bar {
    height: 22px;
    background-color: var(--win-bg);
    border-top: 1px solid #aca899;
    font-size: 11px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    color: #000;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#sidebar {
    width: 280px;
    background: linear-gradient(180deg, #eceae0 0%, #e2e0d6 100%);
    border-right: 1px solid var(--win-border);
    padding: 15px;
    flex-shrink: 0;
}

#sidebar .section-title {
    padding: 5px 0;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #1a3470;
    border-bottom: 2px solid var(--win-blue-light);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
}

#sidebar .section-title:first-child {
    margin-top: 0;
}

#sidebar ul {
    margin: 0;
    padding: 0 0 0 10px;
}

#sidebar li {
    margin: 4px 0;
}

#sidebar a {
    color: #111;
    text-decoration: none;
    display: block;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

#sidebar a:hover {
    background: rgba(51, 94, 168, 0.12);
    color: var(--win-blue-dark);
}

#sidebar a.active,
#sidebar a.selected-node {
    background: var(--win-blue-dark);
    color: #fff !important;
}

#content {
    flex: 1;
    background-color: #fff;
    overflow-y: auto;
    padding: 22px 30px 44px;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.row.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.row.no-gutters>[class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .col-sm-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 1200px) {
    .col-xl-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
}

@media (min-width: 1400px) {
    .col-xxl-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.treeview,
.treeview ul {
    list-style-type: none;
    padding-left: 18px;
    margin: 2px 0;
    font-size: 11px;
}

.treeview {
    padding-left: 10px;
}

.treeview li {
    margin: 0 -14px;
    white-space: nowrap;
    position: relative;
}

.treeview li.folder>.folder-toggle {
    cursor: pointer;
    display: inline-block;
    padding: 1px 4px;
    color: #000;
}

.treeview li.folder>.folder-toggle::before {
    content: "+";
    display: inline-block;
    width: 9px;
    height: 9px;
    border: 1px solid #808080;
    line-height: 7px;
    text-align: center;
    margin-right: 5px;
    background: #fff;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 10px;
    vertical-align: middle;
}

.treeview li.folder.expanded>.folder-toggle::before {
    content: "-";
}

.treeview li.folder>ul.submenu {
    display: none;
    padding-left: 15px;
    border-left: 1px dotted #aca899;
    margin-left: 5px;
}

.treeview li.folder.expanded>ul.submenu {
    display: block;
}

.treeview li.file {
    padding-left: 16px;
    position: relative;
}

.treeview li.file::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 15px;
    border-top: 1px dotted #aca899;
}

.treeview a {
    color: #000;
    text-decoration: none;
    padding: 1px 4px;
    display: inline-block;
    border-radius: 3px;
}

.treeview .selected-node,
.treeview a.selected-node {
    background-color: var(--win-blue-dark) !important;
    color: #fff !important;
    text-decoration: none;
}

.treeview a:hover:not(.selected-node) {
    color: var(--win-blue-dark);
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    color: var(--win-blue-dark);
    margin-top: 0;
}

h1 {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 700;
    border-bottom: 3px solid var(--win-blue-light);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    margin-top: 22px;
    margin-bottom: 10px;
    border-bottom: 1px solid #c0c8d8;
    padding-bottom: 4px;
}

h3 {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: #0e2f78;
    margin: 14px 0 7px;
}

p {
    margin-bottom: 12px;
}

blockquote {
    margin: 14px 0;
    padding: 8px 14px;
    background: linear-gradient(135deg, #eaf0fc 0%, #dce9ff 100%);
    border: 1px solid #8fa8d4;
    border-left: 4px solid var(--win-blue-dark);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #001a4d;
}

code {
    font-family: "Courier New", Courier, monospace;
    background: rgba(0, 51, 153, 0.07);
    border: 1px solid rgba(0, 51, 153, 0.14);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 11px;
}

pre {
    font-family: "Courier New", Courier, monospace;
    background: #f0f3f8;
    color: #000;
    border: 1px solid var(--win-border);
    border-left: 4px solid var(--win-blue-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 14px;
    margin: 14px 0;
    overflow-x: auto;
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.6;
}

.section-note {
    margin: 0 0 16px;
    color: var(--win-muted);
    font-size: 0.95rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--win-border);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.card>.table-wrap:only-child {
    border: none;
    border-radius: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    border: 1px solid var(--win-border);
    min-width: 400px;
}

*:not(.table-wrap)>table {
    margin: 14px 0;
}

table th {
    background: linear-gradient(180deg, #1c47a8 0%, var(--win-blue-dark) 100%);
    border: 1px solid var(--win-border);
    padding: 8px 10px;
    text-align: left;
    font-weight: bold;
    color: #fff;
}

table td {
    border: 1px solid #aca899;
    padding: 7px 10px;
    vertical-align: top;
    font-size: 12px;
}

table tr:nth-child(even) {
    background-color: #f4f6fa;
}

table tr:hover td {
    background-color: #edf3ff;
    color: #0a1f55;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--win-border);
    border-radius: var(--radius-sm);
    background-color: #fff;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--win-blue-light);
    box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.18);
}

.btn,
button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, #e8e4d8 0%, #cec9bc 100%);
    border: 1px solid #7a7a7a;
    border-radius: var(--radius-sm);
    color: #111;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
    transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    font-family: Tahoma, Verdana, Arial, sans-serif;
}

.btn:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    text-decoration: none;
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}

.btn:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active {
    filter: brightness(0.95);
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(180deg, #1a4db8 0%, var(--win-blue-dark) 55%, #001f59 100%);
    color: #fff !important;
    border-color: #001f59;
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.28);
}

.btn-secondary {
    background: linear-gradient(180deg, #eeece4 0%, #d4cfbf 100%);
    color: #000;
    border-color: var(--win-border);
}

.btn-success {
    background: linear-gradient(180deg, #2da62d 0%, #008000 100%);
    color: #fff;
    border-color: #004d00;
}

.btn-danger {
    background: linear-gradient(180deg, #e83030 0%, #cc0000 100%);
    color: #fff;
    border-color: #800000;
}

.btn-info {
    background: linear-gradient(180deg, #4d7fd4 0%, var(--win-blue-light) 100%);
    color: #fff;
    border-color: var(--win-blue-dark);
}

.btn-download {
    background: linear-gradient(180deg, #ffe84a 0%, var(--win-gold) 55%, #c8a200 100%);
    color: #1a1000;
    border-color: var(--win-gold-dark);
    box-shadow: 0 2px 8px rgba(200, 162, 0, 0.28);
}

.btn-download:hover {
    color: #000;
    box-shadow: 0 4px 18px rgba(200, 162, 0, 0.50);
}

.badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: var(--win-border);
    border-radius: var(--radius-sm);
}

.badge-primary {
    background-color: var(--win-blue-dark);
}

.badge-success {
    background-color: #008000;
}

.badge-danger {
    background-color: #cc0000;
}

.badge-warning {
    background-color: #ffcc00;
    color: #000;
}

.badge-info {
    background-color: var(--win-blue-light);
}

.status-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #00cc00;
    border: 1px solid #008000;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.pill {
    display: inline-block;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: bold;
    color: #1a327a;
    background: linear-gradient(135deg, #eaf0fc 0%, #d4e3ff 100%);
    border: 1px solid #8fa8d4;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0, 51, 153, 0.10);
}

.pill-primary {
    background: linear-gradient(135deg, #2255bb 0%, var(--win-blue-dark) 100%);
    color: #fff;
    border-color: #001f59;
}

.pill-success {
    background: linear-gradient(135deg, #2ea62e 0%, #006600 100%);
    color: #fff;
    border-color: #004400;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
}

.alert {
    padding: 10px 14px;
    margin: 14px 0;
    border: 1px solid var(--win-border);
    border-left: 4px solid var(--win-border);
    border-radius: var(--radius-sm);
    background-color: #f8f8f8;
}

.alert-info {
    background: linear-gradient(135deg, #fffde8 0%, #fff9d0 100%);
    border-color: #c0ab00;
    border-left-color: var(--win-gold-dark);
    color: #2b2200;
}

.alert-error {
    background: linear-gradient(135deg, #fff4f4 0%, #ffe8e8 100%);
    border-color: #cc0000;
    border-left-color: #aa0000;
    color: #800000;
}

.alert-success {
    background: linear-gradient(135deg, #f4fff4 0%, #e0f5e0 100%);
    border-color: #008000;
    border-left-color: #005500;
    color: #004000;
}

.status-v {
    color: #008000;
    font-weight: bold;
    text-align: center;
}

.status-x {
    color: #ff0000;
    font-weight: bold;
    text-align: center;
}

.status-p {
    color: #d2691e;
    font-weight: bold;
    text-align: center;
}

.card {
    background: var(--win-panel);
    border: 1px solid #c0c8d8;
    border-top: 4px solid var(--win-blue-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.card h3 {
    margin-top: 0;
    color: #0e2f78;
}

.card-top-blue {
    background: linear-gradient(175deg, #ffffff 0%, #f3f7ff 100%);
}

.info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #fffde2 0%, #fff6a8 60%, #ffef80 100%);
    border: 1px solid #c0ab00;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #2b2200;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(192, 162, 0, 0.16);
}

.cta-panel {
    border: 1px solid #8fa8d4;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #eef4ff 0%, #dce9ff 60%, #c6d7ff 100%);
    padding: 28px 24px;
    margin-top: 26px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.cta-panel h3 {
    margin-bottom: 10px;
}

.cta-panel p {
    margin-bottom: 18px;
    color: var(--win-muted);
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.window {
    border: 1px solid #8fa8d4;
    border-radius: var(--radius-md);
    background-color: var(--win-bg);
    box-shadow: 0 6px 24px rgba(0, 51, 153, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.window-header {
    background: linear-gradient(90deg, var(--win-blue-dark) 0%, var(--win-blue-light) 100%);
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.window-body {
    padding: 15px;
    background-color: var(--win-bg);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }

    #sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--win-border);
        height: auto;
        overflow: clip;
    }

    #content {
        padding: 15px 15px 30px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .actions-row {
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}