:root { --nav: #fff; --blue: #1467cc; --blue-hover: #0f55ac; --surface: #fff; --border: #e6e8eb; --body: #fafafa; --text: #303641; --muted: #7c828d; }
@font-face { font-family: Flaticon; src: url('../fonts/Flaticon.woff') format('woff'); font-display: block; }
.nav-icon::before { font-family: Flaticon; font-size: 19px; font-style: normal; font-weight: normal; line-height: 1; }
.flaticon-users::before { content: '\f12a'; }
.flaticon-placeholder::before { content: '\f15d'; }
.flaticon-location::before { content: '\f12d'; }
.flaticon-suitcase::before { content: '\f13b'; }
.flaticon-profile::before { content: '\f127'; }
.flaticon-graph::before { content: '\f1a2'; }
.flaticon-pie-chart::before { content: '\f1a3'; }
.flaticon-download::before { content: '\f1ba'; }
.flaticon-file::before { content: '\f143'; }
.flaticon-photo-camera::before { content: '\f189'; }
.flaticon-home::before { content: '\f133'; }
.flaticon-calendar::before { content: '\f140'; }
.flaticon-settings::before { content: '\f14e'; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--body); color: var(--text); font: 15px/1.5 Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea, summary { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #72afff; outline-offset: 2px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { flex: 0 0 216px; min-width: 0; background: var(--nav); color: var(--muted); border-right: 1px solid #ececec; overflow: hidden; }
.brand { display: flex; align-items: center; justify-content: center; height: 69px; margin: 0; border-bottom: 1px solid #efefef; }
.brand img { display: block; width: 150px; max-width: 85%; height: auto; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 20px; border-left: 3px solid transparent; color: #7e838b; font-size: 13px; }
.sidebar nav .nav-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; color: #1d7af3; }
.sidebar nav a:hover, .sidebar nav a:focus { background: #f0f0f0; color: #3b414a; }
.sidebar nav a[aria-current="page"] { background: #e6e6e6; border-left-color: #1d7af3; color: #626873; font-weight: 600; }
.sidebar nav a[aria-current="page"] .nav-icon { color: #1d7af3; }
.sidebar nav .home-link { margin: 0 0 4px; }
.nav-heading { display: block; padding: 18px 27px 10px; color: #777b82; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.nav-group summary { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 23px; color: #7e838b; font-size: 13px; cursor: pointer; list-style: none; }
.nav-group summary span { flex: 1; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: '⌄'; color: #58606b; font-size: 16px; line-height: 1; transition: transform .15s ease; }
.nav-group[open] summary::after { transform: rotate(180deg); }
.nav-group summary:hover, .nav-group summary:focus-visible { background: #f0f0f0; color: #3b414a; }
.nav-submenu { margin: 0 0 6px; }
.sidebar nav .nav-submenu a { padding-left: 33px; font-size: 12px; }
.app-shell.nav-collapsed .sidebar { flex-basis: 0; width: 0; border: 0; }
.main-area { min-width: 0; flex: 1; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 51px; padding: 6px 25px; background: #e6e6e6; }
.topbar form { display: flex; gap: 14px; align-items: center; }
.sidebar-toggle { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 34px; height: 34px; padding: 8px; border: 0; border-radius: 50%; background: #f7f7f7; }
.sidebar-toggle span { display: block; height: 2px; width: 17px; background: #858f9c; border-radius: 2px; }
.username { display: inline-block; padding: 6px 13px; border: 1px solid #10407c; border-radius: 18px; background: var(--blue); color: #fff; font-size: 11px; }
.text-button { border: 0; background: transparent; color: #59616c; font-size: 12px; }
.text-button:hover { color: var(--blue); }
.content { padding: 26px 28px; }
h1 { margin: 0 0 20px; font-size: 21px; font-weight: 400; }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-heading h1 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 22px; box-shadow: 0 2px 8px #00000008; }
.cards .card strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 18px; }
.cards .card span { color: var(--muted); }
.dashboard-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 386px)); }
.dashboard-tile { display: flex; align-items: center; gap: 26px; min-height: 85px; padding: 16px 30px; border-radius: 4px; background: var(--blue); color: #fff; box-shadow: 0 2px 8px #0000000d; }
.dashboard-tile:hover, .dashboard-tile:focus-visible { background: var(--blue-hover); color: #fff; }
.dashboard-tile .nav-icon::before { font-size: 34px; }
.dashboard-tile strong, .dashboard-tile small { display: block; color: #fff; }
.dashboard-tile strong { font-size: 14px; font-weight: 600; }
.dashboard-tile small { margin-top: 2px; font-size: 11px; opacity: .85; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { background: #f6f7f8; font-weight: 600; }
tbody tr:hover { background: #f3f7fd; }
.empty { color: var(--muted); text-align: center; }
.section-status { display: inline-block; margin: 0 0 8px; padding: 4px 9px; border-radius: 4px; background: #eef5ff; color: var(--blue); font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 18px; }
.pager a, .pager-current, .pager-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid #e1e5eb; border-radius: 18px; background: #fff; font-size: 12px; }
.pager-current { background: #1672dc; border-color: #1672dc; color: #fff; }
.pager-gap { border-color: transparent; }
.pager a:hover { background: #eef5ff; }
.list-search { display: flex; justify-content: flex-end; align-items: end; gap: 8px; margin: 0 0 16px; }
.list-search label { display: grid; gap: 4px; color: #69717b; font-size: 12px; }
.list-search input { min-width: 220px; height: 36px; }
.list-search .button { height: 36px; }
.button { display: inline-block; padding: 8px 14px; background: var(--blue); border: 1px solid var(--blue); border-radius: 4px; color: #fff; }
.button:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.button.secondary { background: #fff; color: var(--blue); }
.button.secondary:hover { background: #eef5ff; color: var(--blue-hover); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-actions form { margin: 0; }
.text-action { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; cursor: pointer; }
.text-action:hover { text-decoration: underline; }
.text-action.danger { color: #b83232; }
.history-state { white-space: normal; min-width: 180px; }
.employee-list-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.filters label { display: grid; gap: 4px; }
.filters select { min-width: 180px; height: 36px; }
.form-card { max-width: 700px; }
.position-card { width: 100%; max-width: none; }
.site-form, .position-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-form label, .position-form label { display: grid; align-content: start; gap: 6px; font-size: 13px; font-weight: 600; }
.site-form input, .position-form input:not([type='checkbox']), .position-form textarea { min-width: 0; width: 100%; font-weight: 400; }
.position-form textarea { resize: vertical; }
.position-form .form-check { grid-column: 1 / -1; }
.legal-entity-form { display: grid; gap: 18px; max-width: 500px; }
.legal-entity-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.legal-entity-form input { width: 100%; font-weight: 400; }
.detail-list { display: grid; grid-template-columns: minmax(140px, 210px) 1fr; gap: 12px 18px; margin: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.employee-form { display: grid; gap: 18px; }
.employee-section h2 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.employee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.employee-shift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-grid label { display: grid; align-content: start; gap: 6px; font-size: 13px; font-weight: 600; }
.employee-grid input, .employee-grid select { min-width: 0; width: 100%; font-weight: 400; }
.correction-reason { display: grid; gap: 6px; width: 100%; font-size: 13px; font-weight: 600; }
.correction-reason textarea { display: block; width: 100%; min-height: 76px; resize: vertical; font-weight: 400; }
.employee-subsection { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border); }
.employee-subsection h3 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.employee-hint { margin: -5px 0 18px; color: var(--muted); }
.employee-actions { display: flex; justify-content: flex-start; }
.shift-photo-pair { display: flex; flex-wrap: wrap; gap: 24px; margin: 22px 0; }
.shift-photo-pair figure { display: grid; align-content: start; gap: 10px; width: min(280px, 100%); margin: 0; }
.shift-photo-pair figcaption { color: #69717b; font-size: 13px; }
.shift-photo-pair img { display: block; width: 100%; max-height: 230px; object-fit: cover; border: 10px solid #fff; box-shadow: 0 2px 16px #00000012; }
.photo-report-filters { margin-bottom: 18px; }
.photo-report-filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.photo-report-filter-form label { display: grid; gap: 5px; min-width: 220px; color: #69717b; font-size: 13px; }
.photo-report-filter-form input { height: 36px; }
.photo-report-filter-form .button { height: 36px; }
.photo-report-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.photo-report-person { display: grid; gap: 5px; width: 100%; padding: 13px; border: 1px solid #e6e8eb; border-radius: 5px; background: #fff; color: var(--text); text-align: left; }
.photo-report-person:hover, .photo-report-person:focus-visible { border-color: #72afff; box-shadow: 0 2px 10px #00000012; }
.photo-report-person strong { font-size: 15px; }
.photo-report-person small { color: var(--muted); }
.photo-report-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 8px 30px #00000035; }
.photo-report-dialog::backdrop { background: #0006; }
.photo-report-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 16px; border-bottom: 1px solid #eee; }
.photo-report-dialog-head strong { font-size: 14px; }
.photo-report-dialog-head .muted { font-size: 12px; }
.photo-report-dialog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eee; }
.photo-report-dialog-filters label { display: grid; gap: 4px; color: #69717b; font-size: 12px; }
.photo-report-dialog-filters select { height: 38px; min-width: 72px; }
.photo-report-dialog-body { max-height: 65vh; overflow: auto; padding: 12px 16px 18px; }
.photo-report-table th:first-child, .photo-report-table td:first-child { width: 120px; }
.photo-report-table tbody tr:nth-child(odd) { background: #f0f0f0; }
.photo-report-day { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px 18px; white-space: normal; }
.photo-report-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.photo-report-thumbs img { width: 88px; height: 88px; object-fit: cover; border-radius: 5px; border: 1px solid #ddd; }
.employee-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.employee-wide { grid-column: 1 / -1; }
.employee-top-actions { margin: -7px 0 18px; }
.photo-panel { display: grid; gap: 16px; }
.photo-panel .employee-hint { margin: 0; }
.photo-video { display: block; width: min(640px, 100%); max-height: 480px; background: #1d2635; border-radius: 4px; }
.photo-video[hidden] { display: none; }
.photo-actions { gap: 10px; }
.photo-file-label { display: grid; gap: 6px; max-width: 480px; font-size: 13px; font-weight: 600; }
.photo-panel #photo-confirmation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.photo-panel #photo-confirmation[hidden] { display: none; }
.photo-panel #photo-person { flex-basis: 100%; margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
.form-actions { grid-column: 1 / -1; }
.error ul { margin: 0; padding-left: 20px; }
input, select, textarea { padding: 6px 9px; border: 1px solid #e3e7ed; border-radius: 3px; background: #fff; font-size: 13px; line-height: 1.35; }
input[type='checkbox'], input[type='radio'] { padding: 0; }
.notice { padding: 10px 14px; background: #dff5e6; border-radius: 4px; margin-bottom: 16px; }
.error { padding: 10px 14px; background: #fce4e4; border-radius: 4px; margin-bottom: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background-color: #efefee; background-image: url('../images/login-pattern.svg'); background-repeat: repeat; background-position: center; background-size: 820px 312px; }
.login-card { width: min(360px, 100%); min-height: 454px; background: #fff; padding: 53px 32px 42px; border-radius: 5px; box-shadow: 0 0 12px #a09f9f2e; }
.login-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 6px; border-radius: 6px; }
.login-brand img { display: block; max-width: 100%; width: 276px; height: auto; }
.login-card .login-subtitle { margin: 0; color: #7e828a; text-align: center; font-size: 17px; font-weight: 300; line-height: 1.15; }
.login-card form { display: grid; gap: 24px; margin-top: 35px; }
.login-card form input:not([type='hidden']) { width: 100%; padding: 7px 0; border: 0; border-bottom: 1px solid #e4e8ef; border-radius: 0; background: transparent; font-size: 12px; }
.login-card form input:not([type='hidden']):focus { outline: 0; border-bottom-color: var(--blue); }
.login-card form input::placeholder { color: #8d939e; opacity: 1; }
.password-field { position: relative; }
.password-field input { padding-right: 34px !important; }
.password-toggle { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 32px; height: 34px; padding: 0; border: 0; background: transparent; color: #5e6370; }
.login-card form .button { justify-self: center; min-width: 122px; margin-top: 25px; padding: 13px 22px; border-radius: 28px; background: var(--blue); border-color: var(--blue); font-size: 12px; }
.login-card form .button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
[hidden] { display: none !important; }
.select2-container { max-width: 100%; font-size: 13px; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple { min-height: 36px; border-color: #e3e7ed; border-radius: 3px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 9px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; gap: 2px; }
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field { width: 100% !important; min-width: 100px; margin-top: 7px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: #347dbb; }
.select2-dropdown { border-color: #e3e7ed; box-shadow: 0 7px 18px #00000018; }
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection { border-color: #72afff !important; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 7px 15px; padding: 14px 0 18px; }
.check { display: inline-flex !important; align-items: center; gap: 5px !important; margin-right: 12px; white-space: nowrap; }
.check input { padding: 0; }
@media (max-width: 780px) { .app-shell { display: block; } .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); } .app-shell.nav-collapsed .sidebar { display: none; } .sidebar nav { display: block; padding-bottom: 8px; } .brand { justify-content: flex-start; padding-left: 20px; } .topbar, .content { padding: 12px 14px; } .topbar form { flex-wrap: wrap; justify-content: flex-end; } .dashboard-cards { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .employee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .employee-details { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .site-form, .position-form, .detail-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .employee-grid { grid-template-columns: 1fr; } }
