/*
Theme Name: Mars Agri Panel Theme
Theme URI: https://marsagri.ba
Description: Panel theme with login front page, reseller dashboard, search, filters, city manager, CSV backup/import, edit, delete, Google mapa i PDF izvještaj.
Author: CNT Digital / ChatGPT
Author URI: https://cntdigital.ba
Version: 1.8
Text Domain: mars-agri-panel-theme
*/

body {

    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020617;
    color: #e5e7eb;
}


/* Hidden data holder should not affect grid layout */
#mars-price-data{display:none !important;}
a { color: #22c55e; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer {
    padding: 16px 32px;
    background: #020617;
    color: #e5e7eb;
}

.site-branding {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 14px;
    text-transform: uppercase;
}

.site-main {
    min-height: calc(100vh - 120px);
}

/* Login page */
.mars-login-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* Jača narandžasta -> tamno zelena (pretapanje) */
    background: linear-gradient(135deg, #c2410c 0%, #0a0f1a 45%, #145c30 100%);
}


.mars-login-box {
    width: 100%;
    max-width: 420px;
    background: #020617;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
    border: 1px solid rgba(148,163,184,0.4);
}

.mars-login-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
}

.mars-login-sub {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.mars-login-box .login form {
    margin: 0;
}

.mars-login-box .login label {
    color: #e5e7eb;
    font-weight: 600;
}

.mars-login-box .login input[type="text"],
.mars-login-box .login input[type="password"] {
    width: 100%;
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1f2937;
    color: #f9fafb;
    padding: 8px 10px;
}

.mars-login-box .login .button-primary {
    width: 100%;
    background: #16a34a;
    border-color: #16a34a;
    border-radius: 999px;
    padding: 8px 0;
    font-weight: 600;
    margin-top: 4px;
}

.mars-login-footer{display:none !important;}

/* Panel page layout */
.mars-panel-page {
    padding: 24px 32px 40px;
}

.mars-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.mars-panel-title {
    font-size: 20px;
    font-weight: 700;
}

.mars-panel-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mars-panel-user {
    font-size: 14px;
    color: #9ca3af;
}

.mars-logout-btn {
    border-radius: 999px;
    border: 1px solid #374151;
    padding: 6px 14px;
    font-size: 12px;
    background: #111827;
    color: #e5e7eb;
    text-decoration: none;
}

.mars-logout-btn:hover {
    filter: brightness(1.08);
}

.mars-panel-content {
    background: #020617;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(148,163,184,0.5);
}

/* Frontend panel UI */
.mars-panel-layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1.5fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .mars-panel-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mars-panel-card {
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.4);
    padding: 16px 18px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}

.mars-panel-card h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.mars-panel-field {
    margin-bottom: 10px;
}

.mars-panel-inline-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mars-panel-inline-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mars-panel-totals-grid > div > input {
    text-align: center;
    font-weight: 700;
}

.mars-panel-due-wrap input {
    border: 1px solid rgba(249, 115, 22, 0.65);
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.18);
    font-weight: 800;
    text-align: center;
    font-size: 16px;
}

@media (max-width: 900px) {
    .mars-panel-inline-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


 (max-width: 980px){
    .mars-panel-inline-3{
        grid-template-columns: 1fr;
    }
}

.mars-panel-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #9ca3af;
}

.mars-panel-field input,
.mars-panel-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    padding: 7px 9px;
    font-size: 13px;
}

.mars-panel-field textarea {
    min-height: 70px;
}

.mars-panel-submit {
    margin-top: 10px;
}

.mars-panel-submit button {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 9px 0;
    font-weight: 600;
    background: #16a34a;
    color: white;
    cursor: pointer;
}

.mars-panel-submit button:hover {
    filter: brightness(1.05);
}

.mars-panel-msg {
    margin-bottom: 10px;
    font-size: 13px;
}

.mars-panel-msg.ok {
    color: #4ade80;
}

.mars-panel-msg.err {
    color: #f97373;
}

.mars-panel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}
/* Filters for orders list (keep one clean row on desktop) */
.mars-orders-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mars-orders-filters > * {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .mars-orders-filters {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}


.mars-panel-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.mars-panel-topbar .mars-panel-filters {
    margin-bottom: 0;
}

.mars-panel-topbar input[type="file"] {
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    padding: 6px 10px;
    font-size: 12px;
}

.mars-edit-locations-btn {
    border-radius: 999px;
    background: #1d4ed8;
    border: none;
    color: #f9fafb;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.mars-edit-locations-btn:hover {
    filter: brightness(1.08);
}

.mars-locations-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.80);
    display: none;
    z-index: 9998;
}

.mars-locations-editor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 16px;
    max-height: 80vh;
    max-width: 900px;
    width: 90%;
    overflow: auto;
    z-index: 9999;
}

.mars-locations-editor h3 {
    margin-top: 0;
    font-size: 14px;
}

.mars-location-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mars-location-col {
    min-width: 180px;
}

.mars-location-col h4 {
    margin: 0 0 4px;
    font-size: 13px;
    color: #facc15;
}

.mars-location-col ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
}

.mars-location-empty {
    font-size: 12px;
    color: #9ca3af;
}


.mars-panel-filters input[type="text"],
.mars-panel-filters input[type="date"],
.mars-panel-filters select {
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    padding: 5px 10px;
    font-size: 12px;
}

.mars-panel-filters button {
    border-radius: 999px;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    background: #16a34a;
    color: #fff;
    cursor: pointer;
}

.mars-panel-filters button:hover {
    filter: brightness(1.06);
}

.mars-panel-table-wrap {
    overflow-x: auto;
}

.mars-panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mars-panel-table thead {
    background: #020617;
}

.mars-panel-table th,
.mars-panel-table td {
    border-bottom: 1px solid #1f2937;
    padding: 6px 8px;
    text-align: left;
    white-space: nowrap;
}

.mars-panel-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.mars-panel-badge.nije { background: #b91c1c; color: #fee2e2; }
.mars-panel-badge.dostavljeno { background: #16a34a; color: #dcfce7; }

.mars-status-btn {
    border-radius: 999px;
    border: none;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 4px;
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
}

.mars-status-btn:hover {
    filter: brightness(1.1);
}

.mars-export-btn, .mars-import-btn {
    border-radius: 999px;
    border: none;
    padding: 7px 16px;
    font-size: 12px;
    background: #0ea5e9;
    color: #f9fafb;
    cursor: pointer;
}

.mars-export-btn:hover, .mars-import-btn:hover {
    filter: brightness(1.06);
}

/* Edit / delete buttons */
.mars-edit-btn {
    border-radius: 999px;
    border: none;
    padding: 4px 11px;
    font-size: 11px;
    cursor: pointer;
    background: #2563eb;
    color: #e5e7eb;
    margin-right: 4px;
}

.mars-edit-btn:hover {
    filter: brightness(1.08);
}

.mars-delete-btn {
    border-radius: 999px;
    border: none;
    padding: 4px 11px;
    font-size: 11px;
    cursor: pointer;
    background: #b91c1c;
    color: #fee2e2;
}

.mars-delete-btn:hover {
    filter: brightness(1.05);
}

/* Bulk action buttons */
.mars-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mars-bulk-delete-btn {
    border-radius: 999px;
    border: none;
    padding: 7px 16px;
    font-size: 12px;
    background: #b91c1c;
    color: #fee2e2;
    cursor: pointer;
}

.mars-bulk-delete-btn:hover {
    filter: brightness(1.05);
}

.mars-bulk-export-btn {
    border-radius: 999px;
    border: none;
    padding: 7px 16px;
    font-size: 12px;
    background: #22c55e;
    color: #f9fafb;
    cursor: pointer;
}

.mars-bulk-export-btn:hover {
    filter: brightness(1.06);
}

.mars-bulk-pdf-btn {
    border-radius: 999px;
    border: none;
    padding: 7px 16px;
    font-size: 12px;
    background: #f97316;
    color: #111827;
    cursor: pointer;
}

.mars-bulk-pdf-btn:hover {
    filter: brightness(1.06);
}

/* Big modal for edit */
.mars-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.mars-modal-overlay.open {
    display: flex;
}

.mars-modal {
    width: 100%;
    max-width: 520px;
    background: #020617;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.5);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    padding: 20px 22px;
}

.mars-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mars-modal-title {
    font-size: 16px;
    font-weight: 600;
}

.mars-modal-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
}

.mars-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.mars-modal-grid .full-span {
    grid-column: 1 / -1;
}

.mars-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.mars-modal-actions button {
    border-radius: 999px;
    border: none;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
}

.mars-modal-save {
    background: #16a34a;
    color: #f9fafb;
}

.mars-modal-save:hover {
    filter: brightness(1.06);
}

.mars-modal-cancel {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
}

.mars-modal-cancel:hover {
    filter: brightness(1.06);
}

/* Google mapa */
#mars-map {
    margin-top: 16px;
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}


/* Poruka za pogre&scaron;nu lozinku na login stranici */
.mars-login-error {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 80, 80, 0.12);
    color: #ff8080;
    font-size: 14px;
    text-align: center;
}

/* Dodatni razmak oko karte ispod tabele */
.mars-panel-map-wrapper {
    margin-top: 32px;
}



/* Pagination controls */
.mars-pagination-bar {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.mars-pagination-length select {
    background: #020617;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
}

.mars-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mars-page-btn {
    background: #020617;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.mars-page-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #020617;
}

.mars-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}


.mars-map-section {
    margin-top: 32px;
}

.mars-map-filters {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mars-map-filter-btn {
    background: #020617;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.mars-map-filter-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #020617;
}


/* Google mapa info prozor */
.mars-map-infowindow {
    font-size: 14px;
    line-height: 1.4;
    color: #020617;
    padding: 2px 0;
}

.mars-map-infowindow-city {
    font-weight: 600;
    margin-bottom: 2px;
}

.mars-map-infowindow-count {
    font-size: 13px;
}


/* Selo picker u formi */
.mars-selo-picker {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mars-selo-picker-label {
    font-size: 12px;
    opacity: 0.8;
}

.mars-selo-picker select {
    background: #020617;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
}

.mars-selo-picker button {
    background: #16a34a;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

/* Filter forme – da ne bude sve u jednom redu i da bude ok na mobilnom */
.mars-panel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mars-panel-filters > * {
    flex: 0 0 auto;
}

/* Mobilni layout */
@media (max-width: 768px) {
    .mars-panel-layout {
        flex-direction: column;
    }

    .mars-panel-card {
        width: 100%;
        margin-bottom: 16px;
    }

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

    .mars-panel-filters > * {
        width: 100%;
    }

    .mars-panel-table-container,
    .mars-panel-table-wrap,
    .mars-panel-table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    .mars-panel-table th,
    .mars-panel-table td {
        white-space: nowrap;
    }
}

.mars-locations-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.mars-loc-close-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.mars-loc-close-btn:hover {
    color: #f9fafb;
}

.mars-location-label {
    flex: 1;
    word-break: break-word;
}

.mars-loc-action-btn {
    border: none;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    cursor: pointer;
    background: #111827;
    color: #e5e7eb;
    margin-left: 4px;
    white-space: nowrap;
}

.mars-loc-action-btn:hover {
    background: #1f2937;
}

.mars-locations-edit-form {
    margin-top: 10px;
}

.mars-location-columns li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

/* Mobile responsivnost za editor gradova i sela */
@media (max-width: 768px) {
    .mars-location-columns {
        flex-direction: column;
    }
    .mars-location-col {
        min-width: 100%;
    }
}


/* Poželjni dugme pored "Prebaci u polje" */
.mars-fav-btn {
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mars-fav-off {
    background: #111827;
    color: #e5e7eb;
}

.mars-fav-on {
    background: #b91c1c;
    color: #fef2f2;
}

.mars-fav-btn:hover {
    filter: brightness(1.1);
}


/* Tekst ispod filtera mape koji prikazuje trenutno fokusirani grad/selo/datum */
.mars-map-selection {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #9ca3af;
}

/* Dugme u tabeli za fokusiranje na mapu */
.mars-map-focus-btn {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #111827;
    color: #e5e7eb;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mars-map-focus-btn:hover {
    background: #16a34a;
    color: #f9fafb;
}


/* Map selection summary + All button */
.mars-map-selection {
    margin-top: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
}

.mars-map-all-btn {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #111827;
    color: #e5e7eb;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid #1f2937;
}

.mars-map-all-btn:hover {
    background: #16a34a;
    color: #f9fafb;
}


/* Dugme "Dodaj na mapu" u tabeli */
.mars-map-focus-btn {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    background: #111827;
    color: #e5e7eb;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.mars-map-add-off {
    background: #b91c1c;
    color: #fef2f2;
}

.mars-map-add-on {
    background: #16a34a;
    color: #f0fdf4;
}

.mars-map-focus-btn:hover {
    filter: brightness(1.08);
}

.mars-map-focus-btn:active {
    transform: scale(0.97);
}

/* Cjenovnik */
.mars-refresh-btn {
    background: #0ea5e9;
    color: #f9fafb;
}

.mars-price-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #7c3aed;
    color: #f5f3ff;
    white-space: nowrap;
}

.mars-price-btn:hover { filter: brightness(1.08); }


.mars-prices-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
}

.mars-prices-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(760px, calc(100vw - 24px));
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #0b1220;
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 14px;
    z-index: 99999;
    color: #e5e7eb;
}

.mars-prices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mars-prices-close {
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 26px;
    cursor: pointer;
}

.mars-prices-help {
    margin: 8px 0 12px;
    color: #9ca3af;
    font-size: 13px;
}

.mars-prices-table-wrap {
    border: 1px solid #1f2937;
    border-radius: 14px;
    overflow: hidden;
}

.mars-prices-table {
    width: 100%;
    border-collapse: collapse;
}

.mars-prices-table th,
.mars-prices-table td {
    padding: 10px;
    border-bottom: 1px solid #1f2937;
    font-size: 13px;
}

.mars-prices-table th {
    background: #111827;
    color: #e5e7eb;
    text-align: left;
}

.mars-prices-table td input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #0f172a;
    color: #e5e7eb;
}

.mars-prices-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.mars-prices-save {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    background: #16a34a;
    color: #f0fdf4;
}

.mars-prices-save:hover { filter: brightness(1.08); }

/* ==========================================================
   FINANSIJSKI BLOK (Nova narudžba / Edit) – 2x2 + Za uplatu
   ========================================================== */
.mars-fin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .mars-fin-grid {
        grid-template-columns: 1fr;
    }
}

.mars-fin-total {
    margin-top: 10px;
}

.mars-fin-total input {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    border: 2px solid rgba(249, 115, 22, 0.9);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.22);
}

/* ===== UX: Alati na posebnoj stranici ===== */
/* Na glavnom panelu sakrij "Dodaj grad/selo", uvoz, uredjivanje lokacija (radi preglednosti) */
body.page-template-page-panel .mars-panel-topbar {
    display: none;
}

/* Na strani Alati prikazi samo kontrole (grad/selo, uvoz, uredjivanje, cjenovnik) */
body.page-template-page-alati .mars-panel-layout {
    grid-template-columns: 1fr;
}

body.page-template-page-alati .mars-panel-layout > .mars-panel-card:first-child {
    display: none; /* sakrij "Nova narudžba" */
}

/* U kartici "Posljednje narudžbe" sakrij sve osim topbara i cjenovnika */
body.page-template-page-alati .mars-orders-filters input,
body.page-template-page-alati .mars-orders-filters select,
body.page-template-page-alati .mars-orders-filters #mars-refresh-btn,
body.page-template-page-alati .mars-orders-filters button:not(#mars-price-btn) {
    display: none !important;
}

body.page-template-page-alati .mars-panel-table-wrap,
body.page-template-page-alati .mars-panel-bulk-actions,
body.page-template-page-alati .mars-panel-map-wrap,
body.page-template-page-alati .mars-map-section,
body.page-template-page-alati .mars-map-wrap,
body.page-template-page-alati .mars-map-container,
body.page-template-page-alati .mars-map-box {
    display: none !important;
}

body.page-template-page-alati .mars-panel-card h2 {
    margin-bottom: 12px;
}

/* Back/Alati link button styling (reuse) */
.mars-tools-back {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}
.mars-tools-back:hover {
    background: rgba(255,255,255,0.12);
}


.mars-calc-mode-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:6px;}
.mars-calc-mode-row label{display:flex;gap:6px;align-items:center;font-size:13px;opacity:.95;}
.mars-calc-hint{display:block;margin-top:6px;font-size:12px;opacity:.7;line-height:1.3;}
