:root {
    /*--tsc-font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    --tsc-font-family: 'Segoe UI Light';
    --tsc-icon-size: 0.95em;
    --tsc-icon-color: inherit;
}

html {
    font-size: 13px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

body,
button,
input,
select,
textarea {
    font-family: var(--tsc-font-family);
    letter-spacing: 0.01em;
}

body {
    margin: 0;
    font-family: 'Segoe UI Light';
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.2;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 0.85rem;
    font-weight: 200;
    line-height: 1.2;
}

.form-select {
    --bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 0.85rem;
    font-weight: 200;
    line-height: 1.2;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    color: #1d1d1f;
}

#globalLoadingBar {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
}

    #globalLoadingBar.active,
    #globalLoadingBar.loading-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    #globalLoadingBar .loading-spinner {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 3px solid rgba(78, 70, 229, 0.25);
        border-top-color: rgba(78, 70, 229, 0.9);
        animation: tsc-loading-spin 0.75s linear infinite;
        box-shadow: 0 6px 18px rgba(79, 70, 229, 0.2);
    }

    #globalLoadingBar .loading-bar-track {
        display: block;
        width: min(420px, calc(100% - 1.5rem));
        height: 4px;
        background: linear-gradient(90deg, rgba(78, 70, 229, 0.25), rgba(147, 51, 234, 0.35));
        overflow: hidden;
        border-radius: 999px;
        position: relative;
        box-shadow: 0 6px 18px rgba(79, 70, 229, 0.18);
    }

    #globalLoadingBar .loading-bar-indicator {
        position: absolute;
        top: 0;
        left: -30%;
        width: 30%;
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
        animation: tsc-loading-slide 1.15s ease-in-out infinite;
    }

@keyframes tsc-loading-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(450%);
    }
}

@keyframes tsc-loading-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.login-body {
    margin-bottom: 0;
    background: linear-gradient(135deg, #fdf0ff 0%, #f5f7ff 100%);
    min-height: 100vh;
}

    body.login-body header,
    body.login-body .footer {
        display: none;
    }

    body.login-body .container-fluid {
        padding: 0;
    }

.navbar-brand.brand-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

.fa, .fas, .far, .fal, .fad, .fab {
    font-size: var(--tsc-icon-size);
    color: var(--tsc-icon-color);
    vertical-align: middle;
}

.navbar-nav .nav-link i,
.dropdown-item i {
    font-size: 0.9rem;
    margin-right: 0.35rem;
}

.brand-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e46e5, #9f67ff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 8px 22px rgba(158, 105, 255, 0.25);
}

.brand-header .brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 1.1rem;
}

.brand-text-main {
    background: linear-gradient(135deg, #4e46e5, #9f67ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text-sub {
    color: #6c5ce7;
    font-weight: 600;
}

body.login-body main {
    padding-bottom: 0 !important;
    min-height: 100vh;
}

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.login-visual {
    flex: 1;
    position: relative;
    background: linear-gradient(120deg, rgba(163, 104, 255, 0.85), rgba(244, 114, 182, 0.85)), radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0) 55%), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 60%), radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 65%);
    background-blend-mode: overlay, normal;
    color: #fff;
}

    .login-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: url('data:image/svg+xml,%3Csvg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3CradialGradient id="a" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(0 0) scale(1)"%3E%3Cstop stop-color="%23ffffff" stop-opacity="0.45"/%3E%3Cstop offset="1" stop-color="%23ffffff" stop-opacity="0"/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill="url(%23a)" fill-opacity="0.6"%3E%3Ccircle cx="40" cy="80" r="60"/%3E%3Ccircle cx="360" cy="320" r="70"/%3E%3Ccircle cx="320" cy="100" r="55"/%3E%3Ccircle cx="120" cy="320" r="65"/%3E%3C/g%3E%3C/svg%3E') center/cover no-repeat;
        opacity: 0.4;
    }

.login-visual-content {
    position: relative;
    z-index: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    max-width: 460px;
}

.visual-logo {
    width: 150px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  padding: 1.5rem;*/
}

    .visual-logo img {
        width: 100%;
        height: auto;
    }

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.visual-title {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.visual-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.visual-footer .badge {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(4px);
}

.login-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
}

.language-switcher {
    width: 100%;
    max-width: 420px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

    .language-switcher a {
        color: #6c757d;
        text-decoration: none;
        font-weight: 600;
    }

        .language-switcher a.active {
            color: #4e46e5;
        }

        .language-switcher a:hover {
            color: #4e46e5;
        }

    .language-switcher .divider {
        margin: 0 0.6rem;
        color: #c1c7d0;
    }

.login-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem 2.2rem;
    border: none;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e46e5, #9f67ff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 12px 30px rgba(158, 105, 255, 0.25);
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.brand-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.login-form .form-control {
    border-radius: 0.85rem;
    border-color: #e0e3eb;
    padding: 0.9rem 1rem;
}

    .login-form .form-control:focus {
        box-shadow: 0 0 0 0.25rem rgba(78, 70, 229, 0.2);
        border-color: #4e46e5;
    }

.login-form label {
    color: #6c757d;
}

.btn-login {
    background: linear-gradient(135deg, #4e46e5, #9f67ff);
    border: none;
    border-radius: 0.85rem;
    padding: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #3b36cc, #7a4aff);
    }

.btn-microsoft {
    border-radius: 0.85rem;
    padding: 0.8rem;
    font-weight: 600;
    border-width: 1.5px;
}

    .btn-microsoft i {
        font-size: 1rem;
    }

.separator {
    position: relative;
    text-align: center;
    color: #adb5bd;
    font-weight: 600;
    letter-spacing: 0.08em;
}

    .separator::before,
    .separator::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 45%;
        height: 1px;
        background: #e9ecef;
    }

    .separator::before {
        left: 0;
    }

    .separator::after {
        right: 0;
    }

.credentials-alert {
    border-radius: 0.85rem;
    background-color: #f1f5ff;
    border-color: transparent;
    color: #495057;
}

    .credentials-alert strong {
        color: #4e46e5;
    }

@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
        padding: 2rem 1.25rem;
        gap: 2rem;
    }

    .login-form-wrapper {
        padding: 0;
    }

    .language-switcher {
        text-align: center !important;
        margin-bottom: 1rem;
    }

    .login-card {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .login-page {
        padding: 1.5rem 1rem;
    }

    .brand-title {
        font-size: 1.7rem;
    }

    .visual-title {
        font-size: 2rem;
    }
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* Calendar Styles */
.calendar-table {
    table-layout: fixed;
}

    .calendar-table th,
    .calendar-table td {
        width: 14.28%;
        vertical-align: top;
        height: 120px;
        border: 1px solid #dee2e6;
    }

.calendar-day {
    padding: 4px;
    position: relative;
    cursor: pointer;
}

    .calendar-day.other-month {
        background-color: #f8f9fa;
        color: #6c757d;
    }

    .calendar-day.today {
        background-color: #e3f2fd;
        border: 2px solid #2196f3;
    }

    .calendar-day.weekend {
        background-color: #fafafa;
    }

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2px;
}

.day-number {
    font-weight: bold;
    font-size: 14px;
}

.add-entry-btn {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
}

.day-content {
    height: 85px;
    overflow-y: auto;
}

.time-entries {
    margin-bottom: 4px;
}

.time-entry {
    background-color: var(--project-type-bg, #e3f2fd);
    border-left: 3px solid var(--project-type-border, #2196f3);
    padding: 2px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--project-type-text, #0d47a1);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .time-entry:hover {
        background-color: var(--project-type-hover-bg, #bbdefb);
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

.time-entry-label {
    display: block;
    font-weight: 600;
    color: inherit;
}

.project-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--project-type-bg, #f5f5f5);
    border: 1px solid var(--project-type-badge-border, #e0e0e0);
    color: var(--project-type-text, #424242);
    white-space: nowrap;
    text-transform: none;
}

    .project-type-badge::before {
        content: '';
        display: inline-block;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background-color: var(--project-type-border, #9e9e9e);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
        flex-shrink: 0;
    }

.project-type-1 {
    --project-type-bg: #e3f2fd;
    --project-type-border: #2196f3;
    --project-type-hover-bg: #bbdefb;
    --project-type-text: #0d47a1;
    --project-type-badge-border: #90caf9;
}

.project-type-2 {
    --project-type-bg: #e8f5e9;
    --project-type-border: #2e7d32;
    --project-type-hover-bg: #c8e6c9;
    --project-type-text: #1b5e20;
    --project-type-badge-border: #a5d6a7;
}

.project-type-3 {
    --project-type-bg: #fff8e1;
    --project-type-border: #fb8c00;
    --project-type-hover-bg: #ffecb3;
    --project-type-text: #e65100;
    --project-type-badge-border: #ffcc80;
}

.project-type-4 {
    --project-type-bg: #f3e5f5;
    --project-type-border: #8e24aa;
    --project-type-hover-bg: #e1bee7;
    --project-type-text: #6a1b9a;
    --project-type-badge-border: #ce93d8;
}

.project-type-unknown {
    --project-type-bg: #f5f5f5;
    --project-type-border: #9e9e9e;
    --project-type-hover-bg: #eeeeee;
    --project-type-text: #424242;
    --project-type-badge-border: #e0e0e0;
}

.day-total {
    position: absolute;
    bottom: 4px;
    right: 4px;
}

    .day-total .badge {
        font-size: 10px;
    }

/* Navbar customizations */
.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

/* Card customizations */
.card {
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Modal customizations */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: #495057;
    font-weight: 600;
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

@supports (height: 100dvh) {
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100dvh - 2rem);
    }
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

@media (max-width: 768px) {
    .modal-dialog.modal-lg.modal-dialog-scrollable {
        margin: 1rem auto;
    }
}

/* Form customizations */
.form-label {
    font-weight: 600;
    color: #495057;
}

.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Button customizations */
.btn-primary {
    background-color: #2196f3;
    border-color: #2196f3;
}

    .btn-primary:hover {
        background-color: #1976d2;
        border-color: #1976d2;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-table th,
    .calendar-table td {
        height: 80px;
        font-size: 12px;
    }

    .day-content {
        height: 50px;
    }

    .add-entry-btn {
        display: none;
    }

    .calendar-day {
        padding: 2px;
    }
}

/* Utility classes */
.text-primary {
    color: #2196f3 !important;
}

.bg-primary {
    background-color: #2196f3 !important;
}

.border-primary {
    border-color: #2196f3 !important;
}

/* Weekly tasks table */
.weekly-task-table {
    min-width: 900px;
}

    .weekly-task-table th,
    .weekly-task-table td {
        vertical-align: middle;
        white-space: nowrap;
    }

    .weekly-task-table input.form-control-sm {
        min-width: 55px;
    }

.weekly-task-table {
    font-size: 0.8rem;
}

    .weekly-task-table .daily-hour-input {
        max-width: 70px;
        margin: 0 auto;
    }

    .weekly-task-table .weekly-row-total,
    .weekly-task-table .weekly-day-total,
    #weeklyTotalHours {
        font-variant-numeric: tabular-nums;
    }

    .weekly-task-table .ceco-column {
        display: none;
    }

    .weekly-task-table.show-cost-center-column .ceco-column {
        display: table-cell;
    }

    .weekly-task-table .remove-row-btn i {
        pointer-events: none;
    }

    .weekly-task-table .project-cell .form-select-sm,
    .weekly-task-table .task-cell .form-select-sm {
        min-width: 140px;
    }

    .weekly-task-table .activity-type-cell .form-select-sm {
        min-width: 140px;
    }

    .weekly-task-table .application-cell .form-select-sm {
        min-width: 120px;
    }

    .weekly-task-table .ticket-cell .form-control-sm {
        min-width: 90px;
    }

    .weekly-task-table .hour-cell {
        min-width: 70px;
    }

    .weekly-task-table .description-row td {
        white-space: normal;
        background-color: var(--bs-light);
    }

    .weekly-task-table .description-input {
        font-size: 0.875rem;
    }

/* ------------------------------
   Project creation modal styling
   ------------------------------ */
.create-project-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.create-project-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e4e7ec;
    background: linear-gradient(135deg, #f9fafb 0%, #f4f5f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.create-project-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(76, 92, 255, 0.15), rgba(111, 66, 193, 0.25));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4c51bf;
    font-size: 1.15rem;
}

.create-project-layout {
    display: grid;
    /*grid-template-columns: minmax(260px, 320px) 1fr;*/
    gap: 1.75rem;
}

.create-project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.create-project-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sidebar-card,
.main-card {
    border-radius: 16px;
    border: 1px solid #e4e7ec;
    background-color: #ffffff;
    box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.45);
}

.sidebar-card {
    background: linear-gradient(160deg, #f8f9fb 0%, #f1f4f8 100%);
    border-color: #e0e5ec;
}

.sidebar-card-header,
.main-card-header {
    padding: 1.25rem 1.5rem 0.75rem;
}

.sidebar-card-title,
.main-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.sidebar-card-subtitle,
.main-card-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
}

.sidebar-card-body,
.main-card-body {
    padding: 0.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.field-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.create-project-form .form-label {
    font-weight: 400;
    font-size: 0.8rem;
    color: #344054;
}

    .create-project-form .form-label.field-label-error {
        color: #b91c1c;
        font-weight: 600;
    }

.create-project-form .form-control,
.create-project-form .form-select {
    border-radius: 12px;
    border-color: #d0d5dd;
    /*padding: 0.65rem 0.8rem;*/
    font-weight: 200 !important;
    font-size: 0.8rem;
    line-height: 1.2 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .create-project-form .form-control:focus,
    .create-project-form .form-select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    }

.create-project-form textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

.create-project-form .form-check-input {
    width: 2.7rem;
    height: 1.35rem;
}

    .create-project-form .form-check-input:checked {
        background-color: #6366f1;
        border-color: #6366f1;
    }

.selected-cost-centers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px dashed #d0d5dd;
    background-color: #f8fafc;
    min-height: 54px;
    align-items: center;
}

    .selected-cost-centers .badge {
        background-color: #eef2ff !important;
        border: 1px solid rgba(99, 102, 241, 0.35) !important;
        color: #3730a3;
        padding: 0.45rem 0.75rem;
    }

    .selected-cost-centers .btn-link {
        text-decoration: none;
    }

@media (max-width: 1199.98px) {
    .create-project-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .create-project-sidebar,
    .create-project-main {
        order: 0;
    }
}

/* ------------------------------
   Modal highlight cards styling
   ------------------------------ */
.modal-highlight-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.modal-highlight-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.25));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    font-size: 1.1rem;
}

.modal-highlight-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-highlight-text {
    font-size: 0.875rem;
    color: #4b5563;
}

.modal-section {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 16px 32px -28px rgba(15, 23, 42, 0.5);
    margin-bottom: 1.5rem;
}

    .modal-section:last-of-type {
        margin-bottom: 0;
    }

.modal-section-header {
    padding: 1.1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-section-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.modal-section-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.modal-section-body .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #344054;
    margin-bottom: 0;
}

.modal-section-body .form-control,
.modal-section-body .form-select {
    border-radius: 12px;
    border-color: #d0d5dd;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .modal-section-body .form-control:focus,
    .modal-section-body .form-select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

.modal-toggle-field .form-check-input {
    width: 2.5rem;
    height: 1.3rem;
}

    .modal-toggle-field .form-check-input:checked {
        background-color: #6366f1;
        border-color: #6366f1;
    }

@media (max-width: 767.98px) {
    .create-project-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .create-project-banner-icon {
        width: 40px;
        height: 40px;
    }

    .sidebar-card-header,
    .main-card-header,
    .sidebar-card-body,
    .main-card-body {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
}

/* ------------------------------
   Assign area modal enhancements
   ------------------------------ */
.assign-area-form .modal-highlight-banner {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.08));
}

.assign-area-form .modal-highlight-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(16, 185, 129, 0.22));
    color: #2563eb;
}

.assign-area-form .modal-section {
    border-color: #e2e8f0;
}

.assign-area-form .modal-section-body .form-control[readonly] {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-color: rgba(99, 102, 241, 0.28);
    color: #1f2937;
    font-weight: 600;
}

    .assign-area-form .modal-section-body .form-control[readonly]:focus {
        border-color: rgba(99, 102, 241, 0.45);
        box-shadow: none;
    }

.assign-area-form .assign-area-current-area {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.18));
    border-color: rgba(59, 130, 246, 0.38);
    color: #1e3a8a;
}

.assign-area-form .modal-section-body .form-text {
    margin-top: -0.25rem;
    color: #475569;
}

@media (max-width: 767.98px) {
    .assign-area-form .modal-highlight-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ------------------------------
   Time entry modal enhancements
   ------------------------------ */
.time-entry-banner {
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: linear-gradient(130deg, rgba(79, 70, 229, 0.08), rgba(59, 130, 246, 0.12));
}

.time-entry-banner-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.25));
    color: #3730a3;
}

.time-entry-layout-expanded {
    grid-template-columns: 1fr;
}

.time-entry-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #312e81;
}

    .time-entry-tip i {
        font-size: 1.2rem;
        margin-top: 0.2rem;
    }

.time-entry-tip-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.time-entry-tip-wrapper {
    background: linear-gradient(160deg, #f8f9fb 0%, #eef2ff 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

    .time-entry-tip-wrapper .main-card-body {
        gap: 0.9rem;
    }

.time-entry-hours-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.searchable-select-wrapper {
    position: relative;
    width: 100%;
}

    .searchable-select-wrapper .searchable-select-input {
        width: 100%;
    }

    .searchable-select-wrapper select {
        display: none !important;
    }

.time-entry-summary-card .main-card-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.time-entry-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-entry-summary-hours {
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.75rem 0.25rem;
    background-color: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
}

    .time-entry-summary-hours .form-label {
        font-weight: 600;
        color: #4338ca;
    }

.time-entry-summary-hours-status {
    margin-top: 0.5rem;
}

    .time-entry-summary-hours-status.text-muted {
        color: #6b7280 !important;
    }

.time-entry-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 576px) {
    .time-entry-summary-item {
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
    }
}

.time-entry-summary-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 140px;
}

@media (min-width: 768px) {
    .time-entry-summary-label {
        min-width: 160px;
    }
}

.time-entry-summary-value {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    color: #111827;
}

.time-entry-summary-value-multiline {
    white-space: pre-wrap;
}

.time-entry-summary-empty {
    font-size: 0.95rem;
}

.hourssummary-alignright {
    text-align: right !important;
}
.project-additional-details-cell {
    min-width: 220px;
    max-width: 320px;
}

.project-additional-detail-item {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .project-additional-detail-item strong {
        margin-right: 0.2rem;
    }
