/* ============================================================================
 * app.css — auto-generisano iz <style> blokova PHP fajlova.
 * Datum:    2026-09-26 08:13:52
 * Izvora:   17 fajlova / 17 <style> blokova
 * Pravila:  571 (duplikata uklonjeno: 173)
 * NE MENJAJ RUČNO — pokreni build-css.php ponovo.
 * ========================================================================== */

/* iz: activityLog.php */
.page-head {
    margin-bottom: 16px;
}

/* iz: activityLog.php */
.page-head h1 {
    margin: 0 0 4px; font-size: 1.5rem; color: #0f172a;
}

/* iz: activityLog.php */
.page-head .sub {
    margin: 0; color: #64748b;
}

/* iz: activityLog.php */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* iz: activityLog.php */
.alert {
    border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem;
}

/* iz: activityLog.php */
.alert-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}

/* iz: activityLog.php */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

/* iz: activityLog.php */
.field {
    display: flex; flex-direction: column; gap: 6px;
}

/* iz: activityLog.php */
.field-wide {
    grid-column: 1 / -1;
}

/* iz: activityLog.php */
label {
    font-size: .8rem; color: #334155; font-weight: 700;
}

/* iz: activityLog.php */
input[type=text], input[type=date], select {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: .9rem;
    background: #fff;
}

/* iz: activityLog.php */
.actions {
    display: flex;
    gap: 8px;
    align-items: end;
}

/* iz: activityLog.php */
.btn {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* iz: activityLog.php */
.btn-light {
    border-color: #cbd5e1;
    background: #fff;
    color: #0f172a;
}

/* iz: activityLog.php */
.btn.disabled {
    pointer-events: none;
    opacity: .5;
}

/* iz: activityLog.php */
.meta {
    margin-bottom: 10px; color: #64748b; font-size: .84rem;
}

/* iz: activityLog.php */
.table-wrap {
    overflow: auto;
}

/* iz: activityLog.php */
table {
    width: 100%; border-collapse: collapse; min-width: 980px;
}

/* iz: activityLog.php */
th, td {
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    padding: 10px 8px;
    font-size: .84rem;
}

/* iz: activityLog.php */
th {
    color: #334155;
    background: #f8fafc;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* iz: activityLog.php */
.muted {
    color: #94a3b8; font-size: .74rem; margin-top: 2px;
}

/* iz: activityLog.php */
.ua {
    max-width: 360px; word-break: break-word; color: #334155;
}

/* iz: activityLog.php */
.empty {
    text-align: center; color: #64748b; padding: 22px;
}

/* iz: activityLog.php */
.pager {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* iz: activityLog.php */
.pager-info {
    color: #475569; font-size: .84rem;
}

/* iz: app/admin/user_add.php */
.back-link {
    display: inline-block; color: #2563eb; text-decoration: none;
    font-size: .9rem; font-weight: 500;
}

/* iz: app/admin/user_add.php */
.back-link:hover {
    text-decoration: underline;
}

/* iz: app/admin/user_add.php */
.alert span {
    flex-shrink: 0; font-size: 1.1rem;
}

/* iz: app/admin/user_add.php */
.form-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 30px 32px; max-width: 720px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* iz: app/admin/user_add.php */
.field label {
    display: block; font-size: .85rem; font-weight: 600;
    color: #334155; margin-bottom: 6px;
}

/* iz: app/admin/user_add.php */
.field .req {
    color: #dc2626; font-weight: 700;
}

/* iz: app/admin/user_add.php */
.field input[type=text], .field input[type=email], .field input[type=password] {
    width: 100%; padding: 11px 14px;
    border: 1px solid #cbd5e1; border-radius: 10px;
    font-size: .95rem; color: #0f172a; background: #fff;
    outline: none; transition: .15s;
}

/* iz: app/admin/user_add.php */
.field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* iz: app/admin/user_add.php */
.field.has-error input {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

/* iz: app/admin/user_add.php */
.field.has-error label {
    color: #991b1b;
}

/* iz: app/admin/user_add.php */
.field .hint {
    margin: 6px 0 0; font-size: .78rem; color: #94a3b8;
}

/* iz: app/admin/user_add.php */
.field .hint code {
    background: #f1f5f9; padding: 1px 5px; border-radius: 4px;
    font-size: .78rem; color: #334155;
}

/* iz: app/admin/user_add.php */
.error-msg {
    margin: 6px 0 0; font-size: .82rem; color: #dc2626; font-weight: 500;
}

/* iz: app/admin/user_add.php */
.field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* iz: app/admin/user_add.php */
.input-wrap {
    position: relative;
}

/* iz: app/admin/user_add.php */
.input-wrap input {
    padding-right: 44px !important;
}

/* iz: app/admin/user_add.php */
.toggle-pass {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; padding: 8px;
    border-radius: 8px; cursor: pointer; color: #64748b;
    font-size: 1rem; line-height: 1;
    transition: background .15s, color .15s;
}

/* iz: app/admin/user_add.php */
.toggle-pass:hover {
    background: #f1f5f9; color: #0f172a;
}

/* iz: app/admin/user_add.php */
.pw-strength {
    display: flex; align-items: center; gap: 10px;
    margin: -8px 0 18px;
}

/* iz: app/admin/user_add.php */
.pw-bar {
    flex: 1; height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden;
}

/* iz: app/admin/user_add.php */
.pw-bar-fill {
    height: 100%; width: 0; border-radius: 99px;
    background: #dc2626; transition: width .2s, background .2s;
}

/* iz: app/admin/user_add.php */
.pw-label {
    font-size: .78rem; color: #64748b; font-weight: 600; min-width: 60px;
    text-align: right;
}

/* iz: app/admin/user_add.php */
.radio-group {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* iz: app/admin/user_add.php */
.radio-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px;
    cursor: pointer; transition: .15s; background: #fff;
}

/* iz: app/admin/user_add.php */
.radio-card:hover {
    border-color: #94a3b8; background: #fafbfc;
}

/* iz: app/admin/user_add.php */
.radio-card input[type=radio] {
    position: absolute; opacity: 0; pointer-events: none;
}

/* iz: app/admin/user_add.php */
.radio-card .radio-icon {
    font-size: 1.4rem; line-height: 1; margin-top: 2px;
}

/* iz: app/admin/user_add.php */
.radio-card .radio-body {
    display: flex; flex-direction: column; gap: 2px;
}

/* iz: app/admin/user_add.php */
.radio-card .radio-body strong {
    font-size: .95rem; color: #0f172a;
}

/* iz: app/admin/user_add.php */
.radio-card .radio-body small {
    font-size: .78rem; color: #64748b; line-height: 1.4;
}

/* iz: app/admin/user_add.php */
.radio-card.selected {
    border-color: #2563eb; background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* iz: app/admin/user_add.php */
.switch-label {
    display: flex; align-items: flex-start; gap: 12px;
    cursor: pointer; padding: 12px 0;
}

/* iz: app/admin/user_add.php */
.switch-label input[type=checkbox] {
    position: absolute; opacity: 0; pointer-events: none;
}

/* iz: app/admin/user_add.php */
.switch {
    position: relative; width: 44px; height: 24px;
    background: #cbd5e1; border-radius: 99px; transition: .2s;
    flex-shrink: 0; margin-top: 2px;
}

/* iz: app/admin/user_add.php */
.switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 20px; height: 20px; background: #fff; border-radius: 50%;
    transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* iz: app/admin/user_add.php */
.switch-label input:checked + .switch {
    background: #2563eb;
}

/* iz: app/admin/user_add.php */
.switch-label input:checked + .switch::after {
    transform: translateX(20px);
}

/* iz: app/admin/user_add.php */
.switch-text {
    display: flex; flex-direction: column; gap: 2px;
}

/* iz: app/admin/user_add.php */
.switch-text strong {
    font-size: .92rem; color: #0f172a;
}

/* iz: app/admin/user_add.php */
.switch-text small {
    font-size: .78rem; color: #64748b;
}

/* iz: app/admin/user_add.php */
.form-actions {
    display: flex; justify-content: flex-end; gap: 12px;
    padding-top: 20px; border-top: 1px solid #f1f5f9; margin-top: 8px;
}

/* iz: app/admin/user_add.php */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
    font-size: .95rem; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: .15s;
    box-shadow: 0 8px 18px rgba(37,99,235,.25);
}

/* iz: app/admin/user_add.php */
.btn-primary:hover {
    filter: brightness(1.05); transform: translateY(-1px);
}

/* iz: app/admin/user_add.php */
.btn-secondary {
    display: inline-flex; align-items: center;
    padding: 11px 20px; border-radius: 12px;
    border: 1px solid #cbd5e1; background: #fff; color: #0f172a;
    font-size: .95rem; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: .15s;
}

/* iz: app/admin/user_add.php */
.btn-secondary:hover {
    background: #f1f5f9; border-color: #94a3b8;
}

/* iz: app/admin/user_delete.php */
.danger-card {
    max-width: 720px; background: #fff; border-radius: 16px;
    padding: 28px 32px; border: 1px solid #fecaca;
    box-shadow: 0 4px 16px rgba(220,38,38,.06);
}

/* iz: app/admin/user_delete.php */
.danger-card.blocked {
    border-color: #fcd34d; box-shadow: 0 4px 16px rgba(245,158,11,.08);
}

/* iz: app/admin/user_delete.php */
.danger-header {
    display: flex; gap: 16px; align-items: flex-start;
    padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; margin-bottom: 20px;
}

/* iz: app/admin/user_delete.php */
.danger-icon {
    font-size: 2rem; line-height: 1; flex-shrink: 0;
}

/* iz: app/admin/user_delete.php */
.danger-header h2 {
    margin: 0 0 6px; font-size: 1.2rem; color: #0f172a;
}

/* iz: app/admin/user_delete.php */
.danger-header p {
    margin: 0; color: #475569; font-size: .92rem; line-height: 1.55;
}

/* iz: app/admin/user_delete.php */
.user-preview {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; background: #f8fafc; border-radius: 12px; margin-bottom: 20px;
}

/* iz: app/admin/user_delete.php */
.avatar {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}

/* iz: app/admin/user_delete.php */
.preview-meta {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
}

/* iz: app/admin/user_delete.php */
.preview-meta strong {
    font-size: 1.05rem; color: #0f172a;
}

/* iz: app/admin/user_delete.php */
.preview-meta .muted {
    color: #64748b; font-size: .88rem; word-break: break-all;
}

/* iz: app/admin/user_delete.php */
.chips {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;
}

/* iz: app/admin/user_delete.php */
.chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 600;
}

/* iz: app/admin/user_delete.php */
.chip-admin {
    background: #fef3c7; color: #92400e;
}

/* iz: app/admin/user_delete.php */
.chip-user {
    background: #e0e7ff; color: #3730a3;
}

/* iz: app/admin/user_delete.php */
.chip-active {
    background: #dcfce7; color: #166534;
}

/* iz: app/admin/user_delete.php */
.chip-inactive {
    background: #f1f5f9; color: #64748b;
}

/* iz: app/admin/user_delete.php */
.chip-locked {
    background: #fee2e2; color: #991b1b;
}

/* iz: app/admin/user_delete.php */
.info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
    margin: 0 0 24px;
}

/* iz: app/admin/user_delete.php */
.info-grid > div {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 0; border-bottom: 1px dashed #e2e8f0;
}

/* iz: app/admin/user_delete.php */
.info-grid dt {
    font-size: .72rem; text-transform: uppercase;
    color: #64748b; font-weight: 600; letter-spacing: .05em;
}

/* iz: app/admin/user_delete.php */
.info-grid dd {
    margin: 0; font-size: .95rem; color: #0f172a;
}

/* iz: app/admin/user_delete.php */
.info-grid .muted {
    color: #94a3b8; font-style: italic;
}

/* iz: app/admin/user_delete.php */
.confirm-form {
    margin-top: 8px; padding-top: 20px; border-top: 1px solid #f1f5f9;
}

/* iz: app/admin/user_delete.php */
.confirm-check {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 16px; border-radius: 12px;
    background: #fef2f2; border: 1px solid #fecaca;
    cursor: pointer; font-size: .9rem; line-height: 1.5; color: #7f1d1d;
    margin-bottom: 20px;
}

/* iz: app/admin/user_delete.php */
.confirm-check input[type=checkbox] {
    width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
    accent-color: #dc2626; cursor: pointer;
}

/* iz: app/admin/user_delete.php */
.btn-danger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff;
    font-size: .95rem; font-weight: 600; cursor: pointer; transition: .15s;
    box-shadow: 0 8px 18px rgba(220,38,38,.25);
}

/* iz: app/admin/user_delete.php */
.btn-danger:hover:not(:disabled) {
    filter: brightness(1.05); transform: translateY(-1px);
}

/* iz: app/admin/user_delete.php */
.btn-danger:disabled {
    opacity: .55; cursor: not-allowed; box-shadow: none;
    background: #94a3b8;
}

/* iz: app/admin/user_edit.php */
.alert-info {
    background: #eff6ff; border-color: #bfdbfe; color: #1e40af;
}

/* iz: app/admin/user_edit.php */
.alert-warning {
    background: #fffbeb; border-color: #fde68a; color: #92400e;
}

/* iz: app/admin/user_edit.php */
.user-hero {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 20px 24px; margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
    flex-wrap: wrap;
}

/* iz: app/admin/user_edit.php */
.user-hero .avatar {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.4rem; flex-shrink: 0;
}

/* iz: app/admin/user_edit.php */
.hero-meta {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
}

/* iz: app/admin/user_edit.php */
.hero-meta strong {
    font-size: 1.1rem; color: #0f172a;
}

/* iz: app/admin/user_edit.php */
.hero-meta .muted {
    color: #64748b; font-size: .88rem; word-break: break-all;
}

/* iz: app/admin/user_edit.php */
.hero-chips {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;
}

/* iz: app/admin/user_edit.php */
.hero-side {
    display: flex; gap: 28px; margin-left: auto;
    padding-left: 20px; border-left: 1px solid #f1f5f9; flex-wrap: wrap;
}

/* iz: app/admin/user_edit.php */
.hero-side > div {
    display: flex; flex-direction: column; gap: 2px;
}

/* iz: app/admin/user_edit.php */
.side-lbl {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
    color: #94a3b8; font-weight: 600;
}

/* iz: app/admin/user_edit.php */
.side-val {
    font-size: .92rem; color: #0f172a; font-weight: 600;
}

/* iz: app/admin/user_edit.php */
.side-val em {
    font-style: italic; font-weight: 400; color: #94a3b8;
}

/* iz: app/admin/user_edit.php */
.chip-you {
    background: #dbeafe; color: #1e40af;
}

/* iz: app/admin/user_edit.php */
.section-h {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .07em;
    color: #2563eb; font-weight: 700;
    padding-bottom: 8px; border-bottom: 1px solid #e2e8f0;
    margin: 12px 0 18px;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}

/* iz: app/admin/user_edit.php */
.section-h:first-of-type {
    margin-top: 0;
}

/* iz: app/admin/user_edit.php */
.section-h-hint {
    font-size: .72rem; color: #94a3b8; text-transform: none;
    letter-spacing: 0; font-weight: 500;
}

/* iz: app/admin/user_edit.php */
.pw-note {
    margin: 0 0 22px; font-size: .8rem; color: #64748b;
    background: #f8fafc; border-left: 3px solid #cbd5e1;
    padding: 8px 12px; border-radius: 6px; line-height: 1.5;
}

/* iz: app/admin/users.php */
.btn-link {
    color: #dc2626; text-decoration: none; font-size: .88rem;
    align-self: center; padding: 0 4px;
}

/* iz: app/admin/users.php */
.btn-link:hover {
    text-decoration: underline;
}

/* iz: app/admin/users.php */
.alert-success {
    background: #f0fdf4; border-color: #bbf7d0; color: #166534;
}

/* iz: app/admin/users.php */
.stats-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px; margin-bottom: 22px;
}

/* iz: app/admin/users.php */
.stats-strip .stat {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 14px 16px;
}

/* iz: app/admin/users.php */
.stats-strip .ico {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}

/* iz: app/admin/users.php */
.stats-strip .lbl {
    display: block; font-size: .72rem; text-transform: uppercase;
    color: #64748b; font-weight: 600; letter-spacing: .05em;
}

/* iz: app/admin/users.php */
.stats-strip .val {
    display: block; font-size: 1.35rem; font-weight: 700; color: #0f172a;
    line-height: 1.1;
}

/* iz: app/admin/users.php */
.filter-input {
    position: relative; flex: 1; min-width: 220px;
}

/* iz: app/admin/users.php */
.filter-input .search-ico {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: #94a3b8; font-size: 1rem;
}

/* iz: app/admin/users.php */
.filter-input input {
    width: 100%; padding: 10px 14px 10px 40px;
    border: 1px solid #cbd5e1; border-radius: 10px;
    font-size: .92rem; outline: none; transition: .15s;
}

/* iz: app/admin/users.php */
.filter-input input:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* iz: app/admin/users.php */
.filters select {
    padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
    background: #fff; font-size: .92rem; min-width: 140px; outline: none;
    cursor: pointer; transition: .15s;
}

/* iz: app/admin/users.php */
.filters select:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* iz: app/admin/users.php */
.table-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

/* iz: app/admin/users.php */
.table-scroll {
    overflow-x: auto;
}

/* iz: app/admin/users.php */
.users-table {
    width: 100%; border-collapse: collapse; min-width: 780px;
}

/* iz: app/admin/users.php */
.users-table th {
    background: #f8fafc; color: #334155; text-align: left;
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* iz: app/admin/users.php */
.users-table td {
    padding: 14px 16px; border-bottom: 1px solid #f1f5f9;
    font-size: .92rem; color: #1e293b; vertical-align: middle;
}

/* iz: app/admin/users.php */
.users-table tr:last-child td {
    border-bottom: none;
}

/* iz: app/admin/users.php */
.users-table tbody tr:hover {
    background: #fafbfc;
}

/* iz: app/admin/users.php */
.row-inactive {
    opacity: .6;
}

/* iz: app/admin/users.php */
.user-cell {
    display: flex; align-items: center; gap: 12px;
}

/* iz: app/admin/users.php */
.user-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* iz: app/admin/users.php */
.user-meta strong {
    color: #0f172a;
}

/* iz: app/admin/users.php */
.cell-email {
    color: #475569; font-size: .88rem; word-break: break-all;
}

/* iz: app/admin/users.php */
.cell-muted {
    color: #64748b; font-size: .85rem;
}

/* iz: app/admin/users.php */
.cell-never {
    color: #cbd5e1; font-style: italic;
}

/* iz: app/admin/users.php */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    font-size: .72rem; font-weight: 600; white-space: nowrap;
}

/* iz: app/admin/users.php */
.badge-admin {
    background: #fef3c7; color: #92400e;
}

/* iz: app/admin/users.php */
.badge-user {
    background: #e0e7ff; color: #3730a3;
}

/* iz: app/admin/users.php */
.badge-active {
    background: #dcfce7; color: #166534;
}

/* iz: app/admin/users.php */
.badge-inactive {
    background: #f1f5f9; color: #64748b;
}

/* iz: app/admin/users.php */
.badge-you {
    background: #dbeafe; color: #1e40af; font-size: .68rem;
}

/* iz: app/admin/users.php */
.badge-locked {
    background: #fee2e2; color: #991b1b; font-size: .68rem;
}

/* iz: app/admin/users.php */
.row-actions {
    display: flex; gap: 4px; justify-content: flex-end; align-items: center;
}

/* iz: app/admin/users.php */
.inline-form {
    display: inline;
}

/* iz: app/admin/users.php */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: transparent; border: 1px solid transparent;
    font-size: 1rem; cursor: pointer; text-decoration: none;
    transition: .12s;
}

/* iz: app/admin/users.php */
.icon-btn:hover {
    background: #f1f5f9; border-color: #e2e8f0;
}

/* iz: app/admin/users.php */
.icon-btn.danger:hover {
    background: #fee2e2;
}

/* iz: app/admin/users.php */
.icon-btn.warn:hover {
    background: #fef3c7;
}

/* iz: app/admin/users.php */
.icon-btn.ok:hover {
    background: #dcfce7;
}

/* iz: app/admin/users.php */
.empty-state {
    padding: 60px 20px; text-align: center; color: #64748b;
}

/* iz: app/admin/users.php */
.empty-state span {
    font-size: 3rem; display: block; margin-bottom: 12px;
}

/* iz: app/admin/users.php */
.empty-state h3 {
    margin: 0 0 6px; color: #334155; font-size: 1.1rem;
}

/* iz: app/admin/users.php */
.empty-state p {
    margin: 0;
}

/* iz: app/admin/users.php */
.empty-state a {
    color: #2563eb;
}

/* iz: app/admin/users.php */
.pagination {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 14px 16px; border-top: 1px solid #f1f5f9;
    background: #fafbfc; flex-wrap: wrap;
}

/* iz: app/admin/users.php */
.pag-info {
    font-size: .85rem; color: #64748b;
}

/* iz: app/admin/users.php */
.pag-controls {
    display: flex; align-items: center; gap: 8px;
}

/* iz: app/admin/users.php */
.pag-btn {
    padding: 8px 14px; border-radius: 9px; border: 1px solid #cbd5e1;
    background: #fff; color: #0f172a; font-size: .85rem; font-weight: 600;
    text-decoration: none; transition: .15s;
}

/* iz: app/admin/users.php */
.pag-btn:hover:not(.disabled) {
    background: #f1f5f9; border-color: #94a3b8;
}

/* iz: app/admin/users.php */
.pag-btn.disabled {
    opacity: .5; cursor: not-allowed; pointer-events: none;
}

/* iz: app/admin/users.php */
.pag-current {
    font-size: .85rem; color: #334155; font-weight: 600; padding: 0 4px;
}

/* iz: app/views/footer.php */
.app-footer {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    padding: 16px 28px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: .82rem;
    color: #64748b;
    margin-top: 24px;
}

/* iz: app/views/footer.php */
.footer-left, .footer-right {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* iz: app/views/footer.php */
.app-footer strong {
    color: #0f172a; font-weight: 600;
}

/* iz: app/views/footer.php */
.footer-sep {
    color: #cbd5e1;
}

/* iz: app/views/footer.php */
.footer-ver {
    background: #f1f5f9; color: #475569;
    padding: 2px 8px; border-radius: 20px;
    font-size: .72rem; font-weight: 600; letter-spacing: .03em;
}

/* iz: app/views/footer.php */
.footer-badge {
    display: inline-block;
    background: #fef3c7; color: #92400e;
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em;
    padding: 1px 7px; border-radius: 20px;
    margin-left: 4px;
}

/* iz: app/views/footer.php */
#sidebarOverlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 90;
    opacity: 0; transition: opacity .2s;
}

/* iz: app/views/footer.php */
#sidebarOverlay.show {
    display: block; opacity: 1;
}

/* iz: app/views/header.php */
*, *::before, *::after {
    box-sizing: border-box;
}

/* iz: app/views/header.php */
html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    color: #0f172a;
    background: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iz: app/views/header.php */
a {
    color: #2563eb;
}

/* iz: app/views/header.php */
.app-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

/* iz: app/views/header.php */
.sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #cbd5e1;
    display: flex; flex-direction: column;
    position: sticky; top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform .25s ease;
}

/* iz: app/views/header.php */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

/* iz: app/views/header.php */
.sidebar::-webkit-scrollbar-thumb {
    background: #334155; border-radius: 99px;
}

/* iz: app/views/header.php */
.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

/* iz: app/views/header.php */
.sidebar-brand-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.15rem; font-weight: 800;
    box-shadow: 0 6px 14px rgba(37,99,235,.35);
    flex-shrink: 0;
}

/* iz: app/views/header.php */
.sidebar-brand-text {
    display: flex; flex-direction: column;
    min-width: 0;
}

/* iz: app/views/header.php */
.sidebar-brand-text strong {
    color: #fff; font-size: 1rem; font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

/* iz: app/views/header.php */
.sidebar-brand-text small {
    color: #64748b; font-size: .72rem;
}

/* iz: app/views/header.php */
.sidebar-section {
    padding: 18px 22px 6px;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
    color: #64748b; font-weight: 700;
}

/* iz: app/views/header.php */
.sidebar-section:first-of-type {
    padding-top: 16px;
}

/* iz: app/views/header.php */
.sidebar-nav {
    display: flex; flex-direction: column;
    padding: 0 12px;
    gap: 2px;
}

/* iz: app/views/header.php */
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: .92rem; font-weight: 500;
    transition: background .12s, color .12s;
    position: relative;
}

/* iz: app/views/header.php */
.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: .95rem;
    opacity: .8;
}

/* iz: app/views/header.php */
.sidebar-nav a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}

/* iz: app/views/header.php */
.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(37,99,235,.15));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(96,165,250,.35);
}

/* iz: app/views/header.php */
.sidebar-nav a.active i {
    opacity: 1; color: #60a5fa;
}

/* iz: app/views/header.php */
.sidebar-nav a.active::before {
    content: '';
    position: absolute; left: -12px; top: 20%;
    width: 3px; height: 60%;
    background: #60a5fa; border-radius: 0 3px 3px 0;
}

/* iz: app/views/header.php */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 22px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .72rem; color: #64748b;
}

/* iz: app/views/header.php */
.sidebar-footer strong {
    color: #94a3b8;
}

/* iz: app/views/header.php */
.app-main {
    display: flex; flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* iz: app/views/header.php */
.topbar {
    position: sticky; top: 0;
    display: flex; align-items: center; gap: 16px;
    padding: 12px 28px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 50;
}

/* iz: app/views/header.php */
.topbar-toggle {
    display: none;
    background: transparent; border: 1px solid #e2e8f0;
    width: 38px; height: 38px; border-radius: 10px;
    cursor: pointer; color: #334155; font-size: 1rem;
    align-items: center; justify-content: center;
    transition: background .12s;
}

/* iz: app/views/header.php */
.topbar-toggle:hover {
    background: #f1f5f9;
}

/* iz: app/views/header.php */
.breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: .85rem;
    min-width: 0; flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

/* iz: app/views/header.php */
.breadcrumbs a {
    color: #64748b; text-decoration: none;
    transition: color .12s;
}

/* iz: app/views/header.php */
.breadcrumbs a:hover {
    color: #2563eb;
}

/* iz: app/views/header.php */
.breadcrumbs .sep {
    color: #cbd5e1;
}

/* iz: app/views/header.php */
.breadcrumbs .current {
    color: #0f172a; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis;
}

/* iz: app/views/header.php */
.user-menu {
    position: relative;
}

/* iz: app/views/header.php */
.user-menu-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 10px 5px 5px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 60px;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}

/* iz: app/views/header.php */
.user-menu-toggle:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* iz: app/views/header.php */
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .9rem;
    flex-shrink: 0;
}

/* iz: app/views/header.php */
.user-info {
    display: flex; flex-direction: column; align-items: flex-start;
    line-height: 1.15; min-width: 0;
    text-align: left;
}

/* iz: app/views/header.php */
.user-info strong {
    font-size: .85rem; color: #0f172a; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 140px;
}

/* iz: app/views/header.php */
.user-info small {
    font-size: .7rem; color: #64748b;
}

/* iz: app/views/header.php */
.user-chevron {
    font-size: .7rem; color: #94a3b8;
    transition: transform .15s;
}

/* iz: app/views/header.php */
.user-menu.open .user-chevron {
    transform: rotate(180deg);
}

/* iz: app/views/header.php */
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 230px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15,23,42,.14);
    padding: 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 200;
}

/* iz: app/views/header.php */
.user-menu.open .user-dropdown {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

/* iz: app/views/header.php */
.user-dropdown .dd-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
}

/* iz: app/views/header.php */
.user-dropdown .dd-head strong {
    display: block; color: #0f172a; font-size: .9rem;
}

/* iz: app/views/header.php */
.user-dropdown .dd-head small {
    display: block; color: #64748b; font-size: .78rem;
    word-break: break-all;
    margin-top: 2px;
}

/* iz: app/views/header.php */
.user-dropdown .dd-head .dd-role {
    display: inline-block;
    margin-top: 6px;
    background: #fef3c7; color: #92400e;
    font-size: .66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 2px 8px; border-radius: 20px;
}

/* iz: app/views/header.php */
.user-dropdown .dd-role.user {
    background: #e0e7ff; color: #3730a3;
}

/* iz: app/views/header.php */
.user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    color: #334155; text-decoration: none;
    font-size: .88rem;
    transition: background .1s, color .1s;
}

/* iz: app/views/header.php */
.user-dropdown a i {
    width: 18px; text-align: center;
    color: #64748b; font-size: .9rem;
}

/* iz: app/views/header.php */
.user-dropdown a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* iz: app/views/header.php */
.user-dropdown a:hover i {
    color: #2563eb;
}

/* iz: app/views/header.php */
.user-dropdown .dd-sep {
    height: 1px; background: #f1f5f9; margin: 6px 4px;
}

/* iz: app/views/header.php */
.user-dropdown a.dd-danger {
    color: #b91c1c;
}

/* iz: app/views/header.php */
.user-dropdown a.dd-danger i {
    color: #dc2626;
}

/* iz: app/views/header.php */
.user-dropdown a.dd-danger:hover {
    background: #fef2f2;
}

/* iz: app/views/header.php */
.app-content {
    flex: 1;
    padding: 26px 28px 0;
    min-width: 0;
}

/* iz: app/views/header.php */
.alert > i {
    font-size: 1.05rem; line-height: 1.3;
    flex-shrink: 0; margin-top: 1px;
}

/* iz: app/views/header.php */
.hidden {
    display: none !important;
}

/* iz: app/views/user_bar.php */
.ub-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px;
    padding: 10px 22px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    z-index: 999;
}

/* iz: app/views/user_bar.php */
.ub-bar.ub-fixed {
    position: fixed; top: 0; left: 0; right: 0;
    box-shadow: 0 2px 12px rgba(15,23,42,.06);
}

/* iz: app/views/user_bar.php */
.ub-bar.ub-dark {
    background: #0f172a;
    border-bottom-color: rgba(255,255,255,.08);
}

/* iz: app/views/user_bar.php */
.ub-bar.ub-dark .ub-brand-name {
    color: #fff;
}

/* iz: app/views/user_bar.php */
.ub-brand {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none;
}

/* iz: app/views/user_bar.php */
.ub-brand-icon {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; font-weight: 800; font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(37,99,235,.3);
}

/* iz: app/views/user_bar.php */
.ub-brand-name {
    font-weight: 700; color: #0f172a; font-size: .95rem;
    letter-spacing: -.01em;
}

/* iz: app/views/user_bar.php */
.ub-spacer {
    flex: 1;
}

/* iz: app/views/user_bar.php */
.ub-user {
    position: relative; margin-left: auto;
}

/* iz: app/views/user_bar.php */
.ub-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 10px 5px 5px;
    background: transparent; border: 1px solid transparent;
    border-radius: 60px;
    cursor: pointer; transition: background .12s, border-color .12s;
}

/* iz: app/views/user_bar.php */
.ub-toggle:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* iz: app/views/user_bar.php */
.ub-bar.ub-dark .ub-toggle:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}

/* iz: app/views/user_bar.php */
.ub-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .85rem;
    flex-shrink: 0;
}

/* iz: app/views/user_bar.php */
.ub-info {
    display: flex; flex-direction: column; align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

/* iz: app/views/user_bar.php */
.ub-info strong {
    font-size: .85rem; color: #0f172a; font-weight: 600;
    white-space: nowrap; max-width: 140px;
    overflow: hidden; text-overflow: ellipsis;
}

/* iz: app/views/user_bar.php */
.ub-info small {
    font-size: .68rem; color: #64748b;
}

/* iz: app/views/user_bar.php */
.ub-bar.ub-dark .ub-info strong {
    color: #fff;
}

/* iz: app/views/user_bar.php */
.ub-bar.ub-dark .ub-info small {
    color: #94a3b8;
}

/* iz: app/views/user_bar.php */
.ub-chevron {
    font-size: .7rem; color: #94a3b8; font-style: normal;
    transition: transform .15s;
}

/* iz: app/views/user_bar.php */
.ub-user.open .ub-chevron {
    transform: rotate(180deg);
}

/* iz: app/views/user_bar.php */
.ub-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 230px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15,23,42,.15);
    padding: 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 1000;
}

/* iz: app/views/user_bar.php */
.ub-user.open .ub-dropdown {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

/* iz: app/views/user_bar.php */
.ub-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
}

/* iz: app/views/user_bar.php */
.ub-head strong {
    display: block; color: #0f172a; font-size: .9rem;
}

/* iz: app/views/user_bar.php */
.ub-head small {
    display: block; color: #64748b; font-size: .78rem;
    word-break: break-all; margin-top: 2px;
}

/* iz: app/views/user_bar.php */
.ub-role {
    display: inline-block; margin-top: 6px;
    background: #fef3c7; color: #92400e;
    font-size: .65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 2px 8px; border-radius: 20px;
}

/* iz: app/views/user_bar.php */
.ub-role.user {
    background: #e0e7ff; color: #3730a3;
}

/* iz: app/views/user_bar.php */
.ub-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    color: #334155; text-decoration: none;
    font-size: .88rem;
    transition: background .1s, color .1s;
}

/* iz: app/views/user_bar.php */
.ub-dropdown a .ub-ic {
    width: 20px; text-align: center; font-size: .95rem;
    opacity: .85;
}

/* iz: app/views/user_bar.php */
.ub-dropdown a:hover {
    background: #f1f5f9; color: #0f172a;
}

/* iz: app/views/user_bar.php */
.ub-dropdown .ub-sep {
    height: 1px; background: #f1f5f9; margin: 6px 4px;
}

/* iz: app/views/user_bar.php */
.ub-dropdown a.ub-danger {
    color: #b91c1c;
}

/* iz: app/views/user_bar.php */
.ub-dropdown a.ub-danger:hover {
    background: #fef2f2;
}

/* iz: einvoice/loadEfaktureCSV.php */
body {
    font-family: Tahoma, Verdana, sans-serif;
    margin: 0px;
    color: #1a1a1a;
    background: #f6f7fb;
}

/* iz: einvoice/loadEfaktureCSV.php */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* iz: einvoice/loadEfaktureCSV.php */
.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* iz: einvoice/loadEfaktureCSV.php */
input[type="file"], select, button {
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
}

/* iz: einvoice/loadEfaktureCSV.php */
button {
    cursor: pointer;
    background: #0f766e;
    color: #fff;
    border: 1px solid #0f766e;
}

/* iz: einvoice/loadEfaktureCSV.php */
button:hover {
    background: #0b5f58;
}

/* iz: einvoice/loadEfaktureCSV.php */
.msg {
    background: #ecfeff;
    border: 1px solid #99f6e4;
    color: #115e59;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.badge-paid {
    background: #dcfce7;
    color: #166534;
}

/* iz: einvoice/loadEfaktureCSV.php */
.badge-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

/* iz: einvoice/loadEfaktureCSV.php */
.badge-partial {
    background: #fef3c7;
    color: #92400e;
}

/* iz: einvoice/loadEfaktureCSV.php */
.partner-check-list {
    margin-top: 6px;
    max-height: 270px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
}

/* iz: einvoice/loadEfaktureCSV.php */
.partner-check-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 4px 0;
    font-size: 14px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.partner-empty {
    color: #64748b;
    font-size: 13px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.manual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.manual-select {
    width: 100%;
    min-height: 280px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.auto-preview {
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
}

/* iz: einvoice/loadEfaktureCSV.php */
.auto-preview-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 5px 0;
    font-size: 13px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.totals-bar {
    position: sticky; top: 0; z-index: 6;
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 8px 10px; margin-bottom: 10px;
    background: #fff; border: 1px solid #dfe3e8; border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    font-size: 13px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.totals-bar .cur {
    background: #f6f8fa; border: 1px solid #e3e6ea; border-radius: 6px;
    padding: 6px 10px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.totals-bar .cur b {
    display: block; margin-bottom: 3px; font-size: 13px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.totals-bar .cur span {
    margin-right: 12px; white-space: nowrap;
}

/* iz: einvoice/loadEfaktureCSV.php */
.totals-bar .cur span i {
    font-style: normal; color: #6b7280;
}

/* iz: einvoice/loadEfaktureCSV.php */
.totals-bar .empty {
    color: #888;
}

/* iz: einvoice/loadEfaktureCSV.php */
.filter-row th {
    padding: 3px; background: #fafbfc;
}

/* iz: einvoice/loadEfaktureCSV.php */
.filter-row input, .filter-row select {
    width: 100%; box-sizing: border-box;
    font-size: 12px; padding: 3px 4px;
    border: 1px solid #ccc; border-radius: 4px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.filter-row .range {
    display: flex; gap: 3px;
}

/* iz: einvoice/loadEfaktureCSV.php */
.filter-row .range input {
    min-width: 0;
}

/* iz: einvoice/loadEfaktureCSV.php */
tr[hidden] {
    display: none !important;
}

  .login_body {
      font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      background: #0f172a;
      background-image:
          radial-gradient(1000px 600px at 10% -10%, #1e3a8a 0%, transparent 60%),
          radial-gradient(900px 500px at 110% 110%, #0b3d2e 0%, transparent 55%),
          linear-gradient(135deg, #0f172a 0%, #111827 100%);
      color: #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      min-height: 100vh;
  }
/* iz: index.php */
.dash-hero {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff; border-radius: 20px; padding: 28px 32px; margin-bottom: 26px;
    box-shadow: 0 15px 40px rgba(15,23,42,.25);
}

/* iz: index.php */
.dash-hero h1 {
    margin: 0 0 6px; font-size: 1.7rem; font-weight: 700;
}

/* iz: index.php */
.dash-hero .hero-sub {
    margin: 0; color: #cbd5e1; font-size: .95rem;
}

/* iz: index.php */
.dash-hero .hero-sub strong {
    color: #fff;
}

/* iz: index.php */
.hero-date {
    text-align: center; color: #e2e8f0; padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,.15); min-width: 90px;
}

/* iz: index.php */
.hero-date .day {
    display: block; font-size: 2.4rem; font-weight: 800; line-height: 1;
}

/* iz: index.php */
.hero-date .month {
    display: block; font-size: .8rem; letter-spacing: .15em; color: #93c5fd; margin-top: 4px;
}

/* iz: index.php */
.hero-date .year {
    display: block; font-size: .8rem; color: #94a3b8;
}

/* iz: index.php */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 16px; margin-bottom: 32px;
}

/* iz: index.php */
.stat-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

/* iz: index.php */
.stat-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

/* iz: index.php */
.stat-body {
    display: flex; flex-direction: column;
}

/* iz: index.php */
.stat-label {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
    color: #64748b; font-weight: 600;
}

/* iz: index.php */
.stat-value {
    font-size: 1.5rem; font-weight: 700; color: #0f172a; line-height: 1.2;
}

/* iz: index.php */
.section-title {
    font-size: 1rem; text-transform: uppercase; letter-spacing: .06em;
    color: #475569; margin: 0 0 14px; font-weight: 700;
}

/* iz: index.php */
.apps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 18px; margin-bottom: 36px;
}

/* iz: index.php */
.app-card {
    display: flex; gap: 16px; padding: 22px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
    text-decoration: none; color: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: .18s ease;
}

/* iz: index.php */
.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,.12);
    border-color: #2563eb;
}

/* iz: index.php */
.app-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem; flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

/* iz: index.php */
.app-body {
    display: flex; flex-direction: column; gap: 4px;
}

/* iz: index.php */
.app-body h3 {
    margin: 0; font-size: 1.1rem;
}

/* iz: index.php */
.app-body p {
    margin: 0; color: #64748b; font-size: .9rem; line-height: 1.5;
}

/* iz: index.php */
.badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    vertical-align: middle;
    box-shadow: 0 6px 14px rgba(220, 38, 38, .35);
}

/* iz: index.php */
.app-cta {
    margin-top: 8px; color: #2563eb; font-weight: 600; font-size: .9rem;
}

/* iz: index.php */
.activity-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
    padding: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* iz: index.php */
.activity-list {
    list-style: none; margin: 0; padding: 0;
}

/* iz: index.php */
.activity-item {
    display: flex; gap: 14px; padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* iz: index.php */
.activity-item:last-child {
    border-bottom: none;
}

/* iz: index.php */
.act-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: #f1f5f9; display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}

/* iz: index.php */
.act-body {
    flex: 1; min-width: 0;
}

/* iz: index.php */
.act-line1 {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: .95rem; color: #0f172a;
}

/* iz: index.php */
.act-line1 strong {
    font-weight: 600;
}

/* iz: index.php */
.act-dot {
    color: #cbd5e1;
}

/* iz: index.php */
.act-action {
    color: #334155;
}

/* iz: index.php */
.act-line2 {
    display: flex; gap: 16px; margin-top: 4px;
    font-size: .8rem; color: #94a3b8; flex-wrap: wrap;
}

/* iz: index.php */
.activity-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 20px; color: #94a3b8; gap: 8px;
}

/* iz: index.php */
.activity-empty span {
    font-size: 2.4rem;
}

/* iz: index.php */
.activity-empty p {
    margin: 0;
}

/* iz: izvodi.php */
.page-head .sub strong {
    color: #0f172a;
}

/* iz: izvodi.php */
.month-group {
    margin-bottom: 30px;
}

/* iz: izvodi.php */
.month-head {
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* iz: izvodi.php */
.month-head h2 {
    margin: 0; font-size: 1rem; font-weight: 700; color: #334155;
    display: flex; align-items: center; gap: 10px;
}

/* iz: izvodi.php */
.month-icon {
    font-size: 1.05rem;
}

/* iz: izvodi.php */
.month-count {
    background: #e2e8f0; color: #475569;
    font-size: .72rem; font-weight: 700;
    padding: 2px 9px; border-radius: 20px;
    margin-left: 4px;
}

/* iz: izvodi.php */
.messages-list {
    display: flex; flex-direction: column; gap: 10px;
}

/* iz: izvodi.php */
.message-item {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 14px 18px;
    transition: .15s;
    flex-wrap: wrap;
}

/* iz: izvodi.php */
.message-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15,23,42,.05);
}

/* iz: izvodi.php */
.message-item.is-foreign {
    border-left: 3px solid #2563eb;
}

/* iz: izvodi.php */
.message-item.is-domestic {
    border-left: 3px solid #7c3aed;
}

/* iz: izvodi.php */
.msg-left {
    display: flex; align-items: center; gap: 16px;
    flex: 1; min-width: 0;
}

/* iz: izvodi.php */
.msg-date {
    display: flex; flex-direction: column; align-items: center;
    min-width: 52px;
    background: #f8fafc; border-radius: 10px;
    padding: 8px 6px;
}

/* iz: izvodi.php */
.date-day {
    font-size: 1.35rem; font-weight: 800; line-height: 1;
    color: #0f172a;
}

/* iz: izvodi.php */
.date-mon {
    font-size: .65rem; font-weight: 700; letter-spacing: .08em;
    color: #64748b; margin-top: 3px;
}

/* iz: izvodi.php */
.msg-info {
    min-width: 0; flex: 1;
}

/* iz: izvodi.php */
.msg-title {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 3px;
}

/* iz: izvodi.php */
.msg-title strong {
    color: #0f172a; font-size: .95rem;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; max-width: 100%;
}

/* iz: izvodi.php */
.type-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .68rem; font-weight: 700;
    padding: 2px 9px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .04em;
    flex-shrink: 0;
}

/* iz: izvodi.php */
.type-badge.foreign {
    background: #dbeafe; color: #1e40af;
}

/* iz: izvodi.php */
.type-badge.domestic {
    background: #ede9fe; color: #6d28d9;
}

/* iz: izvodi.php */
.msg-meta {
    display: flex; gap: 8px; flex-wrap: wrap;
    font-size: .78rem; color: #64748b;
}

/* iz: izvodi.php */
.msg-meta .dot {
    color: #cbd5e1;
}

/* iz: izvodi.php */
.msg-id {
    font-family: ui-monospace, monospace; color: #94a3b8;
}

/* iz: izvodi.php */
.msg-attachments {
    display: flex; gap: 8px; flex-wrap: wrap;
    flex-basis: 100%;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    margin-top: 4px;
}

/* iz: izvodi.php */
.attachment {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 10px;
    background: #f1f5f9; border: 1px solid transparent;
    color: #0f172a; text-decoration: none;
    font-size: .85rem; font-weight: 500;
    transition: .12s;
    max-width: 100%;
}

/* iz: izvodi.php */
.attachment:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,99,235,.08);
}

/* iz: izvodi.php */
.att-icon {
    font-size: 1rem; flex-shrink: 0;
}

/* iz: izvodi.php */
.att-name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 280px;
}

/* iz: izvodi.php */
.att-size {
    font-size: .72rem; color: #64748b;
    background: #fff; padding: 1px 7px; border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* iz: izvodi.php */
.att-download {
    color: #2563eb; font-weight: 700; margin-left: 2px;
    transition: transform .15s;
}

/* iz: izvodi.php */
.attachment:hover .att-download {
    transform: translateY(1px);
}

/* iz: izvodi.php */
.empty-card {
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px;
    padding: 60px 30px; text-align: center;
}

/* iz: izvodi.php */
.empty-icon {
    font-size: 3rem; margin-bottom: 12px;
}

/* iz: izvodi.php */
.empty-card h2 {
    margin: 0 0 8px; color: #334155; font-size: 1.2rem;
}

/* iz: izvodi.php */
.empty-card p {
    margin: 0; color: #64748b; font-size: .92rem; line-height: 1.6;
}

/* iz: izvodi.php */
.empty-card code {
    background: #f1f5f9; padding: 2px 8px; border-radius: 5px;
    font-size: .82rem; color: #334155;
}

/* iz: login.php */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    padding: 40px 34px 32px;
    box-shadow:
    0 30px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.06) inset;
    animation: cardIn .35s ease-out both;
}

/* iz: login.php */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* iz: login.php */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

/* iz: login.php */
.brand-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37,99,235,.35);
}

/* iz: login.php */
.brand-text h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0f172a;
}

/* iz: login.php */
.brand-text p {
    margin: 2px 0 0;
    font-size: .78rem;
    color: #64748b;
}

/* iz: login.php */
h2.form-title {
    margin: 26px 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

/* iz: login.php */
p.form-sub {
    margin: 0 0 22px;
    font-size: .88rem;
    color: #64748b;
    line-height: 1.5;
}

/* iz: login.php */
.alert .ico {
    font-size: 1.05rem;
    line-height: 1.3;
    flex-shrink: 0;
}

/* iz: login.php */
.input-wrap .lead-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color .15s;
}

/* iz: login.php */
input[type=text], input[type=password] {
    width: 100%;
    font-size: 1rem;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
#username, #password {
    width: 100%;
    font-size: 1rem;
    padding: 8px 44px 8px 44px;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
/* iz: login.php */
input[type=text]:focus, input[type=password]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

/* iz: login.php */
.input-wrap:focus-within .lead-icon {
    color: #2563eb;
}

/* iz: login.php */
.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 2px;
    color: #334155;
    font-size: .86rem;
}

/* iz: login.php */
.remember-row input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    margin: 0;
}

/* iz: login.php */
.remember-row label {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

/* iz: login.php */
button.submit {
    width: 100%;
    padding: 13px 16px;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, filter .15s;
    box-shadow: 0 10px 20px rgba(37,99,235,.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* iz: login.php */
button.submit:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(37,99,235,.35);
    transform: translateY(-1px);
}

/* iz: login.php */
button.submit:active:not(:disabled) {
    transform: translateY(0);
}

/* iz: login.php */
button.submit:disabled {
    opacity: .7;
    cursor: progress;
}

/* iz: login.php */
.form-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: .78rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* iz: login.php */
.form-foot a {
    color: #2563eb; text-decoration: none;
}

/* iz: login.php */
.form-foot a:hover {
    text-decoration: underline;
}

/* iz: login.php */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* iz: poruceno.php */
.page-nav {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 6px 8px;
}

/* iz: poruceno.php */
.nav-btn {
    padding: 8px 14px; border: none; background: transparent;
    border-radius: 8px; color: #334155; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: .12s;
}

/* iz: poruceno.php */
.nav-btn:hover:not(:disabled) {
    background: #f1f5f9; color: #0f172a;
}

/* iz: poruceno.php */
.nav-btn:disabled {
    opacity: .4; cursor: not-allowed;
}

/* iz: poruceno.php */
.nav-counter {
    font-size: .82rem; color: #64748b; font-weight: 600;
    padding: 0 8px; min-width: 60px; text-align: center;
}

/* iz: poruceno.php */
.message-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    overflow: hidden;
}

/* iz: poruceno.php */
.message-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; flex-wrap: wrap;
    padding: 22px 26px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

/* iz: poruceno.php */
.msg-title h2 {
    margin: 0 0 8px; font-size: 1.15rem; color: #0f172a;
    line-height: 1.35; word-break: break-word;
}

/* iz: poruceno.php */
.meta-item {
    display: inline-flex; align-items: center; gap: 6px;
}

/* iz: poruceno.php */
.meta-ico {
    font-size: .95rem; opacity: .8;
}

/* iz: poruceno.php */
.meta-item strong {
    color: #0f172a; font-weight: 600;
}

/* iz: poruceno.php */
.meta-sep {
    color: #cbd5e1;
}

/* iz: poruceno.php */
.meta-email {
    color: #2563eb;
}

/* iz: poruceno.php */
.msg-actions {
    display: flex; gap: 8px;
}

/* iz: poruceno.php */
.message-body {
    padding: 26px;
    max-height: 65vh; overflow-y: auto;
    line-height: 1.65; color: #1e293b;
    word-wrap: break-word;
}

/* iz: poruceno.php */
.message-body.is-plain {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 1.88rem;
    white-space: normal;
    background: #fafbfc;
}

/* iz: poruceno.php */
.message-body.is-html {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.95rem;
}

/* iz: poruceno.php */
.message-body.is-html img {
    max-width: 100%; height: auto;
}

/* iz: poruceno.php */
.message-body.is-html table {
    max-width: 100%; border-collapse: collapse; margin: 8px 0;
}

/* iz: poruceno.php */
.message-body.is-html td, .message-body.is-html th {
    padding: 4px 8px; border: 1px solid #e2e8f0;
}

/* iz: poruceno.php */
.message-body.is-html a {
    color: #2563eb;
}

/* iz: poruceno.php */
.message-body::-webkit-scrollbar {
    width: 8px;
}

/* iz: poruceno.php */
.message-body::-webkit-scrollbar-thumb {
    background: #cbd5e1; border-radius: 99px;
}

/* iz: poruceno.php */
.message-raw {
    padding: 20px 26px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

/* iz: poruceno.php */
.message-raw pre {
    margin: 0; color: #e2e8f0;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: .82rem; line-height: 1.55;
    white-space: pre-wrap; word-break: break-word;
    max-height: 60vh; overflow-y: auto;
}

/* iz: poruceno.php */
.message-nav {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 14px;
    padding: 16px 26px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* iz: poruceno.php */
.nav-link {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-radius: 12px;
    border: 1px solid #e2e8f0; background: #fff;
    text-decoration: none; color: #0f172a;
    transition: .15s; max-width: 100%;
}

/* iz: poruceno.php */
.nav-link:hover:not(.disabled) {
    border-color: #2563eb; background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.1);
}

/* iz: poruceno.php */
.nav-link.disabled {
    opacity: .4; cursor: not-allowed; pointer-events: none;
}

/* iz: poruceno.php */
.nav-link:last-child {
    justify-self: end;
}

/* iz: poruceno.php */
.nav-arrow {
    font-size: 1.4rem; line-height: 1;
    color: #2563eb; font-weight: 700;
}

/* iz: poruceno.php */
.nav-link.disabled .nav-arrow {
    color: #94a3b8;
}

/* iz: poruceno.php */
.nav-body {
    display: flex; flex-direction: column; gap: 1px;
}

/* iz: poruceno.php */
.nav-body strong {
    font-size: .88rem; font-weight: 700;
}

/* iz: poruceno.php */
.nav-body small {
    font-size: .72rem; color: #64748b;
}

/* iz: poruceno.php */
.nav-dots {
    display: flex; align-items: center; gap: 6px;
    justify-self: center;
}

/* iz: poruceno.php */
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #cbd5e1; transition: .15s;
    text-decoration: none;
}

/* iz: poruceno.php */
.dot:hover {
    background: #94a3b8; transform: scale(1.2);
}

/* iz: poruceno.php */
.dot.active {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
    width: 12px; height: 12px;
}

/* iz: poruceno.php */
.dot-sep {
    color: #94a3b8; font-size: .7rem;
}

/* iz: poruceno.php */
.btn-font {
    min-width: 40px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 1.05rem;
    line-height: 1;
}

/* iz: sentOrders.php */
.debug-card {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

/* iz: sentOrders.php */
.debug-card h3 {
    margin: 0 0 8px;
    font-size: .95rem;
    color: #0f172a;
}

/* iz: sentOrders.php */
.debug-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

/* iz: sentOrders.php */
.debug-table th, .debug-table td {
    border: 1px solid #dbe4ef;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

/* iz: sentOrders.php */
.debug-table th {
    background: #eef2f7;
    color: #334155;
}

/* iz: sentOrders.php */
.folder-pick {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* iz: sentOrders.php */
.folder-pick label {
    display: block;
    width: 100%;
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
}

/* iz: sentOrders.php */
.folder-pick select {
    min-width: 300px;
    max-width: 520px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .9rem;
}

/* iz: sentOrders.php */
.view-card {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 12px;
    overflow: hidden;
}

/* iz: sentOrders.php */
.view-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #dbe4ef;
    background: #eef2f7;
}

/* iz: sentOrders.php */
.view-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    font-size: .84rem;
    color: #334155;
}

/* iz: sentOrders.php */
.view-body {
    padding: 12px;
    max-height: 420px;
    overflow: auto;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

/* iz: sentOrders.php */
.view-body.is-plain pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
    line-height: 1.45;
}

/* iz: sentOrders.php */
.view-body.is-html {
    color: #0f172a;
    font-size: .88rem;
}

/* iz: sentOrders.php */
.btn:hover {
    background: #f8fafc;
}

/* iz: sentOrders.php */
.btn-sm {
    padding: 8px 12px;
}

/* iz: sentOrders.php */
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* iz: sentOrders.php */
.tags label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 8px;
    background: #fff;
    font-size: .8rem;
}

/* iz: settings.php */
.settings-card {
    max-width: 760px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* iz: settings.php */
.field input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: .95rem;
}

/* iz: settings.php */
.field small {
    color: #64748b;
}

/* iz: settings.php */
.form-block {
    display: block;
}

/* iz: settings.php */
.sep {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}

/* iz: settings.php */
.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 14px;
}

/* iz: settings.php */
.imap-list-wrap {
    margin: 8px 0 14px;
}

/* iz: settings.php */
.imap-list-wrap label {
    display: block;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

/* iz: settings.php */
.imap-list-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* iz: settings.php */
.imap-list-row select {
    flex: 1;
    min-width: 260px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .95rem;
    background: #fff;
}

/* iz: settings.php */
.imap-list-wrap small {
    color: #64748b;
}

/* iz: settings.php */
.tag-test-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

/* iz: settings.php */
.tag-test-card h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1rem;
}

/* iz: settings.php */
.tag-test-card p {
    margin: 0 0 10px;
    color: #475569;
    font-size: .88rem;
}

/* iz: settings.php */
.tag-test-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

/* iz: settings.php */
.tag-test-table th, .tag-test-table td {
    border: 1px solid #e2e8f0;
    padding: 7px 8px;
    text-align: left;
    vertical-align: top;
}

/* iz: settings.php */
.tag-test-table th {
    background: #f1f5f9;
    color: #334155;
}

/* iz: settings.php */
.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

/* iz: settings.php */
.pill.ok {
    background: #dcfce7;
    color: #166534;
}

/* iz: settings.php */
.pill.bad {
    background: #fee2e2;
    color: #991b1b;
}

/* iz: settings.php */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: .9rem;
    padding: 10px 16px;
}

/* iz: settings.php */
.btn-outline {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

/* iz: vlada.php */
.hint-inline {
    display: block; margin-top: 4px;
    color: #64748b; font-size: .82rem;
}

/* iz: vlada.php */
.head-actions {
    display: flex; gap: 8px;
}

/* iz: vlada.php */
.btn-primary:hover:not(:disabled) {
    filter: brightness(1.05); transform: translateY(-1px);
}

/* iz: vlada.php */
.btn-primary:disabled {
    opacity: .55; cursor: not-allowed; box-shadow: none;
}

/* iz: vlada.php */
.btn-outline:hover {
    background: #f1f5f9; border-color: #94a3b8;
}

/* iz: vlada.php */
.loading-container {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 60px 20px; gap: 18px;
}

/* iz: vlada.php */
.loading-spinner {
    width: 44px; height: 44px; border: 4px solid #e2e8f0;
    border-top-color: #2563eb; border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* iz: vlada.php */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* iz: vlada.php */
.loading-text {
    color: #64748b; font-size: .95rem;
}

/* iz: vlada.php */
.error-container {
    display: none; flex-direction: column; align-items: center;
    padding: 40px 24px; gap: 12px; max-width: 640px; margin: 20px auto;
    background: #fef2f2; border-radius: 16px; border: 1px solid #fecaca;
    text-align: center;
}

/* iz: vlada.php */
.error-container i {
    font-size: 2.4rem; color: #dc2626;
}

/* iz: vlada.php */
.error-container .error-text {
    color: #991b1b; font-size: 1.05rem; font-weight: 600;
}

/* iz: vlada.php */
.error-container .error-details {
    color: #7f1d1d; font-size: .88rem; line-height: 1.5;
}

/* iz: vlada.php */
.error-container .error-details code {
    background: #fee2e2; padding: 1px 6px; border-radius: 4px;
    font-family: ui-monospace, monospace; font-size: .82rem;
}

/* iz: vlada.php */
.retry-btn {
    margin-top: 6px; padding: 10px 22px; border-radius: 40px;
    background: #dc2626; color: #fff; border: none;
    font-weight: 600; cursor: pointer; transition: .15s;
    display: inline-flex; align-items: center; gap: 8px;
}

/* iz: vlada.php */
.retry-btn:hover {
    background: #b91c1c; transform: scale(1.02);
}

/* iz: vlada.php */
.stats-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px; background: #f8fafc; border-radius: 16px;
    padding: 18px 20px; margin-bottom: 20px;
    border: 1px solid #e9edf4;
}

/* iz: vlada.php */
.stat-item {
    display: flex; align-items: center; gap: 14px;
}

/* iz: vlada.php */
.stat-item .icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: #dbeafe; color: #2563eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; flex-shrink: 0;
}

/* iz: vlada.php */
.stat-item .info {
    display: flex; flex-direction: column;
}

/* iz: vlada.php */
.stat-item .label {
    font-size: .72rem; text-transform: uppercase;
    color: #64748b; font-weight: 600; letter-spacing: .05em;
}

/* iz: vlada.php */
.stat-item .value {
    font-size: 1.25rem; font-weight: 700; color: #0f172a; line-height: 1.15;
}

/* iz: vlada.php */
.stat-item .value small {
    font-size: .75rem; font-weight: 500; color: #64748b;
    margin-left: 2px;
}

/* iz: vlada.php */
.dobavljac-selector {
    display: flex; align-items: center; gap: 14px;
    background: #f8fafc; border: 1px solid #e9edf4; border-radius: 16px;
    padding: 16px 20px; margin-bottom: 20px;
    flex-wrap: wrap;
}

/* iz: vlada.php */
.dobavljac-selector label {
    font-weight: 600; color: #1e293b;
    display: flex; align-items: center; gap: 8px;
    font-size: .92rem;
}

/* iz: vlada.php */
.dobavljac-selector label i {
    color: #2563eb;
}

/* iz: vlada.php */
.dobavljac-selector select {
    padding: 10px 16px; border-radius: 40px;
    border: 1px solid #cbd5e1; background: #fff;
    font-size: .95rem; min-width: 200px; cursor: pointer;
    outline: none; transition: .15s;
}

/* iz: vlada.php */
.dobavljac-selector select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* iz: vlada.php */
.dobavljac-selector .info-text {
    color: #64748b; font-size: .85rem; margin-left: auto;
}

/* iz: vlada.php */
.table-wrapper {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

/* iz: vlada.php */
#orderTable {
    width: 100%; border-collapse: collapse; min-width: 780px;
    font-size: .92rem;
}

/* iz: vlada.php */
#orderTable th {
    background: #f8fafc; color: #334155; text-align: left;
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}

/* iz: vlada.php */
#orderTable td {
    padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* iz: vlada.php */
#orderTable tr:last-child td {
    border-bottom: none;
}

/* iz: vlada.php */
#orderTable select, #orderTable input[type=number] {
    width: 100%; padding: 9px 12px;
    border: 1px solid #cbd5e1; border-radius: 10px;
    background: #fff; font-size: .88rem;
    outline: none; transition: .15s; min-width: 90px;
}

/* iz: vlada.php */
#orderTable select:focus, #orderTable input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* iz: vlada.php */
.action-cell {
    display: flex; gap: 4px; justify-content: center;
    align-items: center; flex-wrap: wrap;
}

/* iz: vlada.php */
.btn-icon {
    background: transparent; border: 1px solid transparent;
    width: 34px; height: 34px; border-radius: 9px;
    font-size: 1rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: .12s; color: #475569;
}

/* iz: vlada.php */
.btn-icon:hover {
    background: #f1f5f9; border-color: #e2e8f0;
}

/* iz: vlada.php */
.btn-icon.danger:hover {
    background: #fee2e2; color: #b91c1c;
}

/* iz: vlada.php */
.btn-icon.success:hover {
    background: #dcfce7; color: #0b6e1e;
}

/* iz: vlada.php */
.footer-actions {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}

/* iz: vlada.php */
.footer-actions > div {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* iz: vlada.php */
.actions-right {
    justify-content: flex-end;
}

/* iz: vlada.php */
.badge-count {
    display: inline-flex; align-items: center;
    background: #e2e8f0; color: #1e293b;
    padding: 4px 12px; border-radius: 20px;
    font-size: .78rem; font-weight: 600;
}

/* iz: vlada.php */
.json-output {
    background: #0f172a; border-radius: 16px;
    padding: 20px 24px; margin-top: 8px;
    border: 1px solid #1e293b;
    position: relative;
}

/* iz: vlada.php */
.json-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
    color: #94a3b8; font-size: .85rem; font-weight: 600;
}

/* iz: vlada.php */
.json-header i {
    color: #60a5fa; margin-right: 4px;
}

/* iz: vlada.php */
.json-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
}

/* iz: vlada.php */
.copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #1e293b; border: none; color: #cbd5e1;
    padding: 7px 14px; border-radius: 40px;
    font-size: .78rem; font-weight: 600; cursor: pointer;
    transition: .12s;
}

/* iz: vlada.php */
.copy-btn:hover {
    background: #2d3a4f; color: #fff;
}

/* iz: vlada.php */
#jsonContent {
    margin: 0; color: #e2e8f0;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: .82rem; line-height: 1.6;
    white-space: pre-wrap; word-break: break-word;
    max-height: 460px; overflow-y: auto;
}

/* iz: vlada.php */
#jsonContent::-webkit-scrollbar {
    width: 8px;
}

/* iz: vlada.php */
#jsonContent::-webkit-scrollbar-thumb {
    background: #334155; border-radius: 99px;
}

/* iz: vlada.php */
.toast-message {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #0f172a; color: #fff;
    padding: 12px 24px; border-radius: 60px;
    font-size: .9rem; font-weight: 500;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    display: flex; align-items: center; gap: 10px;
    z-index: 9999; opacity: 0;
    transition: opacity .25s, transform .25s;
    pointer-events: none;
    border: 1px solid #3b82f6;
    max-width: calc(100vw - 40px);
}

/* iz: vlada.php */
.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* iz: vlada.php */
.toast-message i {
    color: #60a5fa; font-size: 1.05rem; flex-shrink: 0;
}

/* iz: vlada.php */
.toast-message.warn {
    border-color: #f59e0b;
}

/* iz: vlada.php */
.toast-message.warn i {
    color: #fbbf24;
}

/* iz: vlada.php */
.hidden-until-loaded {
    display: none;
}

@media (max-width: 720px) {
    .card {
    padding: 12px;
    }

    .actions {
    grid-column: 1 / -1;
    }

    .message-item {
    padding: 12px 14px; gap: 12px;
    }

    .msg-left {
    gap: 12px;
    }

    .msg-date {
    min-width: 44px; padding: 6px 4px;
    }

    .date-day {
    font-size: 1.15rem;
    }

    .att-name {
    max-width: 180px;
    }

    .msg-title strong {
    font-size: .88rem;
    }

    .message-nav {
    grid-template-columns: 1fr 1fr;
    }

    .nav-dots {
    display: none;
    }

    .nav-body small {
    display: none;
    }

    .message-head {
    flex-direction: column; align-items: stretch;
    }

    .msg-actions {
    justify-content: flex-end;
    }

    .page-head {
    flex-direction: column;
    }

    .folder-pick select {
    min-width: 100%;
    }

    .settings-card {
    padding: 16px;
    }

    .actions > * {
    flex: 1;
    }

    .footer-actions {
    flex-direction: column; align-items: stretch;
    }

    .footer-actions > div {
    width: 100%; justify-content: stretch;
    }

    .footer-actions .btn-primary, .footer-actions .btn-outline {
    flex: 1; justify-content: center;
    }

    .stats-container {
    grid-template-columns: 1fr;
    }

    .dobavljac-selector {
    flex-direction: column; align-items: stretch;
    }

    .dobavljac-selector .info-text {
    margin-left: 0;
    }

    .json-output {
    padding: 14px;
    }
}

@media (max-width: 560px) {
    .field-row {
    grid-template-columns: 1fr;
    }

    .radio-group {
    grid-template-columns: 1fr;
    }

    .info-grid {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-hero {
    flex-direction: column; align-items: flex-start;
    }

    .hero-side {
    margin-left: 0; padding-left: 0; border-left: none;
    border-top: 1px solid #f1f5f9; padding-top: 14px; width: 100%;
    }

    .page-head {
    flex-direction: column;
    }

    .btn-primary {
    width: 100%; justify-content: center;
    }

    .filters {
    flex-direction: column; align-items: stretch;
    }

    .filters select {
    width: 100%;
    }

    .dash-hero {
    flex-direction: column; align-items: flex-start; gap: 16px;
    }

    .hero-date {
    border-left: none; border-top: 1px solid rgba(255,255,255,.15);
    padding-left: 0; padding-top: 14px; width: 100%; text-align: left;
    }

    .hero-date .day, .hero-date .month, .hero-date .year {
    display: inline-block; margin-right: 6px;
    }
}

@media (max-width: 900px) {
    .app-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 20px;
    }

    .app-shell {
    grid-template-columns: 1fr;
    }

    .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    height: 100vh;
    }

    .sidebar.open {
    transform: translateX(0);
    }

    .topbar-toggle {
    display: inline-flex;
    }

    .breadcrumbs {
    font-size: .8rem;
    }

    .user-info {
    display: none;
    }

    .user-chevron {
    display: none;
    }

    .app-content {
    padding: 20px 16px 0;
    }

    .topbar {
    padding: 10px 16px; gap: 10px;
    }
}

@media (max-width: 480px) {
    .user-avatar {
    width: 32px; height: 32px; font-size: .85rem;
    }

    .user-menu-toggle {
    padding: 4px;
    }

    .breadcrumbs .sep, .breadcrumbs a:not(:first-child) {
    display: none;
    }

    .breadcrumbs .current {
    display: inline-block;
    }

    .ub-bar {
    padding: 8px 14px;
    }

    .ub-info {
    display: none;
    }

    .ub-chevron {
    display: none;
    }

    .ub-brand-name {
    display: none;
    }
}

@media (max-width: 920px) {
    .manual-grid {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
    margin: 10px;
    }

    table {
    font-size: 12px;
    }
}

@media (max-width: 420px) {
    .login-card {
    padding: 30px 22px 24px; border-radius: 16px;
    }

    h2.form-title {
    font-size: 1.25rem;
    }
}
