/*Copyright 2026 RepairCraft Upper Hutt. All rights reserved.*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background:  #327D32;
    color: white;
    padding: 10px;
}

.home-button {
    margin: 10px 0;
}

.home-button a {
    display: inline-block;
    padding: 8px 14px;
    background: #327D32;
    color: white;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
}

.home-button a:hover {
    background: #265F26;
}

.action-button {
    display: inline-block;
    padding: 8px 14px;
    background: #327D32;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
}

.action-button:hover {
    background: #265F26;
}

.nav a {
    color: white;
    margin-right: 10px;
    text-decoration: none;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.message {
    background: #dff0d8;
    padding: 10px;
    margin: 10px;
}

.footer {
    padding: 10px;
    font-size: 15px;
    color: #252324;
}

.titlebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.titlebar h1 {
    margin: 0;
}

/* --------------------
   AUTH LOGIN
-------------------- */

/* Login box styling */
.login-box {
    max-width: 300px;
    width: 100%;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 20px auto;
    box-sizing: border-box;
    background-color: #fff;
}

/* Error message styling */
.center-page .error {
    color: red;
    margin-bottom: 10px;
}

/* Make all labels block-level so they sit above inputs */
.login-box label {
    display: block;
    margin-bottom: 4px; /* small space below the label */
    text-align: left;   /* optional: left-align text for readability */
}

/* Make login inputs responsive */
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin: 10px 0;
}

/* Make login button responsive on small screens */
@media (max-width: 480px) {
    .login-box button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --------------------
   REPORT TABLES
-------------------- */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f2f2f2;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background: #fafafa;
}

.table tr:hover {
    background: #f1f1f1;
}

/*----------------------
 * Layout for index/menu page
 ----------------------*/
.three-column-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.column-panel {
    flex: 1;
}