body .kn-app,
body .kn-app * {
    box-sizing: border-box;
}

body .kn-app {
    background: #ffffff !important;
    color: #111111 !important;
    padding: 25px;
    border-radius: 4px; /* Prilagođeno wg stilu */
    font-family: Arial, sans-serif;
    border: 1px solid #ddd; /* Prilagođeno wg stilu */
}

body .kn-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9 !important; /* Prilagođeno wg stilu */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 22px;
}

body .kn-topbar h2 {
    margin: 0;
    color: #111111 !important;
    font-size: 28px;
}

body .kn-topbar p {
    margin: 7px 0 0;
    color: #666666 !important;
}

body .kn-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 22px;
}

body .kn-dash-card {
    background: #ffffff !important;
    border: 1px solid #ddd;
    border-left: 4px solid #a3d133; /* Nova wg zelena */
    border-radius: 4px;
    padding: 18px;
    box-shadow: none; /* Uklonjene sjenke radi ravnijeg wg izgleda */
}

body .kn-dash-card span {
    display: block;
    color: #666666 !important;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

body .kn-dash-card strong {
    display: block;
    color: #111111 !important;
    font-size: 26px;
    line-height: 1.2;
}

body .kn-dash-money {
    border-left-color: #111111;
}

body .kn-dash-money strong {
    color: #a3d133 !important;
}

body .kn-card {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: none;
}

body .kn-card h3,
body .kn-card h4,
body .kn-inline-box h4 {
    color: #111111 !important;
    margin-top: 0;
}

body .kn-card h3::after,
body .kn-card h4::after,
body .kn-inline-box h4::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    background: #a3d133;
    border-radius: 2px;
    margin-top: 8px;
}

body .kn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

body .kn-field {
    margin-bottom: 18px;
}

body .kn-field label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #222222 !important;
    font-weight: bold;
    line-height: 1.2;
}

body .kn-field input,
body .kn-field select,
body .kn-field textarea,
body .kn-product-row input {
    width: 100%;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    color: #111111 !important;
    outline: none;
    height: 42px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

body .kn-field input:focus,
body .kn-field select:focus,
body .kn-field textarea:focus,
body .kn-product-row input:focus {
    border-color: #a3d133 !important;
    box-shadow: none;
}

body .kn-field textarea {
    height: auto !important;
    min-height: 80px;
    resize: vertical;
}

body .kn-product-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 45px;
    gap: 10px;
    margin-bottom: 10px;
}

body .kn-btn {
    display: inline-block;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    padding: 12px 25px !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: 0.2s ease;
    line-height: 1.2;
    text-align: center;
    height: auto !important;
}

body .kn-btn-green {
    background: #a3d133 !important;
    color: white !important; /* wg dugme ima bijeli tekst */
}

body .kn-btn-green:hover {
    background: #8eaf20 !important;
}

body .kn-btn-dark {
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
}

body .kn-btn-dark:hover {
    background: #a3d133 !important;
    border-color: #a3d133 !important;
    color: white !important;
}

body .kn-btn-light {
    background: #f9f9f9 !important;
    color: #111111 !important;
    border: 1px solid #ddd !important;
}

body .kn-btn-light:hover {
    background: #eeeeee !important;
}

body .kn-btn-danger {
    background: #d93025 !important;
    color: #ffffff !important;
    border: 1px solid #d93025 !important;
}

body .kn-btn-danger:hover {
    background: #b42318 !important;
    border-color: #b42318 !important;
    color: #ffffff !important;
}

body .kn-btn-small {
    padding: 8px 15px !important;
    font-size: 13px !important;
    width: auto !important;
    margin-top: 5px !important;
}

body .kn-remove {
    background: #f9f9f9 !important;
    color: #111111 !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    cursor: pointer;
    font-size: 22px;
    height: 42px !important; /* Poklapanje sa visinom polja */
    display: flex;
    align-items: center;
    justify-content: center;
}

body .kn-remove:hover {
    background: #a3d133 !important;
    border-color: #a3d133 !important;
    color: white !important;
}

body .kn-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

body .kn-delete-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
}

body .kn-alert {
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-weight: bold;
}

body .kn-success {
    background: #f4faeb !important;
    border: 1px solid #a3d133 !important;
    color: #4f7d16 !important;
}

body .kn-warning {
    background: #fffdf5 !important;
    border: 1px solid #ffc107 !important;
    color: #7a5a00 !important;
}

body .kn-error {
    background: #fff5f5 !important;
    border: 1px solid #ff3c3c !important;
    color: #b00000 !important;
}

body .kn-table-wrap {
    overflow-x: auto;
}

body .kn-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 20px;
    background: #ffffff !important;
}

body .kn-table th {
    background: #f9f9f9 !important; /* Wg stil zaglavlja */
    color: #111111 !important;
    text-align: left;
    padding: 12px;
    border: 1px solid #eee;
    border-bottom: 2px solid #a3d133;
}

body .kn-table td {
    padding: 12px;
    border: 1px solid #eee;
    color: #222222 !important;
    background: #ffffff !important;
    vertical-align: top;
}

body .kn-table tr:hover td {
    background: #f9f9f9 !important;
}

body .kn-status {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 3px; /* Oštriji statusi */
    background: #f4faeb !important;
    border: 1px solid #a3d133;
    color: #5d8f14 !important;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

body .kn-status-u_dolasku {
    border-color: #ffc107 !important;
    color: #7a5a00 !important;
    background: #fffdf5 !important;
}

body .kn-status-zavrseno {
    border-color: #ddd !important;
    color: #666666 !important;
    background: #f9f9f9 !important;
}

body .kn-soon-row td {
    background: #fffdf5 !important;
}

body .kn-late-row td {
    background: #fff5f5 !important;
}

body .kn-done-row {
    opacity: 0.72;
}

body .kn-warning-text {
    color: #9b7400 !important;
    font-weight: bold;
}

body .kn-error-text {
    color: #b00000 !important;
    font-weight: bold;
}

body .kn-muted {
    color: #777777 !important;
}

body .kn-create-card {
    border-left: 4px solid #a3d133;
}

body .kn-inline-row td {
    background: #f9f9f9 !important;
    padding: 18px !important;
}

body .kn-inline-box {
    background: #ffffff !important;
    border: 1px solid #ddd;
    border-left: 4px solid #a3d133;
    border-radius: 4px;
    padding: 22px;
    box-shadow: none;
}

body .kn-inline-form {
    margin: 0;
}

body .kn-products-inline {
    margin-bottom: 12px;
}

@media print {
    body .kn-topbar,
    body .kn-actions,
    body .kn-btn {
        display: none !important;
    }
}

@media (max-width: 1000px) {
    body .kn-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    body .kn-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    body .kn-grid {
        grid-template-columns: 1fr;
    }

    body .kn-product-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body .kn-app {
        padding: 15px;
    }

    body .kn-dashboard {
        grid-template-columns: 1fr;
    }

    body .kn-card,
    body .kn-inline-box {
        padding: 16px;
    }

    body .kn-btn {
        width: 100%;
        text-align: center;
    }

    body .kn-actions {
        flex-direction: column;
    }
}