/* === Body & Background === */
body {
    background-color: #f8f7f0;
    font-family: "Courier New", Courier, monospace;
    margin: 0;
    padding: 0;
    color: #000;
}

/* === Watermark Seal === */
body::after {
    content: "";
    background: url('seal_watermark.png') no-repeat center center;
    opacity: 0.05;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* === Top Banner / Seals === */
#banner {
    background-color: #2b3e50;
    color: #fff;
    padding: 15px 10px;
    text-align: center;
    border-bottom: 4px solid #000;
    position: relative;
}

#banner img.seal {
    position: absolute;
    top: 10px;
    width: 80px;
}
#banner img.seal.left { left: 10px; }
#banner img.seal.right { right: 10px; }

#banner h1 {
    margin: 0;
    font-size: 28px;
    text-transform: uppercase;
}

/* === Sidebar (Folder-style) === */
#sidebar {
    float: left;
    width: 220px;
    background-color: #d6d6d6;
    border: 2px solid #2b3e50;
    padding: 15px;
    box-sizing: border-box;
    height: 100vh;
}

.folder {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 6px 10px;
    border: 1px solid #a0a0a0;
    background-color: #e5e0d0;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #a0a0a0;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 15px;
}

.folder:hover {
    background-color: #d0c8b0;
}

.folder img {
    width: 20px;
    margin-right: 8px;
}

/* === Main Content === */
#main {
    margin-left: 240px;
    padding: 20px;
}

/* === Document Container === */
#container {
    background-color: #fffdf5;
    border: 2px solid #2b3e50;
    padding: 20px;
}

/* === Tables / Ledgers === */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Courier New", Courier, monospace;
    margin-top: 10px;
}
th, td {
    border: 1px solid #2b3e50;
    padding: 6px;
    text-align: left;
}
tr:nth-child(even) {
    background-color: #f5f4f0;
}

/* === Headers === */
h1, h2 {
    text-align: center;
    font-size: 26px;
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 2px solid #2b3e50;
    padding-bottom: 5px;
}
hr {
    border: 1px solid #2b3e50;
    margin: 15px 0;
}

/* === Footer / Page Reference === */
#footer {
    text-align: right;
    font-size: 12px;
    margin-top: 15px;
    color: #555;
}

/* === Leadership Section === */
#leadership {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #2b3e50;
    background-color: #fffdf5;
}

#leadership h2 {
    text-align: center;
    font-size: 24px;
    text-transform: uppercase;
    border-bottom: 2px solid #2b3e50;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.leader {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.leader img {
    width: 100px;
    height: auto;
    border: 2px solid #2b3e50;
    margin-right: 15px;
}

.leader-info {
    font-family: "Courier New", Courier, monospace;
}

.leader-info p {
    margin: 4px 0;
}

/* === Structural Diagram === */
#structure {
    margin-top: 40px;
    text-align: center;
}

#structure img {
    width: 70%;
    max-width: 700px;
    border: 2px solid #2b3e50;
}

/* === Quotation Banner === */
#quote-banner {
    background-color: #f0ece3;
    border: 2px solid #2b3e50;
    padding: 20px 30px;
    margin: 20px auto;
    width: 90%;
    font-family: "Courier New", Courier, monospace;
    font-style: italic;
    text-align: center;
    font-size: 16px;
    position: relative;
}

#quote-banner::before,
#quote-banner::after {
    content: '"';
    font-size: 28px;
    vertical-align: top;
    color: #2b3e50;
}

/* === Application Status Box === */
#app-status {
    background-color: #e5e0d0;
    border: 2px solid #2b3e50;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    color: #2b3e50;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #a0a0a0;
    font-size: 16px;
}
#stats-panel {
    margin-top: 25px;
    padding: 15px;
    border: 2px solid #2b3e50;
    background-color: #fffdf5;
    font-family: "Courier New", Courier, monospace;
}

#stats-panel h2 {
    margin-top: 0;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ccc;
    padding: 4px 0;
    font-size: 14px;
}

.stat-row:first-of-type {
    border-top: none;
}

.stat-label {
    text-transform: uppercase;
}

.stat-value {
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

#stats-updated-note {
    margin-top: 10px;
    font-size: 11px;
    color: #555;
    text-align: right;
}


/* ====== RG CODE OF JUSTICE PANEL ====== */

#cmj-panel {
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 2px solid #2b3e50;
    background-color: #fffdf5;
    font-family: "Courier New", Courier, monospace;
    position: relative;
}

#cmj-ribbon {
    position: absolute;
    top: -12px;
    left: 10px;
    background: #2b3e50;
    color: #fdfdfd;
    padding: 2px 10px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#cmj-title {
    text-align: center;
    letter-spacing: 2px;
    margin-top: 5px;
    margin-bottom: 8px;
    font-size: 16px;
}

.cmj-intro {
    font-size: 12px;
    color: #444;
    margin-bottom: 10px;
}

.cmj-article {
    border: 1px solid #2b3e50;
    margin-bottom: 8px;
    background:#f2efe4;
}

.cmj-article-header {
    width: 100%;
    border: none;
    background: #2b3e50;
    color: #fdfdfd;
    padding: 5px 8px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cmj-article-header:hover {
    background:#384c62;
}

.cmj-article-num {
    font-weight:bold;
    margin-right: 8px;
}

.cmj-article-name {
    flex:1;
}

.cmj-chevron {
    font-size:10px;
}

.cmj-article-body {
    padding: 8px 10px;
    background:#fffdf5;
    font-size: 12px;
}

.cmj-article-body h4 {
    margin: 6px 0 2px 0;
    font-size: 12px;
    text-transform: uppercase;
}

.cmj-article-body p {
    margin: 2px 0 4px 0;
}

.cmj-article-body ul {
    margin: 2px 0 6px 15px;
    padding:0;
}

.cmj-article-body li {
    margin-bottom:3px;
}

/* collapsed state */
.cmj-article.collapsed .cmj-article-body {
    display:none;
}
.cmj-article.collapsed .cmj-chevron {
    transform:rotate(-90deg);
}

#venue-alert {
    margin: 12px auto;
    padding: 10px 14px;
    border: 2px solid #2b3e50;
    background: #fff6d6;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    color: #000;
    max-width: 780px;
    text-align: center;
    box-shadow: 2px 2px 0 #2b3e50;
}

#venue-alert strong {
    letter-spacing: 1px;
}

#venue-alert a {
    color: #000080;
    text-decoration: underline;
    font-weight: bold;
}

#venue-alert-controls {
    margin-top: 6px;
}

#venue-alert-controls button {
    padding: 3px 10px;
    border: 1px solid #2b3e50;
    background: #e5e0d0;
    font-family: inherit;
    cursor: pointer;
}

#venue-alert-controls button:hover {
    background: #d0c8b0;
}
/* ===== HR / DOSSIER PANEL ===== */

#dossier-panel {
    margin-top: 25px;
    padding: 14px 16px;
    border: 2px solid #2b3e50;
    background-color: #fffdf5;
    font-family: "Courier New", Courier, monospace;
}

.dossier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dossier-header .panel-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    color: #2b3e50;
}

#dossier-select {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    padding: 3px 4px;
    border: 1px solid #2b3e50;
    background-color: #e5e0d0;
}

#dossier-body {
    border-top: 1px dashed #aaa;
    padding-top: 8px;
    font-size: 12px;
}

.dossier-placeholder {
    color: #777;
    font-style: italic;
}

/* ===== DATA LOG – PRINTER / TELETYPE PAPER ===== */

#log-panel {
    margin-top: 30px;
}

#log-paper {
    position: relative;
    margin: 0 auto;
    max-width: 780px;
    background: #fdfaf0;
    border: 2px solid #2b3e50;
    padding: 16px 18px 18px 18px;
    box-shadow: 2px 2px 0 #2b3e50;
    font-family: "Courier New", Courier, monospace;
    overflow: hidden;
}

/* Top & bottom perforated hole strips */
#log-paper-top-hole-strip,
#log-paper-bottom-hole-strip {
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: radial-gradient(circle at 5px 5px, #999 1px, transparent 3px);
    background-size: 20px 10px;
    opacity: 0.4;
}

#log-paper-top-hole-strip {
    top: 0;
}

#log-paper-bottom-hole-strip {
    bottom: 0;
}

/* Log header (like a systems header) */
#log-header {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    border-bottom: 1px dotted #777;
    padding-bottom: 4px;
}

/* Log body */
#log-body {
    max-height: 220px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    white-space: pre-wrap;
}

/* The <pre> that receives teletype text */
#log-lines {
    margin: 0;
    font-family: "Courier New", Courier, monospace;
}
