* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, Arial, sans-serif; background: #f6f8fc; color: #202124; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; margin: 0; padding: 0 24px; }
.topbar { background: linear-gradient(90deg, #1a73e8, #29a3ec); color: #fff; box-shadow: 0 2px 8px rgba(26,115,232,.25); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar nav a { color: #e3efff; font-size: 14px; }
.topbar nav a:hover { color: #fff; }
.topbar nav a.active { color: #fff; font-weight: 600; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.topbar .who { color: #cfe3ff; font-size: 13px; }
main.wrap { padding: 22px 24px 48px; }
.page-title { margin: 0 0 8px; font-size: 22px; }
.muted { color: #5f6368; }
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 520px; }
.search input { flex: 1; padding: 9px 12px; border: 1px solid #dadce0; border-radius: 8px; font-size: 14px; background: #fff; }
.search input:focus { outline: 2px solid #1a73e8; border-color: #1a73e8; }
button, .btn { background: #1a73e8; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-size: 14px; cursor: pointer; display: inline-block; }
button:hover, .btn:hover { background: #1765cc; text-decoration: none; color: #fff; }
.chips { display: flex; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; background: #e8eef7; color: #374151; font-size: 13px; }
.chip.active { background: #1a73e8; color: #fff; }
.count { color: #5f6368; font-size: 13px; }
select.filter { padding: 8px 10px; border: 1px solid #dadce0; border-radius: 8px; font-size: 13px; background: #fff; }
/* tabela imenika */
.tblwrap { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 8px 12px; border-bottom: 1px solid #f0f3f8; text-align: left; font-size: 14px; vertical-align: middle; }
.tbl th { background: #f8fafd; color: #5f6368; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tbl th a { color: #5f6368; }
.tbl th a:hover { color: #1a73e8; text-decoration: none; }
.tbl tbody tr:hover { background: #f4f8ff; }
.td-name { display: flex; align-items: center; gap: 10px; }
.td-name .nm { font-weight: 600; }
.td-name .pos-sm { color: #5f6368; font-size: 12px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.avatar.sm { width: 44px; height: 44px; }
.avatar.xs { width: 36px; height: 36px; }
.avatar-init { display: flex; align-items: center; justify-content: center; background: #1a73e8; color: #fff; font-weight: 700; }
.avatar-init.sm { font-size: 14px; } .avatar-init.xs { font-size: 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-style: normal; white-space: nowrap; }
.badge-green { background: #e6f4ea; color: #188038; }
.badge-amber { background: #fef7e0; color: #b06000; }
.badge-blue { background: #e8f0fe; color: #1a73e8; }
.badge-gray { background: #e8eef7; color: #374151; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 12px; font-size: 13px; color: #5f6368; }
.pager a, .pager span.cur { padding: 6px 11px; border-radius: 7px; border: 1px solid #dadce0; color: #1a73e8; background: #fff; }
.pager span.cur { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.pager a:hover { border-color: #1a73e8; text-decoration: none; }
.form .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; max-width: 900px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #374151; }
.form label.full { grid-column: 1 / -1; }
.form label.chk { flex-direction: row; align-items: center; gap: 8px; }
.form input, .form select, .form textarea { padding: 9px 10px; border: 1px solid #dadce0; border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #1a73e8; border-color: #1a73e8; }
.form-actions { margin-top: 18px; display: flex; gap: 14px; align-items: center; }
.notice { background: #e6f4ea; color: #188038; border: 1px solid #a8dab5; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.alert { background: #fce8e6; color: #d93025; border: 1px solid #f5b7b1; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1a73e8 0%, #29a3ec 100%); }
.login-card { background: #fff; padding: 34px; border-radius: 16px; box-shadow: 0 16px 40px rgba(11,87,208,.25); width: 390px; }
.login-card .lgo { display: flex; justify-content: center; margin-bottom: 10px; }
.login-card .lgo img { width: 56px; height: 56px; }
.login-card h1 { margin: 0 0 4px; font-size: 22px; color: #1a73e8; text-align: center; }
.login-card p.muted { text-align: center; }
.login-card label { display: block; margin: 14px 0; font-size: 13px; color: #374151; }
.login-card input { width: 100%; padding: 10px; border: 1px solid #dadce0; border-radius: 8px; margin-top: 5px; font-size: 14px; }
.login-card input:focus { outline: 2px solid #1a73e8; border-color: #1a73e8; }
.login-card button { width: 100%; margin-top: 6px; padding: 11px; }
.foot { color: #9aa0a6; font-size: 12px; padding: 18px 24px; }
/* org chart */
.org-chart { overflow-x: auto; padding: 10px 0; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding-left: 26px; }
.org-tree { padding-left: 0; }
.org-tree li { position: relative; padding: 8px 0 0 0; }
.org-tree ul { border-left: 2px solid #d3e3fd; margin-left: 22px; }
.org-node { display: inline-flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e3e8f0; border-radius: 10px; padding: 8px 14px; margin: 4px 0; }
.org-txt strong { display: block; font-size: 14px; }
.org-txt span { display: block; font-size: 12px; color: #5f6368; margin: 1px 0 3px; }
@media (max-width: 760px) {
  .form .form-grid { grid-template-columns: 1fr; }
  .topbar .wrap { height: auto; padding: 10px 16px; flex-direction: column; gap: 8px; }
  .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
}
