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

body {
    background: #fff;
    color: #000;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 13px;
    line-height: 1.3;
}

a { color: #000; text-decoration: underline; }

/* === LOGIN PAGE === */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.login-page .seal {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    border: 4px double #000;
    padding: 1.25rem 2.5rem;
    margin-bottom: 2rem;
}

.login-btn {
    display: inline-block;
    border: 1px solid #000;
    padding: 0.5rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    color: #000;
    background: #fff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.login-btn:hover { background: #000; color: #fff; }

/* === OFFICIAL HEADER BANNER === */
.ban-hdr {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 0.3rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

/* === TOP BAR === */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1rem;
    border-bottom: 3px double #000;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.topbar .brand { font-weight: 700; font-family: 'Courier New', monospace; font-size: 0.7rem; }
.topbar .user { display: flex; align-items: center; gap: 0.5rem; }
.topbar .user .avatar { width: 20px; height: 20px; border: 1px solid #000; }
.topbar .user a { font-size: 0.6rem; }

/* === CONTAINER === */
.container { max-width: 1000px; margin: 0 auto; padding: 1rem; }

/* === OFFICIAL DOCUMENT HEADER === */
.doc-hdr {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid #000;
    position: relative;
}

.doc-hdr .classification {
    font-family: 'Courier New', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    border: 1px solid #000;
    display: inline-block;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.5rem;
}

.doc-hdr .agency {
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.doc-hdr h1 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.doc-hdr .ref {
    font-size: 0.55rem;
    margin-top: 0.2rem;
    font-family: 'Courier New', monospace;
}

.doc-hdr .line {
    width: 60%;
    height: 1px;
    background: #000;
    margin: 0.4rem auto 0;
}

/* === CONTROLS BAR === */
.ctrl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #000;
}

.ctrl .stats {
    display: flex;
    gap: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
}

.ctrl .stats span {
    border: 1px solid #000;
    padding: 0.15rem 0.4rem;
}

/* === FILTER BAR === */
.fltr {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.fltr-inp {
    flex: 1;
    min-width: 160px;
    border: 1px solid #000;
    padding: 0.2rem 0.35rem;
    font-family: 'Times New Roman', serif;
    font-size: 0.65rem;
    background: #fff;
    color: #000;
}

.fltr-sel {
    border: 1px solid #000;
    padding: 0.2rem 0.3rem;
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    background: #fff;
    color: #000;
    text-transform: uppercase;
}

/* === BUTTONS === */
.btn {
    border: 1px solid #000;
    padding: 0.25rem 0.6rem;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    background: #fff;
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover { background: #000; color: #fff; }

/* === TABLE === */
.tbl { border: 2px solid #000; }

table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }

th {
    background: #000;
    color: #fff;
    padding: 0.35rem 0.5rem;
    text-align: left;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #000;
}

td {
    padding: 0.3rem 0.5rem;
    border: 1px solid #000;
    vertical-align: top;
}

tr:hover td { background: #f5f5f5; cursor: pointer; }

.status-open { font-weight: 700; }
.status-closed { color: #666; }

.case-num {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.cls-badge {
    font-size: 0.45rem;
    border: 1px solid #000;
    padding: 0.05rem 0.25rem;
    margin-left: 0.3rem;
    letter-spacing: 0.1em;
    vertical-align: middle;
}

.redacted {
    background: #000;
    color: #000;
    padding: 0 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    user-select: none;
}

/* === EMPTY === */
.empty { text-align: center; padding: 2rem 1rem; font-size: 0.7rem; font-style: italic; }

/* === BACK === */
.back {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === DETAIL === */
.dtl-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000;
}

.dtl-hdr .left .case-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.dtl-hdr .left .case-meta {
    font-size: 0.6rem;
    margin-top: 0.15rem;
}

.dtl-hdr .acts {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* === FIELD === */
.fld {
    margin-bottom: 0.5rem;
    border: 1px solid #000;
}

.fld .lbl {
    background: #000;
    color: #fff;
    padding: 0.15rem 0.4rem;
    font-family: 'Courier New', monospace;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fld .val {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 1.2em;
}

.fld .val.null { font-style: italic; color: #666; }

.fld input, .fld textarea {
    width: 100%;
    border: none;
    padding: 0.25rem 0.4rem;
    font-family: 'Times New Roman', serif;
    font-size: 0.75rem;
    background: #fff;
    color: #000;
    outline: none;
}

.fld textarea { min-height: 60px; resize: vertical; }

/* === EVIDENCE === */
.ev-list { margin-top: 0; }

.ev-item {
    border: 1px solid #000;
    padding: 0.35rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.ev-item .info { flex: 1; min-width: 0; }
.ev-item .info .ev-url { word-break: break-all; font-size: 0.65rem; }
.ev-item .info .ev-desc { font-size: 0.6rem; margin-top: 0.1rem; }

.ev-item .del {
    cursor: pointer;
    font-size: 0.55rem;
    border: none;
    background: none;
    color: #000;
    text-decoration: underline;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.ev-item img, .ev-item video {
    max-width: 140px;
    max-height: 100px;
    border: 1px solid #000;
    flex-shrink: 0;
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border: 3px double #000;
    max-width: 500px;
    width: 90%;
    padding: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal .m-title {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #000;
    text-align: center;
}

.modal .m-body .fld { margin-bottom: 0.5rem; }

.modal .m-acts {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

/* === EVIDENCE INPUT ROW === */
.ev-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.ev-row input {
    border: 1px solid #000;
    padding: 0.2rem 0.35rem;
    font-family: 'Times New Roman', serif;
    font-size: 0.65rem;
    background: #fff;
    color: #000;
}

.ev-row input:first-child { flex: 3; }
.ev-row input:last-child { flex: 2; }

.ev-row input::placeholder { color: #999; }

/* === UTILITY === */
.hidden { display: none; }
.mono { font-family: 'Courier New', monospace; }
