/* =========================================================
   FarmaPro.app - Clean UI stylesheet
   ========================================================= */

: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:72px;
    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: 52px;
    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;
}