:root {
    --app-bg: #f4f6fb;
    --app-surface: #ffffff;
    --app-border: #e4e7ec;
    --app-text: #101828;
    --app-muted: #667085;
    --app-primary: #1d4ed8;
    --app-primary-hover: #1e40af;
    --app-primary-soft: #eef2ff;
    --app-success: #059669;
    --app-success-soft: #ecfdf5;
    --app-warning: #d97706;
    --app-warning-soft: #fffbeb;
    --app-danger: #dc2626;
    --app-danger-soft: #fef2f2;
    --app-shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --app-shadow: 0 4px 14px rgba(16,24,40,.06);
    --app-radius: 12px;
    --app-radius-sm: 8px;
    --app-navbar: #0f172a;
}

* { box-sizing: border-box; }

html, body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter',
                 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

main.container { max-width: 1140px; }

/* ---------- Навбар ---------- */
.app-navbar {
    background: var(--app-navbar) !important;
    padding: .65rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.app-navbar .navbar-brand {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.app-navbar .navbar-brand i {
    font-size: 1.35rem;
    color: #93c5fd;
}
.app-navbar .nav-link {
    color: rgba(255,255,255,.75);
    padding: .5rem .85rem !important;
    border-radius: var(--app-radius-sm);
    font-size: .92rem;
    transition: all .15s;
}
.app-navbar .nav-link i { margin-right: .25rem; }
.app-navbar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.app-navbar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.app-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.2);
}
.app-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.user-chip {
    background: rgba(255,255,255,.08);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 38px;
}
.user-chip:hover { background: rgba(255,255,255,.15); color: #fff; }
.user-chip i { font-size: 1.1rem; }
.user-chip-role {
    background: rgba(251,191,36,.2);
    color: #fbbf24;
    border-radius: 999px;
    padding: .05rem .5rem;
    font-size: .72rem;
    font-weight: 500;
}
.dropdown-menu {
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    border-radius: var(--app-radius-sm);
    padding: .35rem;
}
.dropdown-item {
    border-radius: 6px;
    padding: .5rem .7rem;
    font-size: .9rem;
}
.dropdown-item i { margin-right: .5rem; color: var(--app-muted); }
.dropdown-item:hover { background: var(--app-primary-soft); }

@media (max-width: 991.98px) {
    .user-chip-name { display: none; }
    .app-navbar .navbar-collapse { padding-top: .75rem; }
    .app-navbar .nav-link { padding: .6rem .5rem !important; }
}

/* ---------- Типографика ---------- */
.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -.01em;
}
.page-subtitle {
    color: var(--app-muted);
    margin: .25rem 0 0;
    font-size: .92rem;
}
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--app-text);
}

/* ---------- Кнопки ---------- */
.btn {
    border-radius: var(--app-radius-sm);
    font-weight: 500;
    padding: .55rem 1rem;
    font-size: .9rem;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--app-primary-hover);
    border-color: var(--app-primary-hover);
}
.btn-outline-secondary {
    border-color: var(--app-border);
    color: var(--app-text);
}
.btn-outline-secondary:hover {
    background: #f2f4f7;
    border-color: var(--app-border);
    color: var(--app-text);
}
.btn-success {
    background: var(--app-success);
    border-color: var(--app-success);
}
.btn-success:hover {
    background: #047857;
    border-color: #047857;
}
.btn-lg { padding: .7rem 1.25rem; font-size: 1rem; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; min-height: 34px; }

/* ---------- Карточки ---------- */
.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    background: var(--app-surface);
}
.card-body { padding: 1.25rem; }

/* ---------- Формы ---------- */
.form-label {
    font-weight: 500;
    color: var(--app-text);
    font-size: .9rem;
    margin-bottom: .35rem;
}
.form-control, .form-select {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    padding: .55rem .8rem;
    font-size: .93rem;
    min-height: 42px;
    transition: all .15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-control-lg {
    padding: .7rem 1rem;
    font-size: 1rem;
    min-height: 48px;
}
.form-text { color: var(--app-muted); font-size: .82rem; }
.invalid-feedback { font-size: .82rem; }

/* ---------- Плашки ---------- */
.app-flash {
    border: 1px solid;
    border-radius: var(--app-radius-sm);
    font-size: .92rem;
    padding: .75rem 1rem;
}
.alert-success { background: var(--app-success-soft); border-color: #a7f3d0; color: #065f46; }
.alert-danger  { background: var(--app-danger-soft);  border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--app-warning-soft); border-color: #fde68a; color: #92400e; }
.alert-info    { background: var(--app-primary-soft); border-color: #c7d2fe; color: #3730a3; }

/* ---------- Бейджи ---------- */
.badge {
    font-weight: 500;
    padding: .3rem .55rem;
    font-size: .78rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.badge-soft-secondary { background: #f2f4f7; color: #475467; }
.badge-soft-success   { background: var(--app-success-soft); color: #047857; }
.badge-soft-warning   { background: var(--app-warning-soft); color: #b45309; }
.badge-soft-danger    { background: var(--app-danger-soft); color: #b91c1c; }

/* ---------- Пустое состояние ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--app-surface);
    border: 1px dashed var(--app-border);
    border-radius: var(--app-radius);
    color: var(--app-muted);
}
.empty-state i {
    font-size: 2.5rem;
    opacity: .4;
    display: block;
    margin-bottom: .75rem;
}
.empty-state p { margin: 0 0 1rem; }

/* ---------- Плитки на главной ---------- */
.tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    text-decoration: none;
    color: var(--app-text);
    box-shadow: var(--app-shadow-sm);
    transition: all .15s;
    height: 100%;
}
.tile:hover {
    border-color: var(--app-primary);
    box-shadow: var(--app-shadow);
    transform: translateY(-1px);
    color: var(--app-text);
}
.tile-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--app-radius-sm);
    background: var(--app-primary-soft);
    color: var(--app-primary);
    font-size: 1.4rem;
}
.tile-primary .tile-icon { background: var(--app-primary); color: #fff; }
.tile-success .tile-icon { background: var(--app-success-soft); color: var(--app-success); }
.tile-body { flex: 1 1 auto; min-width: 0; }
.tile-title { font-size: 1rem; font-weight: 600; margin: 0; }
.tile-text { font-size: .85rem; color: var(--app-muted); margin: .2rem 0 0; }
.tile-arrow { color: var(--app-muted); }
.tile:hover .tile-arrow { color: var(--app-primary); }

/* ---------- Список сотрудников ---------- */
.card-list { display: flex; flex-direction: column; gap: .75rem; }
.entity-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
}
.entity-card-muted { opacity: .7; }
.entity-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 1.05rem;
}
.entity-body { flex: 1 1 auto; min-width: 0; }
.entity-title {
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}
.entity-sub { color: var(--app-muted); font-size: .85rem; margin-top: .15rem; }
.entity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .entity-card { flex-wrap: wrap; }
    .entity-actions { width: 100%; }
    .entity-actions .btn { flex: 1 1 auto; }
}

/* ---------- Таймлайн ---------- */
.timeline { overflow-x: auto; }
.timeline-hours,
.timeline-row {
    display: flex;
    align-items: center;
    min-width: 720px;
}
.timeline-hours { height: 1.5rem; margin-bottom: .25rem; }
.timeline-name-spacer,
.timeline-name {
    flex: 0 0 11rem;
    padding-right: .75rem;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.timeline-name-add {
    color: var(--app-muted);
    text-decoration: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    background: #f2f4f7;
    font-size: .75rem;
    flex: 0 0 auto;
}
.timeline-name-add:hover { background: var(--app-primary); color: #fff; }
.timeline-name-text { overflow: hidden; text-overflow: ellipsis; }
.timeline-track {
    flex: 1 1 auto;
    position: relative;
    height: 2rem;
    background: #f9fafb;
    border-radius: var(--app-radius-sm);
    border: 1px solid var(--app-border);
}
.timeline-hours .timeline-track { background: transparent; border: none; height: 1rem; }
.timeline-hour {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: .7rem;
    color: var(--app-muted);
    font-weight: 500;
}
.timeline-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: #eef0f3; }
.timeline-tick-major { background: #e4e7ec; }
.timeline-seg {
    position: absolute;
    top: 3px;
    bottom: 3px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 .4rem;
    font-size: .74rem;
    color: var(--app-text);
    font-weight: 500;
    cursor: default;
}
.timeline-seg-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-free      { background: transparent; color: #b0b7c3; }
.seg-plan      { background: #dbeafe; color: #1e40af; }
.seg-progress  { background: #fef3c7; color: #92400e; }
.seg-done      { background: #d1fae5; color: #065f46; }
.seg-cancelled { background: #f2f4f7; color: #667085; text-decoration: line-through; }
.timeline-now {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: #ef4444;
    z-index: 10;
    pointer-events: none;
    border-radius: 1px;
}
.timeline-now::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

/* ---------- Список задач админа ---------- */
.task-list { display: flex; flex-direction: column; gap: .5rem; }
.task-item {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: .9rem 1.1rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-left: 4px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
}
.task-status-plan      { border-left-color: #60a5fa; }
.task-status-in_progress { border-left-color: #f59e0b; }
.task-status-done      { border-left-color: #10b981; }
.task-status-cancelled { border-left-color: #9ca3af; }
.task-time {
    flex: 0 0 6.5rem;
    padding-top: .1rem;
}
.task-time-range { font-weight: 600; font-size: .92rem; }
.task-time-meta { font-size: .78rem; color: var(--app-muted); margin-top: .1rem; }
.task-body { flex: 1 1 auto; min-width: 0; }
.task-title { font-weight: 600; font-size: .98rem; }
.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .82rem;
    color: var(--app-muted);
    margin-top: .25rem;
}
.task-status-badge { color: var(--app-text); }
.task-desc { font-size: .87rem; color: var(--app-muted); margin-top: .35rem; }
.task-actions { display: flex; gap: .25rem; align-items: flex-start; }

/* ---------- Моя страница ---------- */
.my-task {
    display: flex;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-left: 4px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    margin-bottom: .75rem;
}
.my-task-plan        { border-left-color: #60a5fa; }
.my-task-in_progress { border-left-color: #f59e0b; }
.my-task-done        { border-left-color: #10b981; }
.my-task-cancelled   { border-left-color: #9ca3af; }
.my-task-time {
    flex: 0 0 5rem;
    text-align: center;
    padding-top: .15rem;
}
.my-task-time-range { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.my-task-body { flex: 1 1 auto; min-width: 0; }
.my-task-title { font-weight: 600; font-size: 1rem; }
.my-task-desc { color: var(--app-muted); font-size: .87rem; margin-top: .25rem; }
.my-task-status {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .5rem;
    font-size: .85rem;
    align-items: center;
}
.my-task-actions { display: flex; align-items: flex-start; }

@media (max-width: 575.98px) {
    .my-task { flex-wrap: wrap; }
    .my-task-time { flex: 0 0 100%; text-align: left; }
    .my-task-time-range { display: inline; }
    .my-task-time-range br { display: none; }
    .my-task-time-range .text-muted { display: none; }
    .my-task-actions { width: 100%; }
    .my-task-actions .btn { width: 100%; }
    .task-item { flex-wrap: wrap; }
    .task-time { flex: 0 0 100%; }
    .task-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Инфо о логине ---------- */
.info-label { color: var(--app-muted); font-size: .82rem; }
.info-value { font-weight: 500; margin-top: .15rem; }
.password-reveal {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: var(--app-radius-sm);
    padding: .6rem .9rem;
    font-size: 1.1rem;
    letter-spacing: .03em;
}

/* ---------- Отчёты ---------- */
.stat-card {
    display: flex;
    gap: .9rem;
    padding: 1rem 1.1rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    align-items: center;
}
.stat-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: var(--app-radius-sm);
    background: var(--app-primary-soft);
    color: var(--app-primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.stat-card-success .stat-icon { background: var(--app-success-soft); color: var(--app-success); }
.stat-label { font-size: .8rem; color: var(--app-muted); }
.stat-value { font-size: 1.3rem; font-weight: 600; line-height: 1.15; }

.reports-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .85rem;
}
.reports-table th,
.reports-table td {
    padding: .55rem .65rem !important;
    white-space: nowrap;
    border-bottom: 1px solid var(--app-border);
}
.reports-table thead th {
    background: #f9fafb;
    font-weight: 500;
    color: var(--app-muted);
    font-size: .78rem;
    padding: .55rem .65rem !important;
}
.reports-table thead tr:first-child th { border-bottom: 1px solid var(--app-border); }
.reports-table thead tr:last-child th { padding-top: .3rem !important; }
.reports-table thead .group-head {
    color: var(--app-text);
    font-weight: 600;
    font-size: .82rem;
    background: #f9fafb;
}
.reports-table tbody tr:hover { background: #fafbfc; }
.reports-table .sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    min-width: 11rem;
    border-right: 1px solid var(--app-border);
    text-align: left;
}
.reports-table thead .sticky-col { background: #f9fafb; }
.reports-table tbody tr:hover .sticky-col { background: #fafbfc; }
.report-name { font-weight: 600; color: var(--app-text); }
.report-position { color: var(--app-muted); font-size: .78rem; }
.cell-alert { color: var(--app-danger); font-weight: 600; }

/* ---------- Логин ---------- */
.login-body { margin: 0; padding: 0; background: var(--app-bg); }
.login-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.login-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(147,197,253,.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(251,191,36,.1) 0%, transparent 40%);
    pointer-events: none;
}
.login-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 22rem;
}
.login-hero-logo {
    font-size: 3rem;
    color: #93c5fd;
    margin-bottom: 1.5rem;
}
.login-hero h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 .75rem;
    letter-spacing: -.02em;
}
.login-hero p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--app-bg);
}
.login-form-inner {
    width: 100%;
    max-width: 22rem;
}
.login-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 .35rem;
    letter-spacing: -.01em;
}
.login-form-sub {
    color: var(--app-muted);
    margin: 0 0 1.5rem;
    font-size: .93rem;
}

@media (max-width: 767.98px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-hero {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    .login-hero-logo { font-size: 2rem; margin-bottom: 1rem; }
    .login-hero h1 { font-size: 1.35rem; }
    .login-hero p { font-size: .9rem; }
    .login-form-wrap { padding: 1.5rem 1rem; align-items: flex-start; }
}

/* ---------- Утилиты для формы логина ---------- */
.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}
.form-check-input:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}


/* ---------- ФИКС: расширение контейнера на FullHD ---------- */
@media (min-width: 1400px) {
    main.container { max-width: 1400px; }
}

/* ---------- График месяца (компактный) ---------- */
.schedule-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .82rem;
    table-layout: fixed; /* Жесткая сетка для равномерных ячеек */
}
.schedule-table th,
.schedule-table td {
    text-align: center;
    padding: .25rem .1rem !important; /* Очень узкие отступы */
    white-space: nowrap;
    border-bottom: 1px solid var(--app-border);
    border-right: 1px solid var(--app-border);
}
.schedule-table th:last-child,
.schedule-table td:last-child {
    border-right: none;
}
.schedule-table thead th {
    background: #f9fafb;
    border-bottom: 1px solid var(--app-border);
    font-weight: 500;
    color: var(--app-muted);
    font-size: .75rem;
    padding: .4rem .1rem !important;
}
.schedule-weekday { font-size: .65rem; text-transform: uppercase; letter-spacing: .02em; }
.schedule-daynum { font-weight: 600; color: var(--app-text); font-size: .8rem; }
.schedule-table th.schedule-name,
.schedule-table td.schedule-name {
    text-align: left;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    width: 11rem;
    min-width: 11rem;
    border-right: 1px solid var(--app-border);
    font-weight: 500;
    padding: .4rem .5rem !important;
    white-space: normal; /* Разрешаем перенос имени, если длинное */
    line-height: 1.2;
}
.schedule-table thead .schedule-name { background: #f9fafb; }
.schedule-table td.schedule-name a {
    color: var(--app-primary);
    text-decoration: none;
}
.schedule-table td.schedule-name a:hover { text-decoration: underline; }
.schedule-table th.schedule-weekend,
.schedule-table td.schedule-weekend {
    background-color: #fafbfc;
}
.schedule-table th.schedule-today {
    background: #fef3c7 !important;
    color: #92400e;
}
.schedule-cell {
    font-size: .72rem;
    font-weight: 500;
    color: #374151;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    font-size: .82rem;
}
.legend-title { color: var(--app-muted); }
.legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.05);
}


/* ---------- ФИКС МОБИЛЬНОГО ГРАФИКА ---------- */
.schedule-table {
    table-layout: auto !important; /* Возвращаем авто-ширину */
    width: 100% !important;
    min-width: 960px !important; /* Появится горизонтальный скролл на телефонах */
}

.schedule-table th,
.schedule-table td {
    padding: 0.35rem 0.25rem !important; /* Чуть больше воздуха */
}

/* Чуть расширяем колонку с именами, чтобы длинные ФИО влезали */
.schedule-table th.schedule-name,
.schedule-table td.schedule-name {
    width: 12rem !important;
    min-width: 12rem !important;
}

/* Фикс вкладок (Сотрудники / График / Задачи) на мобильных */
.nav-underline {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}
.nav-underline .nav-link {
    white-space: nowrap;
}
