/* =========================================================
   FarmaPro.app
   ========================================================= */

:root {
    --fp-green-dark: #173524;
    --fp-green-mid: #1f432e;
    --fp-green: #276749;
    --fp-green-soft: #e8f3ec;
    --fp-lime: #a7d46f;
    --fp-bg: #f6f7f2;
    --fp-card: #ffffff;
    --fp-text: #1f2d24;
    --fp-muted: #6b756d;
    --fp-border: #dfe7dd;
    --fp-danger: #c53030;
    --fp-warning: #b7791f;
    --fp-blue: #2b6cb0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--fp-text);
    background: var(--fp-bg);
}

a { text-decoration: none; }
.alert { border-radius: 15px; }

/* =========================================================
   LOGIN
   ========================================================= */

.fp-login-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.fp-login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.fp-login-left {
    position: relative;
    padding: 48px 64px;
    background:
        radial-gradient(circle at top left, rgba(143, 191, 77, 0.35), transparent 34%),
        linear-gradient(135deg, #173524 0%, #214b34 52%, #315f3e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.fp-login-left::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.fp-login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.fp-logo-mark {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    background: linear-gradient(135deg, #214b34 0%, #2f6b47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .20);
    overflow: hidden;
    flex: 0 0 auto;
}

.fp-logo-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.fp-brand-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .75);
}

.fp-login-brand h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.fp-login-brand p,
.fp-client-subtitle {
    margin-top: 8px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
}

.fp-login-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin-top: 90px;
}

.fp-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e8f7df;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 20px;
}

.fp-login-copy h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    font-weight: 800;
    margin-bottom: 22px;
}

.fp-login-copy p {
    max-width: 570px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.fp-login-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 40px;
}

.fp-login-stats div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.fp-login-stats strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.fp-login-stats span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.fp-login-right {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.fp-login-card {
    width: 100%;
    max-width: 430px;
    background: var(--fp-card);
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 24px 70px rgba(31, 45, 36, 0.12);
    border: 1px solid rgba(223, 231, 221, 0.8);
}

.fp-login-card-wow {
    position: relative;
    overflow: hidden;
}

.fp-login-card-wow::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(39, 103, 73, 0.08);
}

.fp-login-card-wow::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(143, 191, 77, 0.10);
}

.fp-login-card > * {
    position: relative;
    z-index: 2;
}

.fp-login-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.fp-login-card-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #f3f0e7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 34px rgba(31, 45, 36, 0.10);
}

.fp-login-card-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.fp-system-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--fp-green-soft);
    color: var(--fp-green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.fp-login-card h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.fp-login-card p {
    color: var(--fp-muted);
    margin-bottom: 0;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--fp-text);
}

.fp-input-group { position: relative; }

.fp-input-group span {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fp-muted);
    z-index: 3;
    font-size: 15px;
}

.fp-input {
    height: 52px;
    border-radius: 15px;
    border: 1px solid var(--fp-border);
    background: #fbfcfa;
    padding-left: 16px;
    font-size: 15px;
}

.fp-input-with-icon { padding-left: 48px; }

.fp-input:focus {
    border-color: var(--fp-green);
    box-shadow: 0 0 0 4px rgba(39, 103, 73, 0.12);
}

.fp-btn-primary {
    height: 52px;
    border-radius: 15px;
    border: 0;
    background: linear-gradient(135deg, #276749 0%, #3f8f57 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(39, 103, 73, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .18s ease;
}

.fp-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(39, 103, 73, 0.28);
}

.fp-btn-primary i {
    font-size: 14px;
    transition: transform .18s ease;
}

.fp-btn-primary:hover i { transform: translateX(3px); }

.fp-login-card-note {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-border);
    color: var(--fp-muted);
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.fp-login-card-note i { color: var(--fp-green); }
.fp-alert { border-radius: 16px; border: 0; }

.fp-login-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--fp-muted);
    font-size: 13px;
}

/* =========================================================
   APP LAYOUT
   ========================================================= */

.fp-app-body { background: var(--fp-bg); }

/* Desktop sidebar */

.fp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 292px;
    height: 100vh;
    padding: 12px;
    background:
        radial-gradient(circle at top left, rgba(143, 191, 77, 0.18), transparent 34%),
        linear-gradient(180deg, #173524 0%, #1f432e 52%, #163120 100%);
    color: #fff;
    z-index: 1000;
    overflow: hidden;
}

.fp-sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px 10px;
}

.fp-sidebar-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #f3f0e7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    flex: 0 0 auto;
}

.fp-sidebar-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.fp-sidebar-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.6px;
    line-height: 1;
}

.fp-sidebar-subtitle {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    line-height: 1.3;
}

.fp-sidebar-location {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}

.fp-sidebar-nav {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 2px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-nav-section {
    margin: 10px 8px 4px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.38);
}

.fp-sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 14px;
    color: rgba(255,255,255,.74);
    font-size: 14px;
    font-weight: 700;
    transition: all .18s ease;
}

.fp-sidebar-nav a i {
    width: 18px;
    text-align: center;
    color: rgba(255,255,255,.62);
    transition: all .18s ease;
}

.fp-sidebar-nav a:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
    transform: none;
}

.fp-sidebar-nav a:hover i { color: var(--fp-lime); }

.fp-sidebar-nav a.active {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.fp-sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: var(--fp-lime);
}

.fp-sidebar-nav a.active i { color: var(--fp-lime); }

.fp-sidebar-footer {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(0,0,0,.14);
    border: 1px solid rgba(255,255,255,.08);
    flex: 0 0 auto;
}

.fp-sidebar-footer strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.fp-sidebar-footer span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}

/* Main and topbar */

.fp-main {
    margin-left: 292px;
    min-height: 100vh;
}

.fp-topbar {
    height: 92px;
    background: #fff;
    border-bottom: 1px solid #e2e8df;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.fp-page-title { min-width: 0; }

.fp-page-title h1,
.fp-topbar h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    color: var(--fp-text);
}

.fp-page-title p,
.fp-topbar p {
    margin: 4px 0 0;
    color: var(--fp-muted);
    font-size: 14px;
}

.fp-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
}

/* User dropdown */

.fp-user-pill {
    border: 0;
    background: var(--fp-bg);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.fp-user-pill::after { margin-left: 8px; }

.fp-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--fp-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.fp-user-info { text-align: left; }

.fp-user-pill strong {
    display: block;
    font-size: 13px;
    line-height: 1;
}

.fp-user-pill span {
    display: block;
    font-size: 12px;
    color: var(--fp-muted);
    margin-top: 3px;
}

.fp-user-dropdown {
    min-width: 260px;
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    padding: 10px;
}

.fp-dropdown-header { padding: 10px 12px; }
.fp-dropdown-header strong { display: block; }
.fp-dropdown-header small { color: var(--fp-muted); }

.fp-user-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
}

.fp-user-dropdown .dropdown-item i { width: 20px; }

.fp-content { padding: 32px; }

/* =========================================================
   DASHBOARD
   ========================================================= */

.fp-kpi-card {
    position: relative;
    overflow: hidden;

    min-height: 128px;

    background:
        radial-gradient(circle at top right, rgba(167,212,111,.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7faf4 100%);

    border: 1px solid rgba(226,232,223,.9);
    border-radius: 26px;

    padding: 24px;

    display: flex;
    align-items: center;
    gap: 18px;

    box-shadow:
        0 14px 36px rgba(31,45,36,.07);

    transition: all .18s ease;
}

.fp-kpi-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: rgba(39,103,73,.06);
}

.fp-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(31,45,36,.11);
}

.fp-kpi-card > * {
    position: relative;
    z-index: 2;
}

.fp-kpi-icon {
    width: 58px;
    height: 58px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;

    flex: 0 0 auto;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 12px 26px rgba(31,45,36,.08);
}

.fp-kpi-card span {
    display: block;

    color: var(--fp-muted);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: -0.1px;
}

.fp-kpi-card h3 {
    margin: 8px 0 0;

    font-size: 36px;
    font-weight: 900;

    letter-spacing: -1.2px;
    line-height: 1;

    color: var(--fp-text);
}

.fp-kpi-card small {
    display: none;
}

/* Ikone */
.fp-kpi-icon.green {
    background: linear-gradient(135deg, #e8f3ec 0%, #d9eddf 100%);
    color: #276749;
}

.fp-kpi-icon.amber {
    background: linear-gradient(135deg, #fff3d8 0%, #ffe8a8 100%);
    color: #b7791f;
}

.fp-kpi-icon.blue {
    background: linear-gradient(135deg, #e7f0ff 0%, #d5e6ff 100%);
    color: #2b6cb0;
}

.fp-kpi-icon.red {
    background: linear-gradient(135deg, #fdeaea 0%, #fad0d0 100%);
    color: #c53030;
}

.fp-kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.fp-kpi-icon.green { background: var(--fp-green-soft); color: var(--fp-green); }
.fp-kpi-icon.amber { background: #fff3d8; color: var(--fp-warning); }
.fp-kpi-icon.blue { background: #e7f0ff; color: var(--fp-blue); }
.fp-kpi-icon.red { background: #fdeaea; color: var(--fp-danger); }

.fp-kpi-card h3{
    font-size:32px;
    font-weight:650;
    line-height:1;
    margin-top:6px;
}

.fp-kpi-card span{
    font-size:13px;
    font-weight:700;
    color:#6b756d;
}

.fp-kpi-card small { color: #89938c; }

.fp-panel {
    background: #fff;
    border: 1px solid #e2e8df;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(31,45,36,.06);
}

.fp-panel-header { margin-bottom: 20px; }
.fp-panel-header h5 { font-weight: 800; margin: 0; }
.fp-panel-header p { margin: 4px 0 0; color: var(--fp-muted); font-size: 14px; }

.fp-activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-activity-list > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--fp-bg);
}

.fp-activity-list strong { display: block; font-size: 14px; }
.fp-activity-list small { color: var(--fp-muted); }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
}

.dot.green { background: var(--fp-green); }
.dot.amber { background: #d69e2e; }
.dot.blue { background: var(--fp-blue); }

/* =========================================================
   MOBILE TOPBAR + OFFCANVAS SIDEBAR
   ========================================================= */

.fp-mobile-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--fp-green-dark);
    color: white;
    border: none;
    flex: 0 0 auto;
}

.fp-mobile-menu-btn:hover {
    background: var(--fp-green);
    color: white;
}

.fp-mobile-sidebar {
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(143, 191, 77, 0.20), transparent 35%),
        linear-gradient(180deg, #173524 0%, #1f432e 100%);
    color: #fff;
    border: 0;
    width: 86%;
    max-width: 360px;
}

.fp-mobile-sidebar .offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.fp-mobile-sidebar-header {
    padding: 16px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
}

.fp-mobile-sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f3f0e7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.fp-mobile-sidebar-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.fp-mobile-sidebar-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.4px;
}

.fp-mobile-sidebar-header span {
    color: rgba(255,255,255,.65);
    font-size: 12px;
}

.fp-mobile-sidebar-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    background: rgba(255,255,255,.10);
    color: #fff;
}

.fp-mobile-sidebar-client {
    margin: 0 16px 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
}

.fp-mobile-sidebar-client span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.55);
    margin-bottom: 4px;
}

.fp-mobile-sidebar-client strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.fp-mobile-sidebar-client small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.65);
}

.fp-mobile-sidebar-section {
    margin: 12px 20px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.42);
    font-weight: 800;
}

.fp-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 12px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
}

.fp-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.76);
    padding: 10px 12px;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 700;
    transition: all .18s ease;
}

.fp-mobile-nav a i {
    width: 20px;
    height: 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
}

.fp-mobile-nav a:hover,
.fp-mobile-nav a.active {
    background: rgba(255,255,255,.13);
    color: #fff;
}

.fp-mobile-nav a.active i { color: var(--fp-lime); }

.fp-mobile-sidebar-footer {
    margin: 8px 16px 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,.12);
    border: 1px solid rgba(255,255,255,.08);
    flex: 0 0 auto;
}

.fp-mobile-sidebar-footer span {
    display: block;
    font-weight: 800;
    font-size: 13px;
}

.fp-mobile-sidebar-footer small { color: rgba(255,255,255,.55); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .fp-login-wrapper { grid-template-columns: 1fr; }
    .fp-login-left { display: none; }
    .fp-login-right { min-height: 100vh; padding: 22px; }
    .fp-login-card { padding: 30px 24px; border-radius: 22px; }

    .fp-sidebar { display: none !important; }
    .fp-main { margin-left: 0; }

    .fp-topbar {
        height: auto;
        padding: 14px 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .fp-topbar-left {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .fp-page-title {
        min-width: 0;
        flex: 1;
    }

    .fp-page-title h1 {
        font-size: 20px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fp-page-title p {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fp-topbar-actions {
        width: auto;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .fp-user-pill {
        width: 42px !important;
        height: 42px;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center;
        background: transparent;
    }

    .fp-user-info,
    .fp-user-pill::after {
        display: none !important;
    }

    .fp-user-avatar {
        width: 42px;
        height: 42px;
    }

    .fp-content { padding: 18px; }
}

@media (max-width: 575.98px) {
    .fp-login-card-top {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .fp-login-card { max-width: 100%; }
    .fp-kpi-card { padding: 18px; border-radius: 20px; }
    .fp-panel { padding: 18px; border-radius: 22px; }
}
.fp-mobile-sidebar-logo {
    background: linear-gradient(
        135deg,
        #214b34 0%,
        #2f6b47 100%
    );
}
.fp-sidebar-logo{
    background:none;
    box-shadow:none;
    width:auto;
    height:auto;
}

.fp-sidebar-logo img{
    width:58px;
    height:58px;
}
.fp-sidebar-title{
    font-size:22px;
}
.fp-dashboard-hero {
    position: relative;
    overflow: hidden;

    border-radius: 28px;
    padding: 28px 30px;

    color: #fff;

    background:
        radial-gradient(circle at top right, rgba(167,212,111,.25), transparent 30%),
        linear-gradient(135deg, #173524 0%, #276749 100%);

    box-shadow: 0 18px 44px rgba(23,53,36,.16);

    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.fp-hero-main {
    min-width: 0;
}

.fp-dashboard-hero h2 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 34px;
}

.fp-dashboard-hero p {
    margin: 9px 0 0;
    color: rgba(255,255,255,.78);
    max-width: 720px;
    font-size: 15px;
}

.fp-dashboard-hero p strong {
    color: #fff;
    font-weight: 900;
}

.fp-hero-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.fp-weather-card {
    min-width: 245px;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 16px 18px;

    border-radius: 24px;

    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.16);

    backdrop-filter: blur(10px);
}

.fp-weather-icon-wrap {
    width: 58px;
    height: 58px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.14);
}

.fp-weather-icon-wrap i {
    font-size: 30px;
    color: #FFD166;

    filter: drop-shadow(0 0 12px rgba(255,209,102,.35));
}

.fp-weather-temp {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.fp-weather-location {
    margin-top: 4px;

    font-size: 13px;
    color: rgba(255,255,255,.72);
    font-weight: 700;
}

.fp-weather-desc {
    margin-top: 2px;

    font-size: 13px;
    color: rgba(255,255,255,.84);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .fp-dashboard-hero {
        padding: 22px;
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .fp-dashboard-hero h2 {
        font-size: 28px;
    }

    .fp-weather-card {
        width: 100%;
        min-width: 0;
    }
}

.fp-hero-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.fp-hero-date {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 800;
}

.fp-panel-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.fp-panel-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--fp-green-soft);
    color: var(--fp-green);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.fp-panel-badge.red {
    background: #fdeaea;
    color: var(--fp-danger);
}

.fp-empty-state {
    min-height: 190px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
    background: var(--fp-bg);
    border: 1px dashed var(--fp-border);
}

.fp-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--fp-green-soft);
    color: var(--fp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex: 0 0 auto;
}

.fp-empty-state h6 {
    margin: 0 0 6px;
    font-weight: 900;
}

.fp-empty-state p {
    margin: 0;
    color: var(--fp-muted);
}

@media (max-width: 991.98px) {
    .fp-dashboard-hero {
        padding: 22px;
        border-radius: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .fp-dashboard-hero h2 {
        font-size: 28px;
    }

    .fp-hero-date {
        width: 100%;
        justify-content: center;
    }

    .fp-panel-header-row {
        flex-direction: column;
    }

    .fp-empty-state {
        align-items: flex-start;
        flex-direction: column;
    }
}
.fp-login-card-top-center{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:28px;
}

.fp-login-logo-large{
    width:110px;
    height:110px;
    object-fit:contain;

    filter:
        drop-shadow(0 10px 25px rgba(39,103,73,.15));
}
.fp-login-card-company{
    margin-top:22px;

    padding:16px 18px;

    border-radius:18px;

    background:#f7faf6;

    border:1px solid #e2e8df;
}

.fp-company-row{
    display:flex;
    align-items:center;
    gap:12px;

    font-size:13px;

    color:var(--fp-text);
}

.fp-company-row:not(:last-child){
    margin-bottom:10px;
}

.fp-company-row i{
    width:18px;

    color:var(--fp-green);

    text-align:center;
}
.fp-nav-dropdown {
    display: flex;
    flex-direction: column;
}

.fp-nav-dropdown-toggle {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.74);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-nav-dropdown-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-nav-dropdown-toggle i {
    color: rgba(255,255,255,.62);
}

.fp-nav-dropdown-toggle:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.fp-nav-dropdown-menu {
    margin-left: 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-nav-dropdown-menu a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}
.fp-nav-dropdown-menu {
    margin-left: 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.12);

    display: none;
    flex-direction: column;
    gap: 2px;
}

.fp-nav-dropdown.open .fp-nav-dropdown-menu {
    display: flex;
}

.fp-nav-dropdown.open .fp-nav-dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.fp-nav-dropdown-toggle .fa-chevron-down {
    transition: transform .18s ease;
}
.fp-nav-dropdown-toggle{
    width:100%;
    min-height:38px;
    padding:8px 12px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    border:0;
    background:transparent;

    color:rgba(255,255,255,.74);

    font-size:14px;
    font-weight:700;

    border-radius:14px;
}

/* MOBILE DROPDOWN - IZLAZ */
.fp-mobile-nav .fp-nav-dropdown {
    width: 100%;
}

.fp-mobile-nav .fp-mobile-dropdown-toggle {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    border-radius: 13px;
    background: transparent;

    color: rgba(255,255,255,.76);

    font-family: inherit;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.fp-mobile-nav .fp-dropdown-label {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.fp-mobile-nav .fp-dropdown-label i {
    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px !important;
    color: rgba(255,255,255,.65);
}

.fp-mobile-nav .fp-mobile-dropdown-toggle > .fa-chevron-down {
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

.fp-mobile-nav .fp-mobile-dropdown-toggle:hover {
    background: rgba(255,255,255,.13);
    color: #fff;
}

.fp-mobile-dropdown-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: rgba(255,255,255,.76) !important;
    font-family: 'Inter', sans-serif !important;
}

.fp-mobile-nav-chevron {
    font-size: 12px !important;
    color: rgba(255,255,255,.55) !important;
}
.fp-mobile-nav .fp-mobile-nav-toggle {
    cursor: pointer;
}

.fp-mobile-nav .fp-mobile-nav-chevron {
    font-size: 12px;
    transition: transform .18s ease;
}

.fp-mobile-nav .fp-nav-dropdown.open .fp-mobile-nav-chevron {
    transform: rotate(180deg);
}

.fp-mobile-nav .fp-nav-dropdown-menu {
    display: none;
    margin-left: 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.fp-mobile-nav .fp-nav-dropdown.open .fp-nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
/* =========================================================
   HLADNJAČA
   ========================================================= */

.fp-coldroom-panel{
    position:relative;
    overflow:hidden;

    color:#fff;

    background:
        radial-gradient(circle at top right, rgba(255,255,255,.15), transparent 25%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.08), transparent 30%),
        linear-gradient(
            135deg,
            #0f4c75 0%,
            #1b6ca8 45%,
            #3a9bdc 100%
        );

    border:none;

    box-shadow:
        0 18px 44px rgba(15,76,117,.20);
}

/* pahuljice */

.fp-coldroom-panel::before{
    content:"❄ ❅ ❄";

    position:absolute;

    top:20px;
    right:24px;

    font-size:24px;

    color:rgba(255,255,255,.12);

    letter-spacing:10px;
}

.fp-coldroom-panel::after{
    content:"";

    position:absolute;

    right:-80px;
    bottom:-80px;

    width:240px;
    height:240px;

    border-radius:50%;

    background:rgba(255,255,255,.08);
}

/* header */

.fp-coldroom-panel .fp-panel-header{
    position:relative;
    z-index:2;
}

.fp-coldroom-panel h5{
    color:#fff;
}

.fp-coldroom-panel p{
    color:rgba(255,255,255,.72);
}

.fp-coldroom-icon{
    width:48px;
    height:48px;

    border-radius:16px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.15);

    border:1px solid rgba(255,255,255,.15);

    color:#fff;

    font-size:22px;

    backdrop-filter:blur(10px);
}

/* lista */

.fp-coldroom-list{
    position:relative;
    z-index:2;

    display:flex;
    flex-direction:column;
    gap:10px;
}

.fp-coldroom-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;

    padding:14px 16px;

    border-radius:18px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.12);

    backdrop-filter:blur(10px);
}

.fp-coldroom-row strong{
    display:block;

    color:#fff;

    font-size:16px;
    font-weight:800;
}

.fp-coldroom-row span{
    display:block;

    margin-top:2px;

    color:rgba(255,255,255,.75);

    font-size:12px;
}

/* desna strana */

.fp-coldroom-value{
    text-align:right;

    flex:0 0 auto;
}

.fp-coldroom-value strong{
    display:block;

    font-size:18px;
    font-weight:900;

    color:#fff;
}

.fp-coldroom-value span{
    display:block;

    margin-top:2px;

    font-size:12px;

    color:rgba(255,255,255,.75);
}

/* mobile */

@media (max-width:575px){

    .fp-coldroom-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .fp-coldroom-value{
        text-align:left;
    }
}

/* ===== TRIVIA PANEL ===== */

.fp-trivia-panel {
    min-height: 100%;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 22px;

    color: #fff;

    background:
        radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 30%),
        linear-gradient(135deg, #173524 0%, #276749 100%);
}

.fp-trivia-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: rgba(255,255,255,.07);
}

.fp-trivia-icon {
    position: relative;
    z-index: 2;

    width: 74px;
    height: 74px;

    border-radius: 26px;

    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.13);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    flex: 0 0 auto;
}

.fp-trivia-content {
    position: relative;
    z-index: 2;
}

.fp-trivia-content span {
    display: inline-flex;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .8px;

    color: rgba(255,255,255,.65);
}

.fp-trivia-content h5 {
    margin: 0 0 8px;

    font-size: 24px;
    font-weight: 900;

    letter-spacing: -.6px;
}

.fp-trivia-content p {
    margin: 0;

    max-width: 560px;

    color: rgba(255,255,255,.78);

    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 575.98px) {
    .fp-coldroom-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .fp-coldroom-value {
        text-align: left;
    }

    .fp-trivia-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}
.fp-top-customers-panel {
    position: relative;
    overflow: hidden;
}

.fp-top-customers-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff3d8;
    color: #b7791f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.fp-top-customers-empty {
    padding: 22px;
    border-radius: 20px;
    background: var(--fp-bg);
    border: 1px dashed var(--fp-border);
}

.fp-top-customers-empty strong {
    display: block;
    font-weight: 900;
    margin-bottom: 5px;
}

.fp-top-customers-empty span {
    color: var(--fp-muted);
    font-size: 14px;
}
/* =========================================================
   DASHBOARD MOBILE FIXES
   ========================================================= */

@media (max-width: 991.98px) {

    .fp-panel-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fp-panel-link {
        width: 100%;
        justify-content: center;
    }

    .fp-trivia-panel {
        min-height: auto;
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fp-trivia-icon {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        font-size: 26px;
    }

    .fp-trivia-content h5 {
        font-size: 21px;
    }

    .fp-top-customers-empty {
        padding: 18px;
    }

    .fp-mini-list-item {
        align-items: flex-start;
    }

    .fp-mini-status {
        display: none;
    }

    .fp-coldroom-panel {
        min-height: auto;
    }

    .fp-coldroom-icon {
        width: 42px;
        height: 42px;
    }

    .fp-coldroom-row {
        padding: 13px 14px;
    }

    .fp-empty-state {
        min-height: auto;
        padding: 20px;
    }
}

@media (max-width: 575.98px) {

    .fp-content {
        padding: 14px;
    }

    .fp-dashboard-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .fp-dashboard-hero h2 {
        font-size: 25px;
    }

    .fp-dashboard-hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    .fp-weather-card {
        flex-direction: row;
        padding: 14px;
        border-radius: 20px;
    }

    .fp-weather-icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 17px;
    }

    .fp-weather-temp {
        font-size: 26px;
    }

    .fp-kpi-card {
        min-height: 112px;
        padding: 18px;
        border-radius: 22px;
    }

    .fp-kpi-icon {
        width: 50px;
        height: 50px;
        border-radius: 17px;
        font-size: 20px;
    }

    .fp-kpi-card h3 {
        font-size: 32px;
    }

    .fp-kpi-card span {
        font-size: 12px;
    }

    .fp-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .fp-panel-header h5 {
        font-size: 18px;
    }

    .fp-panel-header p {
        font-size: 13px;
    }

    .fp-mini-list-item {
        padding: 13px;
        border-radius: 16px;
    }

    .fp-mini-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .fp-coldroom-row {
        flex-direction: row;
        align-items: center;
    }

    .fp-coldroom-value {
        text-align: right;
    }

    .fp-coldroom-panel::before {
        font-size: 18px;
        right: 14px;
        top: 16px;
        letter-spacing: 6px;
    }
}

/* =========================================================
   DASHBOARD MOBILE FIXES
   ========================================================= */

@media (max-width: 991.98px) {

    .fp-panel-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fp-panel-link {
        width: 100%;
        justify-content: center;
    }

    .fp-trivia-panel {
        min-height: auto;
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fp-trivia-icon {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        font-size: 26px;
    }

    .fp-trivia-content h5 {
        font-size: 21px;
    }

    .fp-top-customers-empty {
        padding: 18px;
    }

    .fp-mini-list-item {
        align-items: flex-start;
    }

    .fp-mini-status {
        display: none;
    }

    .fp-coldroom-panel {
        min-height: auto;
    }

    .fp-coldroom-icon {
        width: 42px;
        height: 42px;
    }

    .fp-coldroom-row {
        padding: 13px 14px;
    }

    .fp-empty-state {
        min-height: auto;
        padding: 20px;
    }
}

@media (max-width: 575.98px) {

    .fp-content {
        padding: 14px;
    }

    .fp-dashboard-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .fp-dashboard-hero h2 {
        font-size: 25px;
    }

    .fp-dashboard-hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    .fp-weather-card {
        flex-direction: row;
        padding: 14px;
        border-radius: 20px;
    }

    .fp-weather-icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 17px;
    }

    .fp-weather-temp {
        font-size: 26px;
    }

    .fp-kpi-card {
        min-height: 112px;
        padding: 18px;
        border-radius: 22px;
    }

    .fp-kpi-icon {
        width: 50px;
        height: 50px;
        border-radius: 17px;
        font-size: 20px;
    }

    .fp-kpi-card h3 {
        font-size: 32px;
    }

    .fp-kpi-card span {
        font-size: 12px;
    }

    .fp-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .fp-panel-header h5 {
        font-size: 18px;
    }

    .fp-panel-header p {
        font-size: 13px;
    }

    .fp-mini-list-item {
        padding: 13px;
        border-radius: 16px;
    }

    .fp-mini-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .fp-coldroom-row {
        flex-direction: row;
        align-items: center;
    }

    .fp-coldroom-value {
        text-align: right;
    }

    .fp-coldroom-panel::before {
        font-size: 18px;
        right: 14px;
        top: 16px;
        letter-spacing: 6px;
    }
}
.fp-daily-message {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--fp-border);
    box-shadow: 0 10px 25px rgba(15,23,42,.04);
}

.fp-daily-message-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-green-soft);
    color: var(--fp-green);
    font-size: 22px;
    flex: 0 0 auto;
}

.fp-daily-message-content {
    display: flex;
    flex-direction: column;
}

.fp-daily-message-content strong {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 3px;
}

.fp-daily-message-content span {
    color: var(--fp-muted);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width:575px) {
    .fp-daily-message {
        padding: 14px;
        border-radius: 18px;
        gap: 12px;
    }

    .fp-daily-message-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 18px;
    }

    .fp-daily-message-content span {
        font-size: 13px;
    }
}
/* =========================================================
   TRENUTNO STANJE KPI
   ========================================================= */

.fp-livestock-card{

    position:relative;
    overflow:hidden;

    min-height:180px;

    border-radius:28px;

    padding:28px;

    display:flex;
    align-items:center;

    box-shadow:
        0 18px 40px rgba(15,23,42,.08);
}

.fp-livestock-chick{

    background:
        linear-gradient(
            135deg,
            #fef3c7 0%,
            #fde68a 100%
        );
}

.fp-livestock-rooster{

    background:
        linear-gradient(
            135deg,
            #fed7aa 0%,
            #fdba74 100%
        );
}

.fp-livestock-content{

    position:relative;
    z-index:2;
}

.fp-livestock-content span{

    display:block;

    font-size:14px;
    font-weight:800;

    text-transform:uppercase;
    letter-spacing:.8px;

    opacity:.8;
}

.fp-livestock-content h2{

    margin:8px 0;

    font-size:50px;
    line-height:1;

    font-weight:900;

    color:#111827;
}

.fp-livestock-content small{

    font-size:14px;

    color:#374151;
}

.fp-livestock-bg{

    position:absolute;

    right:25px;
    bottom:-10px;

    font-size:150px;

    opacity:.18;

    user-select:none;
}
.fp-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fp-page-head h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.fp-page-head p {
    margin: 6px 0 0;
    color: var(--fp-muted);
}

.fp-page-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--fp-green-soft);
    color: var(--fp-green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
}

@media (max-width: 768px) {
    .fp-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .fp-page-head .btn {
        width: 100%;
        justify-content: center;
    }
}
.fp-modal-content {
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15,23,42,.25);
}

.fp-modal-header {
    background: linear-gradient(135deg, #173524 0%, #276749 100%);
    color: #fff;
    border: 0;
    padding: 24px;
}

.fp-modal-header h5 {
    font-weight: 900;
    margin: 0;
}

.fp-modal-header p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

.fp-modal-header .btn-close {
    filter: invert(1);
    opacity: .85;
}

.fp-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.fp-entry-card {
    border: 1px solid var(--fp-border);
    background: #fff;
    border-radius: 22px;
    padding: 18px;
}

.fp-entry-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fp-entry-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.fp-entry-icon.chick {
    background: #fef3c7;
}

.fp-entry-icon.rooster {
    background: #fed7aa;
}

.fp-entry-card h6 {
    margin: 0;
    font-weight: 900;
}

.fp-entry-card span {
    color: var(--fp-muted);
    font-size: 13px;
}

.fp-average-box {
    height: 52px;
    border-radius: 15px;
    background: var(--fp-green-soft);
    color: var(--fp-green);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.fp-average-box strong {
    font-size: 16px;
    font-weight: 900;
}
.fp-data-table {
    border-collapse: separate;
    border-spacing: 0 6px;
}

table.fp-data-table.dataTable tbody tr {

    background:
        linear-gradient(
            135deg,
            #f7faf4 0%,
            #eef6ea 100%
        ) !important;

    box-shadow:
        0 4px 12px rgba(31,45,36,.05);

    border-bottom: 1px solid rgba(39,103,73,.10);
}
table.fp-data-table.dataTable tbody td {

    background: transparent !important;

 
    border-bottom: 1px solid #dfead8 !important;

    padding: 11px 14px;
}

table.fp-data-table.dataTable tbody td:first-child {

    border-left: 1px solid #dfead8 !important;

}

table.fp-data-table.dataTable tbody td:last-child {

    border-right: 1px solid #dfead8 !important;

}

.fp-data-table tbody td {
    border: 0;
    padding: 11px 14px;
    background: transparent;
}


.fp-dt-top .dt-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fp-dt-btn {
    margin-right: 0 !important;
}
.fp-action-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fp-action-btn.edit {
    background: #e7f0ff;
    color: #2b6cb0;
}

.fp-action-btn.delete {
    background: #fdeaea;
    color: #c53030;
}

.fp-action-btn:hover {
    transform: translateY(-1px);
}
table.fp-data-table.dataTable > tbody > tr > * {

    background: transparent !important;
}
.fp-date-input{

    height:52px;

    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbf6 100%
        );

    border:1px solid rgba(39,103,73,.12);

    font-weight:600;

    cursor:pointer;
}

.fp-date-input:hover{
    border-color:#276749;
}

.fp-date-input:focus{
    border-color:#276749;
    box-shadow:
        0 0 0 4px rgba(39,103,73,.12);
}
.fp-date-input{
    padding-right:45px;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23276749' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm11 8H6v10h12V10z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 14px center;
    background-size:18px;
}

.fp-ulaz-stavka-row {
    padding: 14px;
    border-radius: 18px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
    margin-bottom: 12px;
}

.fp-remove-row-btn {
    width: 100%;
    height: 62px;
    border-radius: 15px;
    background: #fdeaea;
    color: #c53030;
    font-weight: 800;
    border: 0;
}

.fp-remove-row-btn:hover {
    background: #fad0d0;
    color: #9b2c2c;
}
.is-invalid{
    border-color:#dc3545 !important;

    box-shadow:
        0 0 0 3px rgba(220,53,69,.15);
}
.fp-action-btn.details {
    background: var(--fp-green-soft);
    color: var(--fp-green);
}
.fp-detail-box {
    min-height: 92px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
}

.fp-detail-box span {
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--fp-muted);
    margin-bottom: 6px;
}

.fp-detail-box strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.fp-detail-box small {
    display: block;
    margin-top: 3px;
    color: var(--fp-muted);
}

.fp-detail-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    margin-bottom: 12px;
}

.fp-detail-section-title i {
    color: var(--fp-green);
}

.fp-detail-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-detail-item-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7faf4 0%, #eef6ea 100%);
    border: 1px solid rgba(39,103,73,.12);
}

.fp-detail-item-row strong {
    display: block;
    font-weight: 900;
}

.fp-detail-item-row span {
    display: block;
    margin-top: 2px;
    color: var(--fp-muted);
    font-size: 13px;
}

.fp-detail-item-value {
    flex: 0 0 auto;
    align-self: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff;
    color: var(--fp-green);
    font-weight: 900;
    font-size: 13px;
}

.fp-detail-note {
    padding: 16px;
    border-radius: 18px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
}
.fp-mobile-actions-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: var(--fp-green-soft);
    color: var(--fp-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fp-action-sheet-popup {
    border-radius: 26px !important;
}

.fp-action-sheet-summary {
    text-align: left;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
    margin-bottom: 14px;
}

.fp-action-sheet-summary strong {
    display: block;
    font-weight: 900;
}

.fp-action-sheet-summary span {
    display: block;
    margin-top: 3px;
    color: var(--fp-muted);
    font-size: 13px;
}

.fp-action-sheet-summary small {
    display: block;
    margin-top: 6px;
    font-weight: 800;
    color: var(--fp-green);
}

.fp-action-sheet-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-sheet-action {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-sheet-action.details {
    background: var(--fp-green-soft);
    color: var(--fp-green);
}

.fp-sheet-action.edit {
    background: #e7f0ff;
    color: #2b6cb0;
}

.fp-sheet-action.delete {
    background: #fdeaea;
    color: #c53030;
}
.fp-kpi-card.fp-kpi-wow {
    min-height: 150px;
    border: 0;
    color: #111827;
}

.fp-kpi-wow.chick{
    background:linear-gradient(
        135deg,
        #fff7d6 0%,
        #ffe99e 100%
    );
}

.fp-kpi-wow.chick::after{
    content:"🐔";
}

.fp-kpi-wow.rooster{
    background:linear-gradient(
        135deg,
        #ffe7cf 0%,
        #ffc98e 100%
    );
}

.fp-kpi-wow.rooster::after{
    content:"🐓";
}
.fp-kpi-extra{
    margin-top:10px;
    display:grid;
    gap:4px;
    font-size:12px;
}

.fp-kpi-extra strong{
    font-weight:900;
}
.fp-kpi-wow{
    position:relative;
    overflow:hidden;
    min-height:160px;
}

.fp-kpi-wow > div{
    position:relative;
    z-index:2;
}

.fp-kpi-wow::after{
    position:absolute;
    right:-10px;
    bottom:-10px;
    font-size:110px;
    opacity:.12;
    z-index:1;
    line-height:1;
}
html,
body {
    overflow-x: hidden;
}

.fp-main,
.fp-content {
    max-width: 100%;
    overflow-x: hidden;
}

.fp-topbar {
    max-width: 100%;
    overflow: visible;
}

.fp-topbar-actions,
.fp-topbar-actions .dropdown {
    position: relative;
}

.fp-user-dropdown {
    min-width: 220px;
    max-width: calc(100vw - 24px);
}
.fp-source-box {
    height: 52px;
    border-radius: 15px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    font-weight: 800;
    color: var(--fp-green);
}

.fp-source-box i {
    font-size: 18px;
}
.fp-klanje-stavka-row {
    padding: 14px;
    border-radius: 18px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
    margin-bottom: 12px;
}

.fp-nus-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed rgba(39,103,73,.22);
}

.fp-nus-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    color: var(--fp-green);
    margin-bottom: 12px;
}

.fp-nus-row {
    padding-top: 10px;
    border-top: 1px solid rgba(39,103,73,.08);
}

.fp-nus-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}
/* ===== PERIOD TABS - MOBILE FIX ===== */

.fp-period-tabs {
    width: 100%;
    display: flex !important;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.fp-period-tabs .btn {
    border: 0 !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #64748b !important;
    font-weight: 800 !important;
    padding: 8px 14px !important;
    box-shadow: none !important;
}

.fp-period-tabs .btn.active {
    background: var(--fp-green) !important;
    color: #fff !important;
}

@media (max-width: 768px) {

    .fp-period-tabs {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .fp-period-tabs .btn {
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 4px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        text-align: center !important;
        border-radius: 13px !important;
        white-space: nowrap !important;
    }
}
.fp-table-main strong {
    display: block;
    font-weight: 900;
}

.fp-table-main span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--fp-muted);
}

.fp-table-main small {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5ef;
    color: var(--fp-green);
    font-size: 11px;
    font-weight: 800;
}

.fp-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.fp-source-badge.admin {
    background: #e7f0ff;
    color: #2b6cb0;
}

.fp-source-badge.klaonica {
    background: #fff3cd;
    color: #9a6700;
}
.fp-warning-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:12px;
    background:#fff3cd;
    color:#b7791f;
    font-size:16px;
}

.fp-source-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.fp-source-badge.admin{
    background:#e7f0ff;
    color:#2b6cb0;
}

.fp-source-badge.klaonica{
    background:#fff3cd;
    color:#9a6700;
}
.fp-nus-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-weight:900;
    color:var(--fp-green);
    margin-bottom:12px;
}

.fp-nus-title span{
    display:flex;
    align-items:center;
    gap:9px;
}

.fp-clear-nus-btn{
    border:0;
    border-radius:999px;
    padding:6px 10px;
    background:#fdeaea;
    color:#c53030;
    font-size:12px;
    font-weight:900;
}
.fp-nus-kpi-breakdown {
    padding: 16px;
    border-radius: 20px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
}

.fp-nus-kpi-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    color: var(--fp-green);
    margin-bottom: 12px;
}

.fp-nus-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fp-nus-kpi-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(39,103,73,.10);
}

.fp-nus-kpi-item strong {
    display: block;
    font-weight: 900;
}

.fp-nus-kpi-item span {
    display: block;
    margin-top: 4px;
    color: var(--fp-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .fp-nus-kpi-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================
   Nusproizvodi KPI - Mobile
   ========================== */

@media (max-width: 768px) {

    .fp-nus-kpi-breakdown {
        padding: 12px;
        border-radius: 16px;
    }

    .fp-nus-kpi-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .fp-nus-kpi-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .fp-nus-kpi-item {
        padding: 12px;
        border-radius: 14px;
    }

    .fp-nus-kpi-item strong {
        font-size: 14px;
        display: block;
        margin-bottom: 4px;
    }

    .fp-nus-kpi-item span {
        font-size: 13px;
        line-height: 1.4;
    }

}
.fp-nus-kpi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================================
   KLAONICA / SLAUGHTER TERMINAL
   ========================================================= */

.fp-slaughter-screen {
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(167,212,111,.22), transparent 35%),
        linear-gradient(135deg, #173524 0%, #214b34 52%, #315f3e 100%);
}

.fp-slaughter-topbar {
    width: 100%;
    min-height: 118px;
    padding: 22px 26px;
    border-radius: 28px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fp-slaughter-company {
    display: flex;
    align-items: center;
    gap: 18px;
}

.fp-slaughter-logo {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: rgba(255,255,255,.14);

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
}

.fp-slaughter-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.fp-slaughter-company h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.7px;
}

.fp-slaughter-company p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.75);
    font-size: 15px;
    font-weight: 700;
}

.fp-slaughter-clock {
    text-align: right;
    flex: 0 0 auto;
}

.fp-slaughter-clock span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    font-weight: 800;
}

.fp-slaughter-clock strong {
    display: block;
    margin-top: 4px;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.fp-slaughter-main {
    max-width: 980px;
    margin: 36px auto 0;
}

.fp-slaughter-welcome {
    margin-bottom: 26px;
    text-align: center;
    color: #fff;
}

.fp-slaughter-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .9px;
}

.fp-slaughter-welcome h2 {
    margin: 16px 0 10px;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.8px;
}

.fp-slaughter-welcome p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255,255,255,.76);
    font-size: 18px;
    line-height: 1.55;
}

/* =========================================================
   KLAONICA CARD
   ========================================================= */

.fp-klaonica-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px;
    border-radius: 34px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
}

.fp-klaonica-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
    border-radius: 30px;
    background: var(--fp-green-soft);
    color: var(--fp-green);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
}

.fp-klaonica-icon.success {
    background: #e8f3ec;
    color: var(--fp-green);
}

.fp-klaonica-status {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff3cd;
    color: #9a6700;
    font-weight: 900;
}

.fp-klaonica-timer {
    margin: 24px 0;
    font-size: 76px;
    font-weight: 900;
    color: var(--fp-green-dark);
}

/* =========================================================
   KLAONICA FORMS
   ========================================================= */

.fp-klaonica-input {
    min-height: 62px;
    font-size: 22px;
    font-weight: 800;
}

.fp-klaonica-input[readonly] {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    color: #0f172a;
    font-weight: 800;
    cursor: not-allowed;
}

.fp-klaonica-readonly {
    min-height: 62px;
    padding: 0 18px;
    border-radius: 15px;
    background: #f8fbf6;
    border: 1px solid var(--fp-border);
    color: var(--fp-green);

    display: flex;
    align-items: center;

    font-size: 22px;
    font-weight: 900;
}

/* =========================================================
   KLAONICA BUTTONS
   ========================================================= */

.fp-klaonica-start,
.fp-klaonica-stop,
.fp-klaonica-save,
.fp-klaonica-nus-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    text-decoration: none;
    box-shadow: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-weight: 900;
    transition: .2s;
}

.fp-klaonica-start {
    width: 100%;
    min-height: 100px;
    border-radius: 28px;
    background: linear-gradient(135deg, #a7d46f 0%, #3f8f57 100%) !important;
    color: #fff !important;
    font-size: 30px;
}

.fp-klaonica-stop {
    width: 100%;
    min-height: 110px;
    border-radius: 24px;
    background: #dc2626 !important;
    color: #fff !important;
    font-size: 24px;
}

.fp-klaonica-save {
    width: 100%;
    min-height: 76px;
    border-radius: 22px;
    background: var(--fp-green) !important;
    color: #fff !important;
    font-size: 24px;
}

.fp-klaonica-nus-btn {
    width: 100%;
    height: 62px;
    border-radius: 15px;
    background: #e7f0ff;
    color: #2b6cb0;
    font-size: 22px;
}

.fp-klaonica-start:hover,
.fp-klaonica-start:focus,
.fp-klaonica-start:active,
.fp-klaonica-save:hover,
.fp-klaonica-save:focus,
.fp-klaonica-save:active {
    color: #fff !important;
}

.fp-klaonica-stop:hover,
.fp-klaonica-stop:focus,
.fp-klaonica-stop:active {
    background: #b91c1c !important;
    color: #fff !important;
}

.fp-klaonica-nus-btn:hover,
.fp-klaonica-nus-btn:focus,
.fp-klaonica-nus-btn:active {
    background: #d5e6ff;
    color: #1e4e8c;
}

/* =========================================================
   KLAONICA MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .fp-slaughter-screen {
        padding: 14px;
    }

    .fp-slaughter-topbar {
        min-height: auto;
        padding: 16px;
        border-radius: 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .fp-slaughter-company {
        align-items: flex-start;
    }

    .fp-slaughter-logo {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .fp-slaughter-logo img {
        width: 42px;
        height: 42px;
    }

    .fp-slaughter-company h1 {
        font-size: 21px;
    }

    .fp-slaughter-company p {
        font-size: 13px;
    }

    .fp-slaughter-clock {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .fp-slaughter-clock strong {
        font-size: 30px;
    }

    .fp-slaughter-main {
        margin-top: 24px;
    }

    .fp-slaughter-welcome h2 {
        font-size: 40px;
    }

    .fp-slaughter-welcome p {
        font-size: 15px;
    }

    .fp-klaonica-card {
        padding: 24px;
        border-radius: 26px;
    }

    .fp-klaonica-timer {
        font-size: 52px;
    }

    .fp-klaonica-start,
    .fp-klaonica-stop {
        min-height: 86px;
        font-size: 24px;
    }

    .fp-klaonica-nus-btn {
        height: 60px;
        border-radius: 16px;
        background: #fef3c7;
        color: #92400e;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    .fp-klaonica-nus-btn i {
        font-size: 28px;
    }
}
.fp-klaonica-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;

    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;

    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.fp-klaonica-footer strong {
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 768px) {

    .fp-klaonica-footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        font-size: 12px;
    }

}
.fp-klaonica-powered {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.fp-klaonica-powered strong {
    color: #64748b;
    font-weight: 900;
}

.fp-action-btn-pdf {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #d9ead3;
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.fp-action-btn-pdf:hover {
    background: #d9ead3;
    color: #991b1b;
}
.fp-alert-strip {
    display: grid;
    gap: 10px;
}

.fp-alert-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 16px;
    border-radius: 16px;

    font-size: 14px;
    font-weight: 800;
}

.fp-alert-strip-item.warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.fp-alert-strip-item.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.fp-alert-strip-item.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.fp-alert-strip-item i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .fp-alert-strip-item {
        align-items: flex-start;
        font-size: 13px;
        line-height: 1.35;
    }
}
.fp-otpad-row,
.fp-otpad-otpis-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.fp-otpad-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.fp-otpad-row strong,
.fp-otpis-info strong {
    display: block;
    font-weight: 900;
}

.fp-otpad-row span,
.fp-otpis-info span,
.fp-otpis-info small {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.fp-otpad-otpisi-list {
    display: grid;
    gap: 12px;
}

.fp-otpad-otpis-card {
    display: grid;
    grid-template-columns: 70px 1fr 160px;
    gap: 14px;
    align-items: center;
}

.fp-otpis-switch-wrap {
    display: flex;
    justify-content: center;
}

.fp-switch {
    position: relative;
    width: 54px;
    height: 30px;
}

.fp-switch input {
    display: none;
}

.fp-switch span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #cbd5e1;
    transition: .2s;
}

.fp-switch span:before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
    box-shadow: 0 2px 8px rgba(15,23,42,.25);
}

.fp-switch input:checked + span {
    background: var(--fp-green);
}

.fp-switch input:checked + span:before {
    transform: translateX(24px);
}

.fp-otpis-kg-edit label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

@media (max-width: 768px) {
    .fp-otpad-otpis-card {
        grid-template-columns: 1fr;
    }

    .fp-otpis-switch-wrap {
        justify-content: flex-start;
    }
}
.fp-kupac-adresa-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
}

.fp-map-box {
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-top: 12px;
}

.fp-map-btn {
    width: 100%;
}
.fp-map-box,
.js-kupac-map {
    width: 100%;
    height: 360px !important;
    min-height: 360px;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #eef2f7;
}

.fp-route-locations-list {
    display: grid;
    gap: 12px;
}

.fp-route-location-card {
    display: grid;
    grid-template-columns: 70px 1fr 130px 220px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.fp-route-location-main strong {
    display: block;
    font-weight: 900;
}

.fp-route-location-main span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.fp-route-location-order label,
.fp-route-location-note label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

@media (max-width: 768px) {
    .fp-route-location-card {
        grid-template-columns: 1fr;
    }
}

.fp-route-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    font-weight: 800;
    border-radius: 12px;
}

.fp-route-action-btn i {
    font-size: 17px;
}

@media (max-width: 768px) {
    .fp-route-action-btn {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 15px;
    }

    .fp-route-action-btn i {
        font-size: 20px;
    }
}

.card.done {
    border-left: 6px solid #16a34a;
    background: #f0fdf4;
    opacity: .78;
}

.btn-done {
    background: #dcfce7;
    color: #166534;
    border: 0;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.btn-done.done {
    background: #16a34a;
    color: #fff;
    cursor: default;
}

.btn-finished{
    display:flex !important;
    width:100% !important;
    box-sizing:border-box;

    justify-content:center;
    align-items:center;
    gap:8px;

    padding:15px;

    background:#16a34a;
    color:#fff;

    border:none;
    border-radius:16px;

    font-size:18px;
    font-weight:900;

    cursor:default;
}
@media (max-width: 768px) {

    .fp-route-location-card {
        display: block;
        padding: 16px;
        margin-bottom: 18px;
        border-radius: 22px;
        border: 1px solid #dbeafe;
        background: #ffffff;
        box-shadow: 0 10px 28px rgba(15,23,42,.08);
    }

    .fp-route-location-check {
        margin-bottom: 12px;
    }

    .fp-route-location-main {
        padding-bottom: 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid #e5e7eb;
    }

    .fp-route-location-main strong {
        font-size: 18px;
        display: block;
        margin-bottom: 5px;
    }

    .fp-route-location-main span {
        font-size: 14px;
        line-height: 1.45;
        color: #64748b;
    }

    .fp-route-location-order,
    .fp-route-location-note {
        margin-top: 12px;
    }

    .fp-route-location-order label,
    .fp-route-location-note label {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
        font-weight: 900;
        color: #334155;
    }

    .fp-route-location-order input,
    .fp-route-location-note input {
        min-height: 48px;
        border-radius: 14px;
    }

    .fp-route-location-note {
        margin-bottom: 4px;
    }
}
@media (max-width: 768px) {
    .fp-route-location-check {
        display: flex;
        justify-content: flex-end;
    }
}

.fp-sortable-list {
    display: grid;
    gap: 14px;
}

.fp-sortable-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbf6 100%);
    border: 1px solid #dbe7dd;
    box-shadow: 0 10px 26px rgba(15,23,42,.07);
}

.fp-sort-handle {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #e8f3ec;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex: 0 0 52px;
    font-size: 20px;
}

.fp-sort-content {
    flex: 1;
    min-width: 0;
}

.fp-sort-content strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    color: #173524;
    margin-bottom: 8px;
    word-break: normal;
    overflow-wrap: break-word;
}

.fp-sort-content span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.35;
    margin-top: 4px;
}

.fp-sort-location {
    font-weight: 800;
    color: #3f8f57 !important;
}

.fp-sort-address i {
    color: #173524;
}

.fp-sort-ghost {
    opacity: .45;
}

@media (max-width: 768px) {
    .fp-sortable-item {
        align-items: flex-start;
        padding: 15px;
    }

    .fp-sort-handle {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .fp-sort-content strong {
        font-size: 18px;
    }

    .fp-sort-content span {
        font-size: 14px;
    }
}
.fp-sort-index{
    margin-left:auto;
    background:#173524;
    color:#fff;
    border-radius:999px;
    min-width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:14px;
}

.fp-sortable-item{
    transition:
        transform .2s,
        box-shadow .2s;
}

.fp-sortable-item:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 32px rgba(15,23,42,.12);
}

.fp-sort-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fp-sort-top strong {
    flex: 1;
}

.fp-sort-index {
    background: #173524;
    color: #fff;
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex: 0 0 auto;
}

.fp-sortable-item {
    transition: transform .2s ease, box-shadow .2s ease;
}

.fp-sortable-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15,23,42,.12);
}

.fp-sort-ghost {
    opacity: .4;
    transform: rotate(1deg);
}
.fp-action-btn.copy-route{
    background:#eef6ff;
    color:#2563eb;
    border-color:#bfdbfe;
}

.fp-action-btn.copy-route:hover{
    background:#2563eb;
    color:#fff;
}

.fp-btn-refresh {
    height: 52px;
    border-radius: 15px;
    border: 0;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(39, 103, 73, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .18s ease;
}

.fp-btn-refresh:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(39, 103, 73, 0.28);
     background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.fp-btn-refresh i {
    font-size: 14px;
    transition: transform .18s ease;
}

.fp-btn-refresh:hover i { transform: translateX(3px); }

.fp-route-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-route-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.fp-route-chip i {
    font-size: 12px;
}

.fp-route-chip-route {
    background: #ecfdf5;
    color: #15803d;
    border-color: #bbf7d0;
}

.fp-route-chip-copy {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.fp-route-chip-qr {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}
.fp-route-progress {
    display: block;
    width: 140px;
}

.fp-route-progress-btn {
    border: 0;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: .18s ease;
}

.fp-route-progress-btn:hover {
    background: #eef7f0;
    transform: translateY(-1px);
}

.fp-route-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.fp-route-progress-top strong {
    color: #173524;
    font-weight: 900;
    font-size: 14px;
}

.fp-route-progress-top span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.fp-route-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.fp-route-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #276749 0%, #3f8f57 100%);
    border-radius: 999px;
}
.fp-route-modal-progress {
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ecfdf5, #f8fafc);
    border: 1px solid #dbe7dd;
}

.fp-route-modal-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fp-route-modal-progress-head strong {
    font-size: 28px;
    font-weight: 900;
    color: #173524;
}

.fp-route-modal-progress-head span {
    display: block;
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}

.fp-route-modal-percent {
    font-size: 22px;
    font-weight: 900;
    color: #166534;
}

.fp-route-modal-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.fp-route-modal-fill {
    height: 100%;
    background: linear-gradient(135deg, #276749 0%, #3f8f57 100%);
    border-radius: 999px;
}

.fp-route-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.fp-route-preview-map {
    width: 100%;
    height: 520px;
    border-radius: 22px;
    border: 1px solid #dbe7dd;
    overflow: hidden;
    background: #eef2f7;
}

.fp-route-map-panel {
    position: sticky;
    top: 12px;
}

.fp-route-stavka-card {
    box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

@media (max-width: 992px) {
    .fp-route-modal-grid {
        grid-template-columns: 1fr;
    }

    .fp-route-map-panel {
        position: static;
    }

    .fp-route-preview-map {
        height: 320px;
    }
}
.fp-route-stavka-top strong{
    font-size:19px;
    line-height:1.25;
    font-weight:900;
    color:#173524;
    letter-spacing:.2px;
}
.fp-route-stavka-status{
    display:inline-flex;
    align-items:center;
    gap:5px;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;
    font-weight:800;
}

.fp-route-stavka-status.done{
    background:#dcfce7;
    color:#166534;
}

.fp-route-stavka-status.pending{
    background:#fff7d6;
    color:#a16207;
}.fp-route-stavka-meta{
    margin-top:10px;
    display:grid;
    gap:6px;
}

.fp-route-stavka-meta span{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

.fp-route-stavka-meta i{
    width:18px;
    margin-top:2px;
}

.fp-route-stavka-meta span:first-child{

    color:#2f855a;
    font-size:15px;
    font-weight:800;
}

.fp-route-stavka-meta span:last-child{

    color:#64748b;
    font-size:14px;
    line-height:1.45;
}.fp-route-stavka-time{

    margin-top:12px;

    display:inline-flex;
    align-items:center;

    padding:7px 12px;

    border-radius:999px;

    background:#ecfdf5;

    color:#166534;

    font-size:13px;
    font-weight:800;
}
.fp-route-driver-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.fp-route-driver-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #e8f3ec;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.fp-route-driver-box span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

.fp-route-driver-box strong {
    display: block;
    font-size: 17px;
    font-weight: 900;
    color: #173524;
}

.fp-route-driver-box a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #166534;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.fp-route-stavke-list {
    display: grid;
    gap: 10px;
}

.fp-route-stavka-card {
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
}

.fp-route-stavka-top strong {
    font-size: 16px;
}

.fp-route-stavka-meta span {
    font-size: 13px;
}

.fp-route-stavka-note {
    font-size: 13px;
    padding: 9px 11px;
}

@media (max-width: 992px) {
    .fp-route-modal-grid {
        grid-template-columns: 1fr;
    }

    .fp-route-map-panel {
        order: -1;
        position: static;
    }

    .fp-route-preview-map {
        height: 280px;
        margin-bottom: 14px;
    }
}
.fp-route-mini-kpis{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.fp-route-mini-kpi{
    padding:14px;
    border-radius:18px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    text-align:center;
}

.fp-route-mini-kpi span{
    display:block;
    font-size:12px;
    font-weight:800;
    color:#64748b;
}

.fp-route-mini-kpi strong{
    display:block;
    margin-top:4px;
    font-size:26px;
    font-weight:900;
    color:#173524;
}

.fp-route-mini-kpi.done strong{ color:#16a34a; }
.fp-route-mini-kpi.pending strong{ color:#f59e0b; }

.fp-route-stavka-card {
    background: #fff7ed; /* čeka - svijetlo narančasto */
    border: 1px solid #fed7aa;
    border-left: 5px solid #f59e0b;
}

.fp-route-stavka-card.is-done {
    background: #f0fdf4; /* dostavljeno - svijetlo zeleno */
    border: 1px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    opacity: .85;
}

.fp-route-stavka-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fp-route-stavka-top strong {
    flex: 1;
    min-width: 0;
}

.fp-route-stavka-status {
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .fp-route-stavka-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .fp-route-stavka-top strong {
        font-size: 15px;
        line-height: 1.3;
    }

    .fp-route-stavka-status {
        font-size: 11px;
        padding: 5px 9px;
    }
}
.fp-vaganje-locked-value {
    min-height: 52px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #f5f7fa;
    color: #172033;
}

.fp-vaganje-locked-value strong {
    font-size: 1.25rem;
}

.fp-vaganje-locked-value span {
    color: #667085;
    font-weight: 600;
}

.fp-vaganje-locked-value i {
    margin-left: auto;
    color: #98a2b3;
}

.fp-pill-toggle {
    min-height: 52px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #eef1f5;
    border-radius: 999px;
}

.fp-pill-option {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #667085;
    font-weight: 800;
    transition: 0.2s ease;
}

.fp-pill-option.active {
    background: #c8102e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.fp-gajba-stepper {
    min-height: 52px;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #fff;
}

.fp-stepper-btn {
    border: 0;
    background: #eef1f5;
    color: #172033;
    font-size: 1.35rem;
    transition: 0.15s ease;
}

.fp-stepper-btn:active {
    background: #c8102e;
    color: #fff;
}

.fp-stepper-value {
    width: 100%;
    border: 0;
    outline: 0;
    background: #fff;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #172033;
}

.fp-gajba-stepper.is-disabled {
    opacity: 0.45;
}

@media (max-width: 767.98px) {
    .fp-pill-toggle,
    .fp-gajba-stepper,
    .fp-vaganje-locked-value {
        min-height: 58px;
    }

    .fp-stepper-btn {
        font-size: 1.5rem;
    }
}

/* =========================================================
   KOMPAKTNA NAVIGACIJA
   Desktop i mobilni izbornik
   ========================================================= */

.rubicon-stil {
    margin-top: 2px;
    font-family: "Microgramma", "Eurostile", sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
}

/* Desktop */

.fp-sidebar {
    padding: 10px;
}

.fp-sidebar-brand {
    gap: 10px;
    padding: 3px 4px 7px;
}

.fp-sidebar-brand-copy {
    min-width: 0;
}

.fp-sidebar-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.fp-sidebar-logo img {
    width: 44px;
    height: 44px;
}

.fp-sidebar-title {
    font-size: 18px;
    line-height: 1;
    letter-spacing: -.4px;
}

.fp-sidebar-subtitle {
    max-width: 205px;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-sidebar-nav {
    gap: 1px;
    padding: 0 2px 6px 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(255,255,255,.20) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.fp-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.fp-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.fp-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255,255,255,.20);
}

.fp-nav-section {
    margin: 7px 8px 2px;
    font-size: 8px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.fp-sidebar-nav a,
.fp-nav-dropdown-toggle {
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.15;
}

.fp-sidebar-nav a {
    gap: 10px;
}

.fp-sidebar-nav a i,
.fp-nav-dropdown-toggle span > i {
    width: 17px;
    flex: 0 0 17px;
    font-size: 12px;
}

.fp-nav-dropdown-toggle span {
    gap: 10px;
}

.fp-nav-chevron {
    width: auto !important;
    flex: 0 0 auto !important;
    font-size: 9px !important;
}

.fp-nav-dropdown.has-active > .fp-nav-dropdown-toggle {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.fp-sidebar-nav a.active::before {
    top: 7px;
    bottom: 7px;
    width: 3px;
}

.fp-nav-dropdown-menu {
    margin-left: 15px;
    padding-left: 7px;
    gap: 1px;
}

.fp-nav-dropdown-menu a {
    min-height: 29px;
    padding: 4px 8px;
    font-size: 11.5px;
}

.fp-sidebar-footer {
    margin-top: 6px;
    padding: 7px 10px;
    border-radius: 12px;
}

.fp-sidebar-footer span {
    margin: 0;
    font-size: 9px;
    line-height: 1.1;
}

/* Mobilni offcanvas */

.fp-mobile-sidebar {
    width: min(88%, 330px);
}

.fp-mobile-sidebar-header {
    padding: 11px 13px 7px;
}

.fp-mobile-sidebar-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
}

.fp-mobile-sidebar-logo img {
    width: 25px;
    height: 25px;
}

.fp-mobile-sidebar-brand-copy {
    min-width: 0;
}

.fp-mobile-sidebar-header h5 {
    font-size: 16px;
    line-height: 1;
}

.fp-mobile-sidebar-header span {
    display: block;
    max-width: 205px;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-mobile-sidebar-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
}

.fp-mobile-nav {
    gap: 1px;
    padding: 0 9px 8px;
    scrollbar-color: rgba(255,255,255,.20) transparent;
    scrollbar-width: thin;
}

.fp-mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.fp-mobile-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255,255,255,.20);
}

.fp-mobile-sidebar-section {
    margin: 7px 10px 2px;
    font-size: 8px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.fp-mobile-nav a,
.fp-mobile-nav .fp-nav-dropdown-toggle {
    min-height: 35px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.15;
}

.fp-mobile-nav a {
    gap: 10px;
}

.fp-mobile-nav a i,
.fp-mobile-nav .fp-nav-dropdown-toggle span > i {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    font-size: 13px;
}

.fp-mobile-nav .fp-nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.76);
    font-family: inherit;
    font-weight: 700;
    text-align: left;
}

.fp-mobile-nav .fp-nav-dropdown-toggle span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-mobile-nav .fp-nav-dropdown-toggle:hover,
.fp-mobile-nav .fp-nav-dropdown.has-active > .fp-nav-dropdown-toggle {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.fp-mobile-nav .fp-nav-dropdown-menu {
    margin-left: 15px;
    padding-left: 7px;
    gap: 1px;
}

.fp-mobile-nav .fp-nav-dropdown-menu a {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 12px;
}

.fp-mobile-sidebar-footer {
    margin: 5px 12px 10px;
    padding: 7px 10px;
    border-radius: 11px;
}

.fp-mobile-sidebar-footer span {
    font-size: 10px;
    line-height: 1.1;
}

.fp-mobile-sidebar-footer small {
    display: block;
    margin-top: 2px;
    font-size: 8.5px;
    line-height: 1.1;
}

@media (max-height: 720px) {
    .fp-sidebar-brand {
        padding-bottom: 4px;
    }

    .fp-nav-section,
    .fp-mobile-sidebar-section {
        margin-top: 5px;
    }

    .fp-sidebar-footer,
    .fp-mobile-sidebar-footer {
        display: none;
    }
}
.fp-btn-transfer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid #2563eb;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
    transition: all 0.2s ease;
}

.fp-btn-transfer:hover,
.fp-btn-transfer:focus {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.fp-btn-transfer:active {
    color: #fff;
    transform: translateY(0);
}

/* =========================================================
   BACKUP
========================================================= */

.fp-backup-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 15%, rgba(72, 207, 157, .28), transparent 28%),
        linear-gradient(135deg, #0d4c35 0%, #126844 56%, #17875a 100%);
    border-radius: 24px;
    box-shadow: 0 20px 42px rgba(13, 76, 53, .18);
}

.fp-backup-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -95px;
    width: 250px;
    height: 250px;
    border: 38px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.fp-backup-hero-copy,
.fp-backup-run-btn {
    position: relative;
    z-index: 1;
}

.fp-backup-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #aef1d3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.fp-backup-hero h2 {
    margin: 0 0 6px;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 850;
}

.fp-backup-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
}

.fp-backup-run-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 19px;
    color: #0d5037;
    background: linear-gradient(135deg, #ffffff, #e7fff5);
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 13px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(4, 39, 26, .22);
}

.fp-backup-run-btn:hover,
.fp-backup-run-btn:focus {
    color: #073c29;
    background: #fff;
    transform: translateY(-1px);
}

.fp-backup-run-btn:disabled {
    opacity: .72;
    transform: none;
}

.fp-backup-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.fp-backup-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 126px;
    padding: 19px;
    background: #fff;
    border: 1px solid #dfe8e1;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(34, 68, 49, .06);
}

.fp-backup-kpi-icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 20px;
}

.fp-backup-kpi-green .fp-backup-kpi-icon {
    color: #128353;
    background: #e7f7ef;
}

.fp-backup-kpi-blue .fp-backup-kpi-icon {
    color: #2563c7;
    background: #eaf2ff;
}

.fp-backup-kpi-violet .fp-backup-kpi-icon {
    color: #7545c4;
    background: #f2ebff;
}

.fp-backup-kpi-amber .fp-backup-kpi-icon {
    color: #b47713;
    background: #fff3d6;
}

.fp-backup-kpi div {
    min-width: 0;
}

.fp-backup-kpi small,
.fp-backup-kpi strong,
.fp-backup-kpi span {
    display: block;
}

.fp-backup-kpi small {
    margin-bottom: 4px;
    color: #718078;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
}

.fp-backup-kpi strong {
    overflow: hidden;
    margin-bottom: 3px;
    color: #16271e;
    font-size: 20px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-backup-kpi span {
    color: #7c8982;
    font-size: 11px;
}

.fp-backup-panel {
    overflow: hidden;
    margin-bottom: 20px;
}

.fp-backup-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: #15714d;
    background: #eaf7f0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.fp-backup-table thead th {
    padding: 13px 16px;
    color: #78867e;
    background: #f7faf8;
    border-bottom-color: #e1e9e3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fp-backup-table tbody td {
    padding: 14px 16px;
    color: #2b3a32;
    border-bottom-color: #edf1ee;
    font-size: 12px;
}

.fp-backup-table tbody td > small,
.fp-backup-table tbody td > strong {
    display: block;
}

.fp-backup-table tbody td > small {
    margin-top: 2px;
    color: #87928c;
}

.fp-backup-source,
.fp-backup-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.fp-backup-source.is-cron {
    color: #285ead;
    background: #eaf2ff;
}

.fp-backup-source.is-manual {
    color: #7648af;
    background: #f3ebff;
}

.fp-backup-result.is-success {
    color: #11774d;
    background: #e6f6ee;
}

.fp-backup-result.is-error {
    color: #c32d3a;
    background: #ffebed;
}

.fp-backup-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 180px;
    color: #849089;
    text-align: center;
}

.fp-backup-empty i {
    margin-bottom: 7px;
    color: #b7c4bc;
    font-size: 30px;
}

.fp-backup-empty strong {
    color: #3d4c44;
}

.fp-backup-empty span {
    font-size: 11px;
}

.fp-backup-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.fp-backup-info-card,
.fp-backup-cron-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #dfe7e1;
    border-radius: 18px;
}

.fp-backup-info-icon,
.fp-backup-cron-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #138052;
    background: #e8f7f0;
    border-radius: 13px;
}

.fp-backup-info-icon.is-blue {
    color: #2565bd;
    background: #eaf2ff;
}

.fp-backup-info-card h6,
.fp-backup-cron-card h6 {
    margin: 1px 0 5px;
    color: #1f3027;
    font-weight: 800;
}

.fp-backup-info-card p,
.fp-backup-cron-card p {
    margin: 0;
    color: #738078;
    font-size: 12px;
    line-height: 1.55;
}

.fp-backup-info-card code,
.fp-backup-cron-card code {
    overflow-wrap: anywhere;
    color: #2d5c46;
    font-size: 11px;
}

.fp-backup-cron-card {
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.fp-backup-cron-card > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fp-backup-cron-card > code {
    max-width: 58%;
    padding: 11px 13px;
    color: #23513c;
    background: #f3f7f4;
    border: 1px dashed #cbd9d0;
    border-radius: 10px;
}

.fp-backup-offsite-note {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    color: #75530d;
    background: linear-gradient(135deg, #fff8e5, #fffdf8);
    border: 1px solid #f3d78d;
    border-radius: 16px;
}

.fp-backup-offsite-note > i {
    font-size: 22px;
}

.fp-backup-offsite-note strong,
.fp-backup-offsite-note span {
    display: block;
}

.fp-backup-offsite-note strong {
    margin-bottom: 2px;
    font-size: 12px;
}

.fp-backup-offsite-note span {
    font-size: 11px;
}

@media (max-width: 1200px) {
    .fp-backup-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .fp-backup-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 20px;
        border-radius: 20px;
    }

    .fp-backup-run-btn {
        width: 100%;
    }

    .fp-backup-kpis,
    .fp-backup-info-grid {
        grid-template-columns: 1fr;
    }

    .fp-backup-kpi {
        min-height: 108px;
    }

    .fp-backup-cron-card {
        align-items: stretch;
        flex-direction: column;
    }

    .fp-backup-cron-card > code {
        max-width: none;
    }

    .fp-backup-status-pill {
        margin-top: 10px;
    }
}

/* Salda - DataTables export gumbi kao na Dostavama */
.fp-salda-export-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.fp-salda-export-wrap .dt-buttons {
    display: flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 6px;
}

.fp-salda-export-wrap .dt-button,
.fp-salda-export-wrap .btn {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    padding: .25rem .5rem !important;
    font-size: .875rem !important;
    line-height: 1.5;
}


/* =========================================================
   RUBICON BRANDING + ULAZNI RAČUNI BADGE
   ========================================================= */

/* Badge novih ulaznih računa u desktop i mobile sidebaru */
.fp-sidebar-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    margin-left: auto;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #0f5c37;
    background:
        linear-gradient(135deg, #eafff1 0%, #bff3d3 100%);
    box-shadow:
        0 4px 10px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.75);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.fp-sidebar-nav a.active .fp-sidebar-count-badge,
.fp-mobile-nav a.active .fp-sidebar-count-badge {
    color: #0f5c37;
    background:
        linear-gradient(135deg, #f0fff5 0%, #c8f7d9 100%);
}

/* Desktop Rubicon footer */
.fp-rubicon-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fp-rubicon-sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.fp-rubicon-sidebar-logo {
    display: block;
    width: 102px;
    max-width: 100%;
    height: 27px;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(0 2px 5px rgba(0,0,0,.18));
}

/* Mobile Rubicon footer */
.fp-rubicon-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fp-rubicon-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.fp-rubicon-mobile-logo {
    display: block;
    width: 88px;
    height: 24px;
    object-fit: contain;
    object-position: left center;
}

.fp-rubicon-mobile-brand small {
    margin: 0 !important;
    text-align: right;
}

/* Login footer – Rubicon na tamnom premium badgeu jer horizontalni
   lockup koristi bijeli wordmark. */
.fp-login-footer-branded {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e6ebe7;
    text-align: left;
}

.fp-login-footer-copy {
    color: #88938d;
    font-size: 11px;
    white-space: nowrap;
}

.fp-login-rubicon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 35px;
    padding: 6px 9px 6px 11px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background:
        linear-gradient(135deg, #123d2b 0%, #1a5c3e 100%);
    box-shadow:
        0 7px 17px rgba(26,77,52,.13),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.fp-login-rubicon-badge > span {
    color: rgba(255,255,255,.62);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.fp-login-rubicon-logo {
    display: block;
    width: 82px;
    height: 25px;
    object-fit: contain;
}

/* Visine manjeg sidebar footera ostaju kompaktne. */
@media (max-height: 760px) {
    .fp-rubicon-sidebar-logo {
        width: 88px;
        height: 23px;
    }
}

@media (max-width: 575.98px) {
    .fp-login-footer-branded {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .fp-login-rubicon-badge {
        width: fit-content;
    }
}

/* =========================================================
   FARMAPRO DEMO ENVIRONMENT
   ========================================================= */
.fp-demo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    min-height: 36px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(90deg, #0f6f45 0%, #168454 55%, #248e58 100%);
    color: #fff;
    box-shadow: 0 5px 18px rgba(15, 74, 48, .16);
    font-size: 11px;
    line-height: 1.2;
}
.fp-demo-bar-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
}
.fp-demo-bar-copy strong {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
}
.fp-demo-bar-copy span {
    color: rgba(255,255,255,.86);
    font-weight: 600;
}
.fp-demo-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.fp-demo-bar-cta:hover { background: rgba(255,255,255,.18); }
.fp-demo-mode .fp-sidebar {
    top: 36px;
    height: calc(100vh - 36px);
}
.fp-demo-mode .fp-main { padding-top: 36px; }
.fp-demo-sidebar-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(191, 231, 110, .16);
    color: #dff6b0;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
    vertical-align: middle;
}
@media (max-width: 991.98px) {
    .fp-demo-bar {
        justify-content: space-between;
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .fp-demo-bar-copy span { display: none; }
    .fp-demo-mode .fp-main { padding-top: 36px; }
}
