@import 'theme.css';

.wy-nav-top {
    padding: 1%;
    background-color: #00062b;
    max-width: none;
    height: 50px;
    background-position: 4px 4px;
    background-repeat: no-repeat;
    background-size: 23%;
    background-image: url('https://creodias.docs.cloudferro.com/en/latest/_static/POLSAlogoWHITE.png');
}

.wy-nav-top a {
    color: #ffffff;
    font-weight: 700;
}

.wy-nav-top img {
    margin-right: 12px;
    height: 45px;
    width: 45px;
    background-color: #00062b;
    padding: 5px;
    border-radius: 100%;
}
.wy-nav-top i {
    font-size: 30px;
    float: right;
    cursor: pointer;
    padding-top: inherit;
}

.wy-nav-side {
    background: #00062b
}

.wy-side-nav-search {
    background-color: #00062b;
}
.wy-side-scroll {
    background-color: #00062b;
}
.wy-nav-content {
    background-color: #00062b;
    max-width: none;
}
.wy-menu-vertical a:visited {
    color: white;
}
.wy-menu-vertical a {
    color: white;
}
.external {
    color: #ffcb2f;
}
.wy-nav-content-wrap {
    background-color: #00062b;
}
.h2 {
    color: #ffffff;
}
.section ul {
    color: #c5c8c6;
}
.wy-breadcrumbs li a:first-child {
    color: #5ea1d5;
}
.rst-content .toctree-wrapper > p.caption,
.rst-content h1, .rst-content h2, .rst-content h3, .rst-content h4, .rst-content h5, .rst-content h6 {
    color: white;
}
.wy-breadcrumbs li {
    color: #5ea1d5;
}
.rst-content .section ol li > :first-child,
.rst-content .section ul li > :first-child,
.rst-content .toctree-wrapper ol li > :first-child,
.rst-content .toctree-wrapper ul li > :first-child,
.rst-content section ol li > :first-child,
.rst-content section ul li > :first-child {
    color: white;
}
footer {
    color: #00062b;
}
a:visited {
    color: #b294bb;
}
.rst-content .section ul li,
.rst-content .toctree-wrapper ul li,
.rst-content section ul li,
.wy-plain-list-disc li,
article ul li {
    color: white;
}
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
    color: white;
}
.rst-content div[class^="highlight"] div[class^="highlight"],
.rst-content pre.literal-block div[class^="highlight"] {
    color: black;
}
.rst-content .admonition-todo p:last-child,
.rst-content .admonition p:last-child,
.rst-content .attention p:last-child,
.rst-content .caution p:last-child,
.rst-content .danger p:last-child,
.rst-content .error p:last-child,
.rst-content .hint p:last-child,
.rst-content .important p:last-child,
.rst-content .note p:last-child,
.rst-content .seealso p:last-child,
.rst-content .tip p:last-child,
.rst-content .warning p:last-child,
.wy-alert p:last-child {
    color: black;
}
.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td, .wy-table-backed, .wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td {
    background-color: #05203E;
}
html.writer-html5 .rst-content table.docutils th {
    color: white;
}

/* Hide "On GitHub" section from versions menu */
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(2),
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(3),
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(4),
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(5),
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(6),
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(7) {
    display: none;
}

.image-with-border {
    border: 2px solid #707880;
}

/* LEGACY NOTE Title Styling NSIS New */
.admonition.legacy-note .admonition-title {
    background-color: #ff4500;
    color: #ffffff;
    font-weight: bold;
    padding: 5px;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Optional: Links in LEGACY NOTE */
.admonition.legacy-note a {
    color: #81a2be;
    text-decoration: underline;
}
.admonition.legacy-note a:hover {
    color: #5f819d;
    text-decoration: none;
}

/* LEGACY NOTE Container Styling */
.admonition.legacy-note {
    background-color: #3b3f45;
    border: 1px solid #ff4500;
    border-radius: 5px;
    padding: 15px;
    color: #c5c8c6;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
}

/* Console code blocks */
.rst-content .highlight-console pre,
.rst-content .highlight-console code {
    color: #c5c8c6 !important;
    background: white !important;
    font-weight: normal !important;
    text-shadow: none !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* Disable syntax highlighting for most classes */
.rst-content .highlight-console .o,
.rst-content .highlight-console .m,
.rst-content .highlight-console .n,
.rst-content .highlight-console .s,
.rst-content .highlight-console .p,
.rst-content .highlight-console .nf,
.rst-content .highlight-console .na,
.rst-content .highlight-console .nn,
.rst-content .highlight-console .nc,
.rst-content .highlight-console .nt,
.rst-content .highlight-console .gr,
.rst-content .highlight-console .gd,
.rst-content .highlight-console .gi,
.rst-content .highlight-console .gh,
.rst-content .highlight-console .go,
.rst-content .highlight-console .gp,
.rst-content .highlight-console .gs,
.rst-content .highlight-console .gu,
.rst-content .highlight-console .gt {
    color: black !important;
    font-weight: normal !important;
}

/* Keep Python code blocks unchanged */
.rst-content .highlight-python pre {
    white-space: pre !important;
    word-break: normal !important;
    overflow-x: auto;
    color: inherit !important;
}



/* Ensure the entire note text and paragraphs inside notes are visible */
.rst-content .admonition.note p {
    color: #000000 !important; /* Force text color to black */
}

/* Apply the color and background to the whole note */
.rst-content .admonition.note {
    background-color: #f9f9f9 !important; /* Light gray background */
    color: #000000 !important; /* Set text color to black */
}

/* Modify the note title background and text color if necessary */
.rst-content .admonition.note .admonition-title {
    background-color: #003f8a !important; /* Dark blue for title background */
    color: #ffffff !important; /* White text for contrast */
}

.rst-content table.docutils thead th {
    color: #ffffff !important;
}
html.writer-html5 .rst-content table.docutils thead th,
.rst-content table.docutils thead tr th {
    color: #ffffff !important;
}
.wy-table thead th,
.wy-table thead tr th {
    color: #ffffff !important;
}

/* WARNING: black content, white title + icon */
.rst-content .admonition.warning > :not(.admonition-title) {
    color: #000000 !important;          /* black content */
}

.rst-content .admonition.warning .admonition-title,
.rst-content .admonition.warning .admonition-title::before {
    color: #ffffff !important;          /* white title + icon */
}

.admonition.warning ul,
.admonition.warning ol,
.admonition.warning li {
    color: black !important;
}

/* (optional) fallback for markup 'wy-alert' */
.wy-alert.wy-alert-warning > :not(.wy-alert-title) { color: #000000 !important; }
.wy-alert.wy-alert-warning .wy-alert-title,
.wy-alert.wy-alert-warning .wy-alert-title::before { color: #ffffff !important; }

/* tabs colors */
.sd-tab-set .sd-tab-content,
.sphinx-tabs-panel {
    color: black !important;
}

/* important - text color */
.admonition.important p {
    color: black !important;
}

/* important - heading/icon color */
.admonition.important > .admonition-title {
    color: white !important;
}

.admonition.important ul,
.admonition.important ol,
.admonition.important li {
    color: black !important;
}

/* Danger: text color */
.rst-content .admonition.danger {
    color: #000000 !important;   
}

/* Danger: title/icon color */
.rst-content .admonition.danger .admonition-title,
.rst-content .admonition.danger .admonition-title::before {
    color: #ffffff !important;   
}



/* Strong override for table headers on RTD */
.rst-content .wy-table thead tr th,
.rst-content .wy-table-responsive table thead tr th,
.rst-content table.docutils thead tr th,
html.writer-html5 .rst-content table.docutils thead tr th {
  background: #00062b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #ddd !important;
  padding: 8px !important;
  text-align: left !important;
  background-image: none !important; /* kill any theme gradient */
}

/* Some Sphinx tables don’t emit <thead>; first row th acts as header */
.rst-content .wy-table tr:first-child > th,
.rst-content table.docutils tr:first-child > th {
  background: #00062b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Make sure borders/padding match body cells */
.rst-content .wy-table td,
.rst-content .wy-table th,
.rst-content table.docutils td,
.rst-content table.docutils th {
  border: 1px solid #ddd !important;
  padding: 8px !important;
  text-align: left !important;
}

/* Keep your zebra striping */
.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,
.wy-table-striped tr:nth-child(2n-1) td {
  background-color: #05203E !important;
}

/* === RAW HTML TABLES (your .table-container) === */
.rst-content .table-container th {
  background: #00062b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
.rst-content .table-container th,
.rst-content .table-container td {
  border: 1px solid #ddd !important;
  padding: 8px !important;
  text-align: left !important;
}



.figure-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 0.3em;
}