html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #00ff00;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
}
.terminal-window {
    width: 120ch;
    height: 45em;
    background: #000;
    color: #00ff00;
    overflow: hidden;
    position: relative;
    border: 1px solid #00aa00;
}

.terminal-banner {
    height: 1.6em;
    line-height: 1.6em;
    background: #003300;
    color: #00ff00;
    position: relative;
    white-space: nowrap;
}

.banner-left {
    position: absolute;
    left: 1ch;
}

.banner-centre {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

.banner-right {
    position: absolute;
    right: 1ch;
}

.terminal-body {
    position: relative;
    height: 41.5em;
}

.terminal-footer {
    height: 1.6em;
    line-height: 1.6em;
    background: #003300;
    color: #00ff00;
    position: relative;
    white-space: nowrap;
    border-top: 1px solid #00aa00;
}

.terminal-form {
    position: relative;
    width: 100%;
    height: 100%;
}

.screen-label,
.screen-field {
    position: absolute;
}

.screen-label {
    color: #00cc00;
}

.field {
    display: inline-block;
    background: #002200;
    color: #00ff00;
    padding: 0 0.5ch;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: content-box;
}

.numeric {
    text-align: right;
}
.screen {
    padding: 0;
    margin: 0;
}

.grid {
    border-collapse: collapse;
    width: auto;
}

.grid th,
.grid td {
    border: 1px solid #00aa00;
    padding: 2px 4px;
    text-align: left;
    white-space: nowrap;
}

.grid th {
    background: #001100;
    color: #00ff00;
    font-weight: bold;
}

.grid tr:hover {
    background: #002200;
}

.field {
    display: inline-block;
    background: #002200;
    color: #00ff00;
    padding: 1px 4px;
    overflow: hidden;
    white-space: nowrap;
}

.w-5  { width: 5ch; }
.w-10 { width: 10ch; }
.w-12 { width: 12ch; }
.w-15 { width: 15ch; }
.w-20 { width: 20ch; }
.w-30 { width: 30ch; }
.w-40 { width: 40ch; }
html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #00ff00;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
}

.screen {
    padding: 0;
    margin: 0;
}

.grid {
    border-collapse: collapse;
    width: auto;
}

.grid th,
.grid td {
    border: 1px solid #00aa00;
    padding: 2px 4px;
    text-align: left;
    white-space: nowrap;
}

.grid th {
    background: #001100;
    color: #00ff00;
    font-weight: bold;
}

.grid tr:hover {
    background: #002200;
}

.field {
    display: inline-block;
    background: #002200;
    color: #00ff00;
    padding: 1px 4px;
    overflow: hidden;
    white-space: nowrap;
}

.w-5  { width: 5ch; }
.w-10 { width: 10ch; }
.w-12 { width: 12ch; }
.w-15 { width: 15ch; }
.w-20 { width: 20ch; }
.w-30 { width: 30ch; }
.w-40 { width: 40ch; }
.w-60 { width: 60ch; }
.w-80 { width: 80ch; }

.numeric {
    text-align: right;
}
.form-title {
    padding: 6px 10px;
    font-weight: bold;
    border-bottom: 1px solid #00aa00;
    margin-bottom: 10px;
}

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #00ff00;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
}

.screen {
    padding: 0;
    margin: 0;
}

/* Title bar */
.form-title {
    padding: 4px 1ch;
    font-weight: bold;
    border-bottom: 1px solid #00aa00;
    margin: 0;
}

/* Absolute-positioned terminal form */
.terminal-form {
    position: relative;
    width: 100%;
    height: 30em;
}

/* Labels and fields placed by coordinates */
.screen-label,
.screen-field {
    position: absolute;
}

.screen-label {
    color: #00ff00;
}

/* Input-style display fields */
.field {
    display: inline-block;
    background: #002200;
    color: #00ff00;
    padding: 0 0.5ch;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: content-box;
}

/* Fixed-width helper classes for table/list mode */
.w-5  { width: 5ch; }
.w-10 { width: 10ch; }
.w-12 { width: 12ch; }
.w-15 { width: 15ch; }
.w-20 { width: 20ch; }
.w-30 { width: 30ch; }
.w-40 { width: 40ch; }
.w-60 { width: 60ch; }
.w-80 { width: 80ch; }

.numeric {
    text-align: right;
}

/* Optional grid/table mode retained for later */
.grid {
    border-collapse: collapse;
    width: auto;
}

.grid th,
.grid td {
    border: 1px solid #00aa00;
    padding: 2px 4px;
    text-align: left;
    white-space: nowrap;
}

.grid th {
    background: #001100;
    color: #00ff00;
    font-weight: bold;
}

.grid tr:hover {
    background: #002200;
}
.login-field {
    background: #002200;
    color: #00ff00;
    border: 1px solid #00aa00;
    border-radius: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    width: 10ch;
    padding: 0.2em 0.5ch;
}

.login-field:focus {
    outline: none;
    background: #004400;
}

.terminal-button {
    background: #002200;
    color: #00ff00;
    border: 1px solid #00aa00;
    border-radius: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    padding: 0.3em 2ch;
    cursor: pointer;
}

.terminal-button:hover,
.terminal-button:focus {
    background: #004400;
    outline: none;
}
.menu-line {
    height: 1.6em;
    line-height: 1.6em;
    background: #002200;
    color: #00ff00;
    border-bottom: 1px solid #00aa00;
    white-space: nowrap;
    overflow: hidden;
}


.menu-item {
    display: inline-block;
    padding: 0 2ch;
    cursor: pointer;
    border-right: 1px solid #006600;
}

.menu-item:hover {
    background: #00aa00;
color: #000;
}

.blank-workspace {
    position: relative;
}

.welcome-message {
    position: absolute;
    top: 2em;
    left: 2ch;
    color: #00cc00;
}

.sub-menu {
    display: none !important;
    position: absolute;
    top: 3.2em;
    left: 0;
    background: #001100;
    border: 1px solid #00ff00;
    min-width: 20ch;
    z-index: 9999;
    box-shadow: 0.5ch 0.5em 0 #001a00;
}

.sub-menu.open {
    display: block !important;
}

.sub-menu-item {
    padding: 0.25em 2ch;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 1px solid #003300;
}

.sub-menu-item:hover {
    background: #00aa00;
    color: #000;
}
.hotkey {
    color: #ffffff;
    font-weight: bold;
}
