/* ==========================================================
   Investor Database
   Minimal CRUD Style Sheet
========================================================== */

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: #f5f5f5;
}

.header {
    background: #003366;
    color: white;
    padding: 15px;
}

.headerLeft {
    float: left;
}

.headerRight {
    float: right;
    margin-top: 8px;
}

.header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu {
    background: #dddddd;
    padding: 10px;
    border-bottom: 1px solid #999;
}

.menu a {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 6px;
    background: white;
    border: 1px solid #888;
    text-decoration: none;
    color: black;
    border-radius: 3px;
}

.menu a:hover {
    background: #003366;
    color: white;
}

.content {
    padding: 15px;
}

.button,
.smallButton {
    display: inline-block;
    padding: 6px 12px;
    background: #003366;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid #003366;
}

.smallButton {
    font-size: 12px;
    margin-bottom: 3px;
}

.deleteButton {
    background: #b00000;
    border-color: #b00000;
}

.button:hover,
.smallButton:hover {
    opacity: .85;
}

.gridWrap {
    width: 100%;
    height: 600px;
    overflow: auto;
    border: 1px solid #999;
    background: white;
}

.dataGrid {
    border-collapse: collapse;
    white-space: nowrap;
    min-width: max-content;
}

.dataGrid th {
    background: #003366;
    color: white;
    border: 1px solid #999;
    padding: 6px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.dataGrid td {
    border: 1px solid #cccccc;
    padding: 5px;
    vertical-align: top;
}

.dataGrid tr:nth-child(even) {
    background: #f8f8f8;
}

.actionCell {
    min-width: 120px;
}

.menuTable {
    border-collapse: collapse;
}

.menuTable td {
    padding: 10px;
}

.menuButton {
    display: block;
    width: 240px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    background: #003366;
    color: white;
    border-radius: 4px;
}

.menuButton:hover {
    background: #0055aa;
}

.login-box {
    width: 350px;
    margin: 100px auto;
    background: white;
    border: 1px solid #999;
    padding: 20px;
}

.login-box input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: #003366;
    color: white;
    border: none;
    cursor: pointer;
}

.error {
    color: red;
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #ccc;
    margin-top: 20px;
}
/* ==========================================================
   Detail Form
========================================================== */

.detailForm {
    max-width: 900px;
    background: white;
    border: 1px solid #999;
    padding: 15px;
}

.formRow {
    margin-bottom: 12px;
}

.formRow label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.formRow input,
.formRow select,
.formRow textarea {
    width: 100%;
    padding: 7px;
    box-sizing: border-box;
    border: 1px solid #999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.formRow textarea {
    height: 90px;
}

.formRow input[readonly] {
    background: #eeeeee;
}

.formButtons {
    margin-top: 20px;
}

.formButtons button {
    padding: 8px 18px;
    background: #003366;
    color: white;
    border: 1px solid #003366;
    cursor: pointer;
    border-radius: 3px;
    margin-right: 8px;
}

.formButtons button:hover {
    opacity: .85;
}
.sortLink {
    color: white;
    text-decoration: none;
}

.sortLink:hover {
    text-decoration: underline;
}