/**------------------------------------------------------------------------*
 *
 * General styles
 *
 * ------------------------------------------------------------------------*/
/* .table-responsive {
    overflow-x: auto;
} */

/**------------------------------------------------------------------------*
 *
 * Auth pages
 *
 * ------------------------------------------------------------------------*/
.auth-page {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.auth-card {
    max-width: 400px;
    border: 0;
    padding: 1rem;
}

.auth-brand {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-logo {
    max-width: 90px;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    margin-bottom: 0;
}

.auth-form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-form {
    display: block;
    margin-bottom: 1rem;
}

.auth-switch {
    margin-top: 0.5rem;
}

/**------------------------------------------------------------------------*
 *
 * Styles for navbar
 *
 * ------------------------------------------------------------------------*/
.navbar-brand {
    font-size: 1rem;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-brand h1 {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:active {
    outline: none;
    box-shadow: none;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: transparent;
    color: #1b1b1b;
    font-weight: bold;
}

/**------------------------------------------------------------------------*
 *
 * Styles for job hints dropdown
 *
 * ------------------------------------------------------------------------*/
.job-hints {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.job-hints .hint-item {
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

.job-hints .hint-item:hover {
    background-color: #f8f9fa; /* Bootstrap light hover */
}

/**------------------------------------------------------------------------*
 *
 * Styles for entries table
 *
 * ------------------------------------------------------------------------*/
/* Desktop/tablet */
#entries_table {
    width: 100%;
    table-layout: fixed;
}

#entries_table th,
#entries_table td {
    vertical-align: middle;
}

#entries_table td {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#entries_table .col-project  { width: 16%; }
#entries_table .col-category { width: 12%; }
#entries_table .col-start    { width: 14%; }
#entries_table .col-end      { width: 14%; }
#entries_table .col-duration { width: 7%; }
#entries_table .col-comment  { width: 29%; }
#entries_table .col-actions  { width: 8%; }

#entries_table td:nth-child(3),
#entries_table td:nth-child(4),
#entries_table td:nth-child(5),
#entries_table th:nth-child(3),
#entries_table th:nth-child(4),
#entries_table th:nth-child(5) {
    white-space: nowrap;
}

#entries_table td:last-child,
#entries_table th:last-child {
    white-space: nowrap;
    text-align: center;
}

#entries_table .comment-cell {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Mobile */
@media (max-width: 767.98px) {
    #entries_table {
        table-layout: auto;
        min-width: 900px;
    }

    #entries_table th,
    #entries_table td {
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    #entries_table td:nth-child(3),
    #entries_table td:nth-child(4),
    #entries_table td:nth-child(5),
    #entries_table th:nth-child(3),
    #entries_table th:nth-child(4),
    #entries_table th:nth-child(5),
    #entries_table td:last-child,
    #entries_table th:last-child {
        white-space: nowrap;
    }
}
/**------------------------------------------------------------------------*
 *
 * Account / avatar styles
 *
 * ------------------------------------------------------------------------*/
.nav-avatar-img,
.nav-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    font-size: 0.875rem;
    font-weight: 600;
    vertical-align: middle;
}

.nav-avatar-img {
    border: 1px solid #d0d7de;
}

.nav-avatar-placeholder {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #d0d7de;
}

.account-toggle {
    display: inline-flex;
    align-items: center;
}

.account-avatar-large,
.account-avatar-large-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    font-size: 2rem;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
    border: 1px solid #d0d7de;
}

/**------------------------------------------------------------------------*
 *
 * Styles for Footer
 *
 * ------------------------------------------------------------------------*/
 footer .nav a {
    font-size: 0.875rem;
 }