/* Spacing Scale */
/* Colors */
/* Shadows */
/* Border Radius */
/* Typography */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 10px;
    border-radius: 5px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
}
.nav-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    z-index: 1;
    background-color: #fff;
    transition: 0.1s;
    padding-top: 60px;
}
.nav-menu.active {
    left: 0;
}
.nav-menu ul {
    list-style-type: none;
    padding: 0;
}
.nav-menu ul li a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
}
.nav-menu ul li a:hover {
    background-color: #f8f9fa;
}
/* Category hierarchy component styles */
.category-header {
    align-items: center;
}
.category-header:hover {
    background-color: #f8f9fa;
}
.expand-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-right: 8px;
    user-select: none;
    color: #666666;
    border-radius: 4px;
}
.expand-button:hover {
    background-color: #d0d0d0;
}
.category-label {
    font-weight: 400;
    cursor: pointer;
    user-select: none;
    color: #333333;
}
.subcategory {
    align-items: center;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}
.subcategory:hover {
    background-color: #f5f5f5;
}
.subcategory:last-child {
    border-bottom: none;
}
.subcategory label {
    cursor: pointer;
    user-select: none;
    color: #666666;
    font-size: 14px;
}
/* For add workplace page - make sure the category container looks good in the form */
.category-container-wrapper {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
}
/* Inline add buttons - integrated with category hierarchy */
.inline-add-button {
    background: none;
    border: none;
    color: #666666;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    margin: 4px 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.8;
    font-weight: 300;
}
.inline-add-button:hover {
    opacity: 1;
    color: #333333;
    background-color: #e3f2fd;
}
.top-level-add {
    margin: 16px 24px;
    width: calc(100% - 24px * 2);
}
.subcategory-add {
    margin-left: calc(24px + 32px);
    margin-right: 24px;
    width: calc(100% - 24px * 2 - 32px);
}
/* Inline input styling */
.inline-input-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0;
    padding: 0 24px;
}
.subcategory .inline-input-container {
    padding-left: calc(24px + 32px);
}
.inline-category-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #1976d2;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}
.inline-category-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.3);
}
.inline-save-button,
.inline-cancel-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    color: #666666;
    opacity: 0.8;
}
.inline-save-button:hover {
    opacity: 1;
    background-color: #d4edda;
    color: #155724;
}
.inline-cancel-button:hover {
    opacity: 1;
    background-color: #f8d7da;
    color: #721c24;
}
.remove-custom-category {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    margin-left: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
    border-radius: 4px;
}
.remove-custom-category:hover {
    opacity: 1;
    background-color: #f8d7da;
    color: #721c24;
}
/* Service checkbox styling - wrapper and table structure */
.work-types-table-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.work-types-table-header {
    border-bottom: 2px solid #d0d0d0;
}
#work-type-header-cell {
    padding: 8px 16px;
    font-size: 12px;
    color: #333333;
    font-weight: 500;
    text-align: left;
    background-color: white;
}
#service-header-cell {
    width: 140px;
    padding: 8px 16px;
    font-size: 12px;
    color: #333333;
    text-align: center;
    font-weight: 500;
    border-left: 1px solid #d0d0d0;
    background-color: white;
}
/* Universal HTML table structure for all category hierarchies */
.categories-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: white;
}
.category-main-cell {
    padding: 16px 24px;
}
/* Two-column table (add page with service checkboxes) */
.categories-table .category-content {
    display: flex;
    align-items: center;
    gap: 4px;
}
.categories-table .service-placeholder {
    text-align: center;
    border-left: 1px solid #e0e0e0;
}
/* Expand button styling for table */
.categories-table .expand-button {
    font-size: 12px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}
.categories-table .category-label {
    margin: 0;
    white-space: nowrap;
}
/* Subcategory name cell */
.categories-table .subcategory-name-cell {
    display: flex;
    padding: 8px 24px 8px calc(24px + 32px);
}
/* Service checkbox container - perfectly aligned with header */
.categories-table .service-checkbox-container {
    text-align: center;
    border-left: 1px solid #e0e0e0;
    vertical-align: middle;
}
.service-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
}
.service-label {
    display: none;
    /* Hide individual labels since we have the column header */
}
/* Add button styling in table layout */
/* Top-level category add button */
.categories-table .category-add-row {
    border-bottom: none;
}
.categories-table .category-add-cell {
    padding: 8px 24px;
}
.categories-table .category-input-row {
    border-bottom: none;
}
.categories-table .category-input-cell {
    padding: 4px 24px;
}
/* Subcategory add button */
.categories-table .subcategory-add-row {
    border-bottom: none;
}
.categories-table .subcategory-add-cell {
    padding: 8px 24px 8px calc(24px + 32px);
}
.categories-table .subcategory-input-row {
    border-bottom: none;
}
.categories-table .subcategory-input-cell {
    padding: 4px 24px 4px calc(24px + 32px);
}
/* Ensure input container works in table cells */
.categories-table .inline-input-container {
    margin: 0;
    padding: 0;
}
html,
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}
body {
    display: flex;
    flex-direction: column;
}
h1 {
    text-align: center;
    font-weight: 300;
    color: #333333;
    margin: 24px 0 16px 0;
}
h2 {
    text-align: center;
    font-weight: 300;
    color: #333333;
    margin: 0 0 24px 0;
}
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
form {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.form-table {
    background-color: #ffffff;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}
.add-label-row > td {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}
.add-label-row:last-child > td {
    border-bottom: none;
}
.add-label-row:hover {
    background-color: #f5f5f5;
}
.add-label-row > td:first-child {
    background-color: #f8f9fa;
    font-weight: 400;
}
label {
    display: block;
    font-weight: 400;
    color: #333333;
    font-size: 16px;
    line-height: 1.4;
}
.form-input {
    width: 90%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #333333;
    background-color: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}
.form-input:hover {
    border-color: #d0d0d0;
}
.submit-container {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}
.regular-button {
    font-family: 'Roboto', sans-serif;
    padding: 16px 32px;
    background: #1976d2;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    color: white;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
    min-width: 120px;
}
.regular-button:hover {
    background: #145ca4;
    transform: translateY(-1px);
}
.regular-button:active {
    transform: translateY(0);
}
/* Responsive design */
@media (max-width: 768px) {
    .form-container {
        padding: 0 8px;
    }
    .add-label-row > td {
        padding: 16px;
    }
    label {
        font-size: 14px;
    }
    .form-input {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .form-table {
        display: block;
    }
    .add-label-row {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
    }
    .add-label-row > td {
        display: block;
        width: 100%;
        padding: 16px;
        border-bottom: 1px solid #e0e0e0;
    }
    .add-label-row > td:first-child {
        background-color: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
    }
    .add-label-row > td:last-child {
        border-bottom: none;
    }
}
/* Form message styling */
.form-message {
    margin: 16px auto;
    padding: 16px 24px;
    border-radius: 4px;
    max-width: 1200px;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
}
.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
