:root {
  --app-bg: #cbd8d3;
  --app-surface: #ffffff;
  --app-border: #d8e1e8;
  --app-text: #1f2933;
  --app-muted: #687787;
  --app-primary: #0f766e;
  --app-primary-dark: #115e59;
  --app-primary-soft: #e2f4ea;
  --app-accent: #334155;
  --app-danger: #b42318;
  --app-warning: #b7791f;
  --app-radius: 8px;
  --app-shadow: 0 14px 34px rgba(31, 41, 51, 0.08);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0) 260px),
    var(--app-bg);
  color: var(--app-text);
  font-size: 16px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
}

a {
  color: var(--app-primary-dark);
  text-decoration-color: rgba(17, 94, 89, 0.32);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, font-weight 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--app-primary);
  font-weight: 700;
  text-decoration-color: var(--app-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  margin: 0 0 1.25rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.app-shell {
  max-width: 1320px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.app-header,
.content-panel,
.app-footer,
#login {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 20px 24px;
  border-top: 4px solid var(--app-primary);
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.09);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.app-logo {
  width: 122px;
  height: 76px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid var(--app-border);
}

.brand-copy h1 {
  color: var(--app-text);
  font-size: 1.65rem;
  font-weight: 750;
}

.user-greeting {
  margin: 5px 0 0;
  color: var(--app-muted);
  font-size: 0.95rem;
}

.user-greeting strong {
  color: var(--app-primary-dark);
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.header-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
}

.header-actions .btn-light {
  background: #fff;
  border-color: var(--app-border);
}

.app-navbar {
  padding: 0;
}

.app-navbar-toggler {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  color: #344452;
  background: #e8eef2;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  font-weight: 700;
}

.menu-label {
  font-size: 0.95rem;
}

.app-nav {
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.app-nav .nav-link {
  color: #344452;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-nav .nav-link:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--app-primary-dark);
  transform: translateY(-1px);
}

.app-nav .nav-link.active {
  background: var(--app-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
}

.app-nav .app-nav-disabled {
  color: #8b98a5;
  opacity: 0.42;
  pointer-events: none;
}

.content-panel {
  clear: both;
  padding: 22px;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--app-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.table {
  overflow: hidden;
  border-color: var(--app-border);
  vertical-align: middle;
}

.table-responsive,
#tabela {
  border-radius: var(--app-radius);
}

.table thead th,
.table-info th,
.table-info td {
  background: var(--app-primary-soft) !important;
  color: #134e4a;
  border-color: var(--app-border);
}

.table th {
  font-size: 0.9rem;
  letter-spacing: 0;
}

.table thead tr:first-child th,
.table tr.table-info:first-child th,
.table .naslov th {
  font-size: 1.08rem;
  font-weight: 700;
}

.table .card-summary-row th {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  font-size: 1.35rem;
}

.table .card-summary-row .badge {
  font-size: 1.4em;
  font-weight: 600;
}

.table td,
.table th {
  padding: 0.62rem 0.7rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(15, 118, 110, 0.035);
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(15, 118, 110, 0.08);
}

.form-control,
.form-select,
select.form-control {
  border-color: #cbd5df;
  border-radius: 6px;
  min-height: 40px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.form-group {
  margin-bottom: 1rem;
}

form:not(.login-form) .form-group:has(> button[type="submit"]) {
  display: flex;
  justify-content: flex-end;
}

form:not(.login-form) > button[type="submit"] {
  display: block;
  margin-left: auto;
}

label {
  margin-bottom: 0.35rem;
  color: var(--app-accent);
  font-weight: 600;
}

.input-group-text {
  color: var(--app-primary-dark);
  background: var(--app-primary-soft);
  border-color: #cbd5df;
}

.transaction-form {
  max-width: 620px;
}

.form-stack {
  display: grid;
  gap: 2px;
}

.cash-form {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 940px;
}

.cash-column {
  min-width: 0;
}

.cash-column .form-group {
  display: block;
}

.cash-column label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 78px;
}

.cash-form label img {
  display: block;
  width: 150px;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
}

.cash-form label i {
  display: inline-flex;
  margin-top: 0;
  color: var(--app-muted);
}

.cash-form label img.coin {
  width: 58px;
  height: 58px;
}

.btn {
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-info {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-info:hover {
  background: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
}

.btn-danger {
  background: var(--app-danger);
  border-color: var(--app-danger);
}

.btn-outline-warning {
  color: #8a5a13;
  border-color: #d69e2e;
}

.btn-outline-warning:hover {
  color: #fff;
  background: var(--app-warning);
  border-color: var(--app-warning);
}

.alert {
  position: relative;
  border-radius: var(--app-radius);
}

.alert:has(.btn-close) {
  padding-right: 3rem;
}

.alert .btn-close {
  position: absolute;
  /*top: 0.75rem;
  right: 0.75rem;*/
}

.content-panel > .alert {
  width: 50%;
}

.badge {
  border-radius: 6px;
  padding: 0.45em 0.65em;
}

.badge-info {
  background: #0e7490;
  color: #fff;
}

.badge-success {
  background: #15803d;
  color: #fff;
}

.badge-danger {
  background: #b42318;
  color: #fff;
}

.pagination-wrap {
  clear: both;
  margin-top: 18px;
}

.pagination {
  margin-bottom: 6px;
}

.page-link {
  color: var(--app-primary-dark);
  border-color: var(--app-border);
}

.page-link:hover {
  color: var(--app-primary-dark);
  background: #e4f2f1;
  border-color: var(--app-border);
}

.page-item.active .page-link {
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.pagination-summary {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.85rem;
  text-align: center;
}

.text-right {
  text-align: right !important;
}

.levi {
  float: left;
}

.desni {
  float: right;
}

.centar {
  text-align: center;
}

.bottom-space {
  margin-bottom: 18px;
}

.radiobtn {
  margin-left: 20px;
}

#login {
  margin: 0;
  padding: 0;
}

 .login-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 24px 24px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 360px),
    linear-gradient(180deg, #f7fafc 0%, #e8f0f3 100%);
}

.login-wrap {
  width: min(100%, 480px);
  padding: 10px;
}

.login-panel {
  padding: 36px;
}

#login.login-panel {
  padding: 36px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.login-logo {
  width: 96px;
  max-height: 64px;
  object-fit: contain;
}

.login-form {
  display: grid;
  gap: 4px;
}

.dugme {
  margin: 0 5px 10px 0;
}

#footer {
  clear: both;
  margin-top: 32px;
}

.app-footer {
  padding: 18px;
  color: var(--app-muted);
  font-size: 0.9rem;
}

.app-footer p {
  margin: 0;
}

.bill {
  width: 150px;
  max-width: 30%;
  height: auto;
}

.coin {
  width: 58px;
  max-width: 22%;
  height: auto;
}

.coin2 {
  width: 42px;
  max-width: 12%;
  height: auto;
}

.naslov {
  font-size: 2rem;
}

.sirina {
  width: 33.33%;
}

@media (max-width: 768px) {
  .content-panel > .alert {
    width: 100%;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .content-panel {
    padding: 14px;
  }

  .brand-block {
    align-items: center;
    gap: 14px;
  }

  .app-logo {
    width: 92px;
    height: 62px;
  }

  .brand-copy {
    padding-left: 14px;
  }

  .brand-copy h1 {
    font-size: 1.35rem;
  }

  .header-actions .btn {
    flex: 1 1 auto;
  }

  .login-page {
    padding: 16px;
  }

  .login-panel {
    padding: 22px;
  }

  #login.login-panel {
    padding: 22px;
  }

  .transaction-form {
    max-width: none;
  }

  .cash-form {
    grid-template-columns: 1fr;
    gap: 4px;
    max-width: none;
  }

  .cash-column label {
    min-height: auto;
  }

  .cash-form label img {
    width: 100px;
    height: 50px;
  }

  .cash-form label img.coin {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 991.98px) {
  .app-navbar-toggler {
    display: flex;
  }

  .app-nav {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .app-nav .nav-link {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .app-navbar-toggler {
    display: none;
  }

  .app-navbar .navbar-collapse {
    display: block !important;
  }
}

@media print {
  .no-print,
  .no-print * {
    display: none !important;
  }

  .my-table {
    width: 70%;
    margin: 0;
    font-size: 10pt;
  }

  table.table > :not(caption) > * > * {
    height: auto !important;
    padding: 0.18rem 0.3rem !important;
    line-height: 1.15;
    vertical-align: middle;
    white-space: normal !important;
    word-break: normal;
  }

  table.table td.text-right,
  table.table td.text-success,
  table.table td.text-danger,
  table.table td > strong,
  table.table .badge {
    font-size: 9pt;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: keep-all;
    font-variant-numeric: tabular-nums;
  }

  tr {
    height: auto !important;
    border-bottom: 1.5px solid black;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
