* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: #172033;
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(16, 185, 129, 0.12),
      transparent 32%
    ),
    linear-gradient(145deg, #f6f8fc, #edf2f8);
}
a {
  color: inherit;
}

.video-banner {
  position: absolute;
  width: 100%;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  margin-top: 130px;
}

.video-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

#video {
  position: fixed;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(480px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  color: #000000;
}
.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 26px;
}
.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}
.logo strong {
  display: block;
  font-size: 18px;
}
.logo span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}
h1 {
  margin: 0 0 8px;
  font-size: 30px;
}
p.lead {
  margin: 0 0 24px;
  color: #64748b;
  line-height: 1.6;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-weight: 750;
  font-size: 14px;
  margin-bottom: 15px;
}
.field input,
.field select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d6deea;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  outline: none;
  margin-bottom: 25px;
}
.field input:focus,
.field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 17px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.22s ease;
}
.btn:hover{
    transform: translateY(-4px);
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}
.btn-light {
  background: #fff;
  border: 1px solid #dce4ef;
  color: #243149;
}
.btn-danger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.btn-block {
  width: 100%;
}
.alert {
  padding: 13px 14px;
  border-radius: 14px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.alert-error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.small-note {
  margin-top: 17px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.auth-links a {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}
.side {
  padding: 26px 20px;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.side .logo {
  margin-bottom: 5px;
}
.side .logo span {
  color: #94a3b8;
}
.side .logo-mark {
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
}
.profile {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}
.profile small {
  display: block;
  color: #94a3b8;
  margin-bottom: 5px;
}
.profile strong {
  display: block;
  word-break: break-word;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav a {
  padding: 12px 14px;
  border-radius: 13px;
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 700;
}
.nav a.active,
.nav a:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}
.side-footer {
  margin-top: auto;
  display: grid;
  gap: 9px;
}
.side-footer .btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
}
.main {
  min-width: 0;
}
.topbar {
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 4;
}
.topbar h1 {
  font-size: 27px;
}
.topbar p {
  margin: 5px 0 0;
  color: #64748b;
}
.content {
  padding: 30px 32px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat,
.panel,
.client-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}
.stat {
  padding: 20px;
}
.stat span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.stat strong {
  display: block;
  font-size: 27px;
  margin-top: 8px;
}
.panel {
  padding: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0;
  font-size: 21px;
}
.panel-head p {
  margin: 5px 0 0;
  color: #64748b;
}
.search {
  width: min(320px, 100%);
  padding: 12px 14px;
  border: 1px solid #d8e0eb;
  border-radius: 13px;
}
.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.client-card {
  padding: 20px;
}
.client-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.client-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.muted {
  color: #64748b;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
}
.badge.pending {
  background: #fef3c7;
  color: #92400e;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 17px 0;
}
.metric {
  padding: 11px;
  border-radius: 13px;
  background: #f8fafc;
}
.metric small {
  display: block;
  color: #64748b;
  font-size: 11px;
}
.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.card-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.empty {
  padding: 38px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  color: #64748b;
}
.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.permission {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.read-only {
  background: #fff7ed;
  color: #9a3412;
}
.accounting-mode {
  padding: 11px 16px;
  background: #dbeafe;
  border-bottom: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 750;
  font-size: 13px;
}
.accounting-mode a {
  margin-left: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th,
td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid #e8edf4;
  font-size: 14px;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 1050px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    position: relative;
  }
  .topbar {
    position: relative;
    padding: 20px;
  }
  .content {
    padding: 20px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .clients {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 25px;
  }
}

/* Upravljanje klijentima */
.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.badge-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.badge.type {
  background: #eef2ff;
  color: #4338ca;
}
.badge.type.manual {
  background: #ecfdf5;
  color: #047857;
}
.badge.type.platform {
  background: #eff6ff;
  color: #1d4ed8;
}
.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.step-panel {
  margin-bottom: 20px;
}
.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.step-heading > span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}
.step-heading h2 {
  margin: 1px 0 4px;
  font-size: 20px;
}
.step-heading p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}
.selection-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.selection-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 280px;
}
.selection-form select {
  flex: 1;
  min-width: 220px;
  padding: 13px 14px;
  border: 1px solid #d6deea;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  outline: none;
}
.selection-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 20px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.field {
  margin-bottom: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d6deea;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  outline: none;
  resize: vertical;
  min-height: 110px;
}
.field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.field input[readonly],
.field select:disabled {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}
.module-grid {
  display: grid;
  gap: 10px;
}
.module-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}
.module-option:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}
.module-option.checked {
  border-color: #60a5fa;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}
.module-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.module-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  color: transparent;
  font-weight: 900;
}
.module-option.checked .module-check {
  background: linear-gradient(135deg, #2563eb, #0f766e);
  border-color: transparent;
  color: #fff;
}
.module-option strong {
  display: block;
  font-size: 14px;
}
.module-option small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}
.module-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.78;
}
.module-option:has(input:disabled):hover {
  transform: none;
}
.readonly-note {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8edf4;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.open-client-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.open-client-panel h2 {
  margin: 0 0 5px;
  font-size: 20px;
}
.open-client-panel p {
  margin: 0;
  color: #64748b;
}
.empty-manage {
  text-align: center;
  padding: 54px 24px;
}
.empty-manage h2 {
  margin: 16px 0 8px;
}
.empty-manage p {
  max-width: 620px;
  margin: 0 auto;
  color: #64748b;
  line-height: 1.6;
}
.empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}
code {
  background: rgba(15, 23, 42, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
}
@media (max-width: 1180px) {
  .manage-grid {
    grid-template-columns: 1fr;
  }
  .badge-stack {
    align-items: flex-start;
  }
  .client-top {
    flex-direction: column;
  }
}
@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-actions {
    width: 100%;
  }
  .topbar-actions .btn {
    flex: 1;
  }
  .selection-row,
  .selection-form {
    align-items: stretch;
    flex-direction: column;
  }
  .selection-form {
    width: 100%;
    min-width: 0;
  }
  .selection-form select {
    width: 100%;
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .open-client-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .open-client-panel .btn {
    width: 100%;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* Portal klijenata knjigovođe */
.portal-create-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 17px;
  background: #f8fbff;
}
.portal-create-toggle {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 14px;
  cursor: pointer;
}
.portal-create-toggle input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #2563eb;
}
.portal-create-toggle strong,
.portal-create-toggle small {
  display: block;
}
.portal-create-toggle small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}
.portal-permissions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.portal-permission {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
}
.portal-permission strong,
.portal-permission small {
  display: block;
}
.portal-permission small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}
.portal-permission select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #fff;
}
.portal-step {
  margin-top: 25px;
}
.portal-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}
.badge.portal-status.aktivan,
.badge.portal-mini.aktivan {
  background: #ecfdf5;
  color: #047857;
}
.badge.portal-status.ceka_aktivaciju,
.badge.portal-mini.ceka_aktivaciju {
  background: #fffbeb;
  color: #92400e;
}
.badge.portal-status.blokiran,
.badge.portal-mini.blokiran {
  background: #fff1f2;
  color: #be123c;
}
.badge.portal-mini.none {
  background: #f1f5f9;
  color: #475569;
}
.portal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.portal-actions form {
  margin: 0;
}
.activation-result {
  border-color: #93c5fd;
  background: linear-gradient(145deg, #fff, #f0f7ff);
}
.activation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 13px;
}
.activation-grid > div {
  padding: 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbeafe;
}
.activation-grid small,
.activation-grid strong {
  display: block;
}
.activation-grid small {
  color: #64748b;
  margin-bottom: 5px;
}
.activation-code {
  font-size: 22px;
  letter-spacing: 0.12em;
  color: #1d4ed8;
}
.invite-text {
  width: 100%;
  min-height: 118px;
  padding: 13px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: #fff;
  font: 13px/1.6 monospace;
  resize: vertical;
  margin-bottom: 12px;
}
.field small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.portal-mini {
  white-space: nowrap;
}
@media (max-width: 780px) {
  .portal-permission {
    grid-template-columns: 1fr;
  }
  .activation-grid {
    grid-template-columns: 1fr;
  }
  .portal-actions,
  .portal-actions form,
  .portal-actions .btn {
    width: 100%;
  }
}

.field-disabled {
  opacity: 0.55;
}
.field-disabled input {
  background: #f3f4f6;
  cursor: not-allowed;
}

.invite-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.invite-actions form {
  margin: 0;
}

/* Obavijesti i naplata knjigovođe */
.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 20px;
  align-items: start;
}
.business-grid.wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}
.business-form {
  margin-top: 18px;
}
.business-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d6deea;
  border-radius: 13px;
  background: #fff;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}
.business-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.business-list {
  display: grid;
  gap: 13px;
  margin-top: 17px;
}
.business-item {
  padding: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
}
.business-item h3 {
  margin: 12px 0 7px;
  font-size: 16px;
}
.business-item p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.55;
  font-size: 13px;
}
.business-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.business-item-head > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.business-item-head small {
  color: #64748b;
  white-space: nowrap;
}
.notice-vazno {
  border-left: 4px solid #2563eb;
}
.notice-rok {
  border-left: 4px solid #d97706;
}
.notice-upozorenje {
  border-left: 4px solid #dc2626;
}
.form-section-title {
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 16px;
}
.payment-toggle {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 15px;
  background: #f8fbff;
}
.payment-toggle label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
}
.payment-toggle input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #2563eb;
}
.payment-toggle strong,
.payment-toggle small {
  display: block;
}
.payment-toggle small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}
.stripe-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0;
  padding: 15px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}
.stripe-status-box small,
.stripe-status-box strong {
  display: block;
}
.stripe-status-box small {
  color: #64748b;
  margin-bottom: 4px;
}
.clean-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #475569;
  line-height: 1.75;
}
.invoice-total {
  font-size: 25px;
  font-weight: 900;
  color: #0f172a;
  margin: 8px 0;
}
.inline-pay-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-pay-form select {
  padding: 10px;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #fff;
}
.business-item .card-actions form {
  margin: 0;
}
@media (max-width: 1080px) {
  .business-grid,
  .business-grid.wide-left {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .business-item-head,
  .stripe-status-box {
    flex-direction: column;
  }
  .inline-pay-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .inline-pay-form select,
  .inline-pay-form .btn {
    width: 100%;
  }
}

/* Detaljan odabir dokumenata i modula po klijentu */
.module-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}
.module-toolbar strong,
.module-toolbar small {
  display: block;
}
.module-toolbar small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.4;
}
.module-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-small {
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 12px;
}
.module-groups {
  display: grid;
  gap: 12px;
}
.module-group {
  border: 1px solid #dce4ef;
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
}
.module-group > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  cursor: pointer;
  background: #fbfdff;
}
.module-group > summary::-webkit-details-marker {
  display: none;
}
.module-group > summary:after {
  content: "+";
  font-size: 21px;
  font-weight: 800;
  color: #64748b;
}
.module-group[open] > summary:after {
  content: "−";
}
.module-group > summary strong,
.module-group > summary small {
  display: block;
}
.module-group > summary small {
  margin-top: 4px;
  color: #64748b;
  line-height: 1.4;
  font-weight: 500;
}
.module-group-count {
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
  margin-left: auto;
}
.module-group-actions {
  padding: 10px 14px 0;
  border-top: 1px solid #edf1f6;
}
.module-select-group {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 0;
  cursor: pointer;
}
.module-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px 14px 15px;
}
.module-leaf {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: 0.16s ease;
}
.module-leaf:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}
.module-leaf.checked {
  border-color: #60a5fa;
  background: #f8fbff;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.07);
}
.module-leaf input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.module-leaf.checked .module-check {
  background: linear-gradient(135deg, #2563eb, #0f766e);
  border-color: transparent;
  color: #fff;
}
.module-leaf strong,
.module-leaf small,
.module-leaf em {
  display: block;
}
.module-leaf strong {
  font-size: 13px;
}
.module-leaf small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.42;
}
.module-leaf em {
  margin-top: 6px;
  color: #9a3412;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}
.module-unavailable {
  opacity: 0.58;
  cursor: not-allowed;
  background: #f8fafc;
}
.module-unavailable:hover {
  transform: none;
  border-color: #e2e8f0;
}
.module-unavailable .module-check {
  background: #f1f5f9;
}
.module-group[style*="display: none"] {
  display: none !important;
}
@media (max-width: 900px) {
  .module-items {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .module-toolbar,
  .module-group > summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .module-toolbar-actions {
    width: 100%;
  }
  .module-toolbar-actions .btn {
    flex: 1;
  }
  .module-group-count {
    margin-left: 0;
  }
  .module-items {
    padding: 10px;
  }
  .module-group > summary:after {
    position: absolute;
    right: 18px;
  }
}
