:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
}
body {
    background-color: #e9ecef;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.resume-container {
    max-width: 1100px; margin: 40px auto; background: #fff;
    border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.1); overflow: hidden;
}
.header-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff; padding: 40px 50px;
}
.header-section h1 { font-weight: 700; font-size: 2.8rem; margin-bottom: .2rem; }
.header-section .subtitle { font-size: 1.2rem; opacity: .9; font-weight: 300; }
.header-section .badge-automation {
    background: rgba(255,255,255,.2); color: #fff; padding: 8px 20px; border-radius: 30px;
    font-weight: 500; font-size: .95rem; display: inline-block; margin-top: 10px;
    border: 1px solid rgba(255,255,255,.3);
}
.header-section .contact-info a { color: #fff; text-decoration: none; opacity: .9; transition: opacity .2s; }
.header-section .contact-info a:hover { opacity: 1; text-decoration: underline; }

.section-title {
    font-weight: 700; color: #1a1a2e; border-bottom: 3px solid var(--primary-color);
    padding-bottom: 8px; margin-bottom: 20px; display: inline-block;
}
.card-experience { border-left: 4px solid var(--primary-color); padding-left: 20px; margin-bottom: 25px; }
.card-experience .company { font-weight: 700; font-size: 1.1rem; color: #1a1a2e; }
.card-experience .period { font-size: .9rem; color: var(--secondary-color); }
.card-experience .position { font-weight: 600; color: var(--primary-color); }
.skill-tag {
    background: var(--bg-light); padding: 6px 16px; border-radius: 20px; font-size: .9rem;
    margin: 0 6px 10px 0; display: inline-block; border: 1px solid #dee2e6;
}
.automation-block {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-radius: 12px; padding: 25px; border: 1px solid #cfe2ff; margin-top: 20px;
}
.automation-block ul { list-style: none; padding-left: 0; }
.automation-block ul li { padding: 6px 0; border-bottom: 1px solid rgba(13,110,253,.1); }
.automation-block ul li:last-child { border-bottom: none; }
.automation-block ul li i { color: var(--primary-color); margin-right: 12px; width: 20px; }
.qr-badge {
    background: #fff; border-radius: 8px; padding: 4px 12px;
    border: 1px dashed var(--primary-color); font-size: .85rem;
}
.footer-note {
    background: var(--bg-light); padding: 20px 50px; border-top: 1px solid #dee2e6;
    font-size: .9rem; color: var(--secondary-color); text-align: center;
}

/* Dashboard */
.dashboard-card { transition: transform .2s; }
.dashboard-card:hover { transform: translateY(-2px); }
.chart-container { position: relative; height: 300px; width: 100%; }
.task-block { background: #fff; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
.task-header { padding: 12px 20px; background: #e9ecef; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dee2e6; }
.task-title { font-weight: 600; color: #0d6efd; }
.badge-hours { background: #0d6efd; color: #fff; padding: 3px 12px; border-radius: 20px; font-size: .85rem; }
.user-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.user-table th { background: #f2f4f7; padding: 8px 12px; text-align: left; }
.user-table td { padding: 8px 12px; border-bottom: 1px solid #f1f3f5; }
.hours-cell { font-weight: 600; text-align: right; }

@media (max-width: 768px) {
    .header-section { padding: 30px 20px; }
    .header-section h1 { font-size: 2rem; }
    .resume-container { margin: 15px; }
}

/* ===== Секция "Отчетность сотрудников (форма заполнения)" ===== */
.worklog-inline-section {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    margin-top: 12px;
}
.worklog-inline-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f2f4f7;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
}
.worklog-inline-body {
    padding: 0;
}
/* В инлайн-режиме карточка не имеет внешней рамки — она уже в секции */
.worklog-card {
    background: #fff;
    border-radius: 0;
}
.worklog-card .modal-header {
    border-radius: 0;
}
.worklog-inline-section .modal-body,
.worklog-card .modal-body {
    padding: 20px;
}
.worklog-table {
    border: none !important;
    margin-bottom: 8px;
}
.worklog-table td,
.worklog-table th {
    padding: .35rem .4rem;
    vertical-align: middle;
}
.worklog-table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}
.worklog-table .form-select-sm,
.worklog-table .form-control-sm {
    font-size: .8rem;
}

/* Внутри модалки, чтобы не терялось */
.modal-80 {
    max-width: 80vw;
    width: 80vw;
}
@media (max-width: 992px) {
    .modal-80 { max-width: 95vw; width: 95vw; }
}