/* ===== Global Reset & Typography ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: linear-gradient(to bottom right, #f0f4ff, #e6e9ff);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== STAFF PAGE STYLES ===== */
.staff-page .container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.staff-page .header {
    text-align: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.staff-page .filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.staff-page .filter-box input[type="text"],
.staff-page .filter-box input[type="date"] {
    width: auto;
    min-width: 160px;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.staff-page .filter-box button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #006bb2;
    color: white;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.staff-page .filter-box button:hover {
    background-color: #005a99;
}

.staff-page .table-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
    width: 100%;
}

.staff-page .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.staff-page .data-table thead {
    background-color: #006bb2;
    color: white;
}

.staff-page .data-table th,
.staff-page .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
}

.staff-page .notes-btn {
    background-color: #006bb2;
    color: white;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.staff-page .notes-btn:hover {
    background-color: #005a99;
}

.staff-page .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.staff-page .modal-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    overflow-y: auto;
    max-height: 80vh;
}

.staff-page .modal-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.staff-page .modal-box p {
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.staff-page .close-btn {
    background: #006bb2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.staff-page .close-btn:hover {
    background: #005a99;
}

.staff-page .header {
    margin-top: 20px;
    margin-bottom: 10px;
    
}

.staff-page .filter-form {
    margin-top: 10px;
    margin-bottom: 10px;
}

.staff-page .filter-form input,
.staff-page .filter-form button {
    margin: 4px 4px;
    padding: 8px;
}

.staff-page .data-table-container {
    margin-top: 10px;
}

.narrow-box {
    max-width: 700px; /* Adjust as needed */
    margin: 0 auto;
}

.narrow-box .header,
.narrow-box .filter-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Filter form input fields and button */
.filter-section input[type="text"],
.filter-section input[type="date"],
.filter-section button {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-section input[type="text"]:focus,
.filter-section input[type="date"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.filter-section button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.filter-section button:hover {
    background-color: #0056b3;
}


/* ===== CUSTOMER PAGE STYLES ===== */
.customer-page .container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.customer-page .header {
    text-align: center;
    margin-bottom: 2rem;
}

.customer-page .header h1 {
    font-size: 1.8rem;
    color: #1e1e1e;
}

.customer-page form#customerForm {
    width: 100%;
}

.customer-page .tool-card {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.customer-page .tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.customer-page .tools-grid .tool-card {
    flex: 1 1 45%;
}

.customer-page label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.customer-page input[type="text"],
.customer-page input[type="email"],
.customer-page input[type="date"],
.customer-page textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.customer-page textarea {
    resize: vertical;
    min-height: 100px;
}

.customer-page small {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.85rem;
}

.customer-page input[type="radio"],
.customer-page input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.customer-page .tool-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #006bb2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
}

.customer-page .tool-link:hover {
    background-color: #005a99;
}

.customer-page .radio-inline {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.customer-page .radio-inline label {
    font-weight: normal;
}

.customer-page .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.customer-page .modal-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
}

.customer-page .modal-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.customer-page .modal-box p {
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.customer-page .close-btn {
    background: #006bb2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.customer-page .close-btn:hover {
    background: #005a99;
}

/* ==== Fix spacing between consent checkbox and input ==== */
.customer-page .consent-block label[for="consent_checkbox"] {
    display: inline-block;
    margin-bottom: 1rem;
}
