* {
    box-sizing: border-box;
}

#dispatch-editor,
#reply-editor {
    margin-bottom: 16px;
    min-height: 160px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.admin-actions a {
    border: 1px solid #151515;
    color: #fff;
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 12px 16px;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-actions a:hover {
    background: #0d0d0d;
}

.admin-actions form {
    margin: 0;
}

.admin-dashboard {
    max-width: 860px;
}

.admin-dispatch-stack {
    margin-top: 12px;
}

.admin-user-grid {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 24px;
    opacity: 0.8;
}

body {
    background: #000;
    color: #fff;
    font-family: monospace;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    padding: 60px 24px;
}

button {
    appearance: none;
    background: transparent;
    border: 1px solid #1f1f1f;
    color: #fff;
    cursor: pointer;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 12px 16px;
    text-transform: uppercase;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

button:hover {
    background: #0d0d0d;
    border-color: #333;
}

.button-primary {
    background: #fff;
    color: #000;
}

.button-primary:hover {
    background: #d9d9d9;
}

.button-secondary {
    background: transparent;
    color: #777;
}

.button-secondary:hover {
    color: #fff;
}

.card {
    border: 1px solid #151515;
    padding: 20px;
}

.dashboard {
    margin: 0 auto;
    max-width: 720px;
    width: 100%;
}

.dashboard-header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    margin-bottom: 64px;
    text-align: center;
}

.dashboard-section {
    margin-bottom: 20px;
}

.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.dashboard-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
    margin: 0 0 28px 0;
    opacity: 0.7;
    text-transform: uppercase;
}

.directive-content,
.dispatch-content,
.protocol-content {
    font-size: 13px;
    line-height: 1.7;
}

.directive-content img,
.dispatch-content img,
.protocol-content img {
    display: block;
    height: auto;
    margin: 16px auto;
    max-width: 100%;
    width: auto;
}

.directive-content p,
.dispatch-content p,
.protocol-content p {
    margin: 0 0 1em 0;
}

.directive-content p:first-child,
.dispatch-content p:first-child,
.protocol-content p:first-child {
    margin-top: 0;
}

.directive-content p:last-child,
.dispatch-content p:last-child,
.protocol-content p:last-child {
    margin-bottom: 0;
}

.empty-state {
    opacity: 0.45;
}

input,
textarea {
    background: transparent;
    border: 1px solid #151515;
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    padding: 12px;
}

.item-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.item-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.55;
    text-transform: uppercase;
}

.load-more {
    margin-bottom: 16px;
    text-align: center;
}

.load-more a {
    color: #666;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.load-more a:hover {
    color: #fff;
}

.meta {
    font-size: 10px;
    opacity: 0.35;
    text-align:right;
}

.ql-container {
    border-color: #151515 !important;
    font-family: monospace;
    font-size: 13px;
}

.ql-editor {
    min-height: 120px;
}

.ql-editor.ql-blank::before {
    color: #555 !important;
    font-style: normal !important;
}

.ql-snow .ql-fill,
.ql-snow .ql-stroke {
    stroke: #888 !important;
}

.ql-snow .ql-picker {
    color: #888 !important;
}

.ql-toolbar {
    border-color: #151515 !important;
}

.response-meta {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    opacity: 0.45;
    text-align: center;
    text-transform: uppercase;
}

.response-unit {
    margin-top: 24px;
}

.section-content {
    display: none;
    overflow: hidden;
}

.section-content.expanded {
    animation: sectionDown 0.18s ease;
    display: block;
}

.section-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid #151515;
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
    padding: 18px;
    text-align: center;
    text-transform: uppercase;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
    width: 100%;
}

.section-toggle:hover {
    background: #0b0b0b;
    border-color: #222;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    border: 1px solid #151515;
    min-width: 180px;
    padding: 20px 24px;
    text-align: center;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
    opacity: 0.45;
    text-transform: uppercase;
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.stat-value-debt {
    color: #b02a2a;
}

.stat-value-total {
    color: #d4b04c;
}

.transaction {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-amount {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.transaction-amount-type {
    font-size: 10px;
    letter-spacing: 0.1em;
    opacity: 0.35;
    text-transform: uppercase;
}

.transaction-amount-value {
    font-size: 18px;
    font-weight: 700;
}

.transaction-date {
    font-size: 10px;
    opacity: 0.35;
}

.transaction-debt-deductable {
    font-size: 11px;
    opacity: 0.45;
}

.transaction-label {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
}

.transaction-type-credit .transaction-amount-value,
.transaction-type-payment .transaction-amount-value {
    color: #d4b04c;
}

.transaction-type-debt .transaction-amount-value {
    color: #b02a2a;
}

@keyframes sectionDown {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-back-link {
    margin-bottom: 32px;
    text-align: center;
}

.admin-back-link a {
    color: #666;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-back-link a:hover {
    color: #fff;
}

.admin-checkbox {
    align-items: center;
    display: flex;
    font-size: 11px;
    gap: 10px;
    opacity: 0.7;
}

.admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-inline-form {
    align-items: center;
    display: flex;
    gap: 12px;
}

.admin-notes-textarea {
    min-height: 240px;
    resize: vertical;
    width: 100%;
}

#editor,
#protocol-editor {
    margin-bottom: 16px;
    min-height: 220px;
}
.admin-back-actions {
    justify-content: flex-start;
    margin-bottom: 32px;
}

.admin-back-button {
    border: 1px solid #151515;
    color: #777;
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 12px 16px;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.admin-back-button:hover {
    background: #0d0d0d;
    border-color: #222;
    color: #fff;
}
.login-body {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    width:100vw;
}

.login-button {
    width: 100%;
}

.login-error {
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-top: 12px;
    opacity: 0.45;
    text-align: center;
    text-transform: uppercase;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
}

.login-form input {
    appearance: none;
    background: transparent;
    border: 1px solid #151515;
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    outline: none;
    padding: 14px;
    text-align: center;
}

.login-form input:focus {
    border-color: #2a2a2a;
}

.login-form input::placeholder {
    color: #555;
    opacity: 1;
    text-transform: uppercase;
}

.login-logo {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.42em;
    margin-bottom: 36px;
    opacity: 0.65;
    text-align: center;
    text-indent: 0.42em;
}
.login-shell {
	text-align: center;
}
.pzlogo {
	width:15em;
	padding:2em;
}
.login-link-button {
    appearance: none;
    background: transparent;
    border: 1px solid #151515;
    color: #fff;
    display: block;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
    width: 100%;
}

.login-link-button:hover {
    background: #0d0d0d;
    border-color: #222;
}
.application-copy {
    color: #777;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.9;
    margin-bottom: 28px;
    text-align: center;
    text-transform: uppercase;
}

.application-copy p {
    margin: 0 0 10px 0;
}

.application-copy p:last-child {
    margin-bottom: 0;
}

.application-shell {
    max-width: 420px;
}

.application-textarea {
    appearance: none;
    background: transparent;
    border: 1px solid #151515;
    color: #fff;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.7;
    min-height: 160px;
    padding: 16px;
    resize: none;
    width: 100%;
}

.application-textarea:focus {
    border-color: #2a2a2a;
    outline: none;
}

.application-textarea::placeholder {
    color: #444;
    opacity: 1;
}
.section-toggle-alert {
    color: #d4b04c;
}
.directive-read-at {
    margin-top: 2px;
}
body {

    opacity: 0;
    transition:
        opacity 320ms ease;

}

body.page-visible {

    opacity: 1;

}

.dashboard-section,
.dashboard-header {

    opacity: 0;
    transform: translateY(6px);

    transition:
        opacity 320ms ease,
        transform 320ms ease;

}

.dashboard-section.revealed,
.dashboard-header.revealed {

    opacity: 1;
    transform: translateY(0);

}