/* ==========================================================================
   KWISPELTIJD CLONE - KUIPERS K9 PORTAL STYLESHEET
   Authentic Next.js App Router design system extracted from app.kwispeltijd.com
   ========================================================================== */

:root {
  --background: 210 20% 98%;
  --foreground: 221 39% 11%;
  --card: 0 0% 100%;
  --card-foreground: 221 39% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 221 39% 11%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --primary: 206 79% 21%; /* Kuipers K9 Royal Navy #0b3b60 */
  --primary-foreground: 0 0% 100%;
  --primary-bright: 208 70% 29%; /* #164e7d */
  --primary-tint: 206 43% 95%; /* #edf4f9 Ice Blue */
  --primary-soft: 208 55% 97%; /* #f0f6fb */
  --primary-ink: 207 80% 13%; /* #07253d Dark Navy */
  --ring: 19 89% 54%; /* Kuipers K9 Orange #f26522 */
  --secondary: 220 14% 96%;
  --secondary-foreground: 207 80% 13%;
  --accent: 21 100% 96%; /* #fff2eb */
  --accent-foreground: 19 89% 54%;
  --kw-amber: 19 89% 54%; /* Kuipers K9 Orange */
  --kw-amber-deep: 19 88% 45%; /* #d94e0e */
  --success: 163 94% 24%;
  --success-tint: 152 81% 96%;
  --info: 226 71% 40%;
  --info-tint: 214 95% 93%;
  --warning: 23 82% 31%;
  --warning-tint: 48 96% 89%;
  --destructive: 0 74% 42%;
  --destructive-foreground: 0 0% 100%;
  --destructive-tint: 0 86% 97%;
  --radius: .75rem;
  --sidebar-width: 260px;
  --header-height: 64px;
  --kw-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --kw-shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --kw-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base utility bindings */
.bg-primary { background-color: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary)); }
.bg-primary-soft { background-color: hsl(var(--primary-soft)); }
.text-primary-ink { color: hsl(var(--primary-ink)); }
.border-primary { border-color: hsl(var(--primary)); }

/* ==========================================================================
   APP SHELL LAYOUT
   ========================================================================== */

#app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.25s ease;
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #07253d 0%, #0b3b60 100%);
  border-bottom: 3px solid #f26522;
  color: #ffffff;
}

.sidebar-header .brand-name {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sidebar-header .brand-sub {
  color: rgba(255, 255, 255, 0.85);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: hsl(var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(242, 101, 34, 0.3);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.tenant-selector {
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}
.tenant-selector:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.sidebar-group {
  margin-bottom: 1.25rem;
}

.sidebar-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.2rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.nav-item.active {
  background-color: #fff2eb;
  color: #d94e0e;
  font-weight: 700;
  border-color: rgba(242, 101, 34, 0.35);
  border-left: 3px solid #f26522;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  color: inherit;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: white;
}

.nav-badge.amber {
  background: hsl(var(--kw-amber));
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #bae6fd;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.user-role {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
}

/* MAIN CONTENT AREA */
.main-layout {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100vw - var(--sidebar-width));
}

/* TOP NAVBAR */
.topbar {
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: hsl(var(--foreground));
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: hsl(var(--foreground));
}

.breadcrumbs .current {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  min-width: 220px;
  transition: all 0.15s ease;
}

.search-trigger-btn:hover {
  border-color: hsl(var(--ring));
  background: #ffffff;
}

.kbd-shortcut {
  font-size: 0.7rem;
  background: #ffffff;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  padding: 1px 5px;
  color: hsl(var(--muted-foreground));
  margin-left: auto;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.icon-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--kw-amber));
  border: 2px solid white;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: hsl(var(--primary));
  color: white;
}
.btn-primary:hover {
  background: hsl(var(--primary-bright));
  box-shadow: 0 2px 8px rgba(242, 101, 34, 0.3);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}
.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-outline {
  background: #ffffff;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover {
  background: hsl(var(--muted));
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 8px;
}

/* CONTENT VIEWPORT */
.content-viewport {
  flex: 1;
  padding: 2rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--kw-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--kw-shadow-md);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* KPI METRIC CARDS */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--kw-shadow);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon.teal {
  background: hsl(var(--primary-soft));
  color: hsl(var(--primary));
}

.kpi-icon.amber {
  background: #fef3c7;
  color: #b45309;
}

.kpi-icon.blue {
  background: #e0f2fe;
  color: #0369a1;
}

.kpi-icon.green {
  background: hsl(var(--success-tint));
  color: hsl(var(--success));
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

.kpi-sub {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* DASHBOARD LAYOUT GRID */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TODAY'S SCHEDULE / TIMELINE
   ========================================================================== */

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: #ffffff;
  transition: all 0.15s ease;
}

.schedule-item:hover {
  border-color: hsl(var(--ring));
  box-shadow: var(--kw-shadow);
}

.schedule-time-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 90px;
}

.schedule-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
}

.schedule-duration {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
}

.schedule-details {
  flex: 1;
  padding: 0 1.25rem;
}

.schedule-subject {
  font-weight: 600;
  font-size: 0.92rem;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.dog-badge.border-collie { background: #e0f2fe; color: #0284c7; }
.dog-badge.herder { background: #fef3c7; color: #b45309; }
.dog-badge.retriever { background: #fef9c3; color: #854d0e; }
.dog-badge.puppy { background: #f0fdf4; color: #16a34a; }

.schedule-client-name {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.2rem;
}

.schedule-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* BADGES */
.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-pill.confirmed {
  background: hsl(var(--success-tint));
  color: hsl(var(--success));
}

.status-pill.pending {
  background: #fef3c7;
  color: #b45309;
}

.status-pill.checked-in {
  background: hsl(var(--primary-soft));
  color: hsl(var(--primary));
}

.status-pill.completed {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.status-pill.overdue {
  background: hsl(var(--destructive-tint));
  color: hsl(var(--destructive));
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.data-table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.data-table th {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #fafbfc;
}

/* ==========================================================================
   KANBAN BOARD (TRAJECTEN BORD)
   ========================================================================== */

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 1rem;
}

@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(4, 290px);
  }
}

.kanban-col {
  background: #f8fafc;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.kanban-col-header {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.kanban-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.kanban-cards {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
}

.kanban-card {
  background: #ffffff;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: grab;
  transition: all 0.15s ease;
}

.kanban-card:hover {
  box-shadow: var(--kw-shadow-md);
  border-color: hsl(var(--ring));
}

.kanban-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.35rem;
}

.kanban-card-sub {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kanban-progress {
  height: 6px;
  background: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.kanban-progress-bar {
  height: 100%;
  background: hsl(var(--primary));
  border-radius: 9999px;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
}

/* ==========================================================================
   AGENDA / CALENDAR GRID
   ========================================================================== */

.calendar-container {
  background: #ffffff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--kw-shadow);
}

.calendar-toolbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-week-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border-bottom: 1px solid hsl(var(--border));
}

.calendar-header-cell {
  padding: 0.75rem;
  text-align: center;
  background: hsl(var(--muted));
  border-right: 1px solid hsl(var(--border));
  font-size: 0.8rem;
}

.calendar-header-cell.today {
  background: hsl(var(--primary-soft));
  color: hsl(var(--primary));
  font-weight: 700;
}

.calendar-day-name {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
}

.calendar-day-number {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2px;
}

.calendar-body {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  max-height: 650px;
  overflow-y: auto;
}

.time-slot-label {
  padding: 0.5rem 0.5rem;
  text-align: right;
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid hsl(var(--border));
  height: 54px;
}

.calendar-day-col {
  border-right: 1px solid hsl(var(--border));
  position: relative;
  background: #ffffff;
}

.calendar-cell-hour {
  height: 54px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
}
.calendar-cell-hour:hover {
  background: #f8fafc;
}

.cal-event-card {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  cursor: pointer;
  z-index: 10;
  border-left: 3px solid;
  transition: transform 0.1s ease;
}

.cal-event-card:hover {
  transform: scale(1.02);
  z-index: 20;
}

.cal-event-card.puppy {
  background: #f0fdf4;
  color: #166534;
  border-color: #22c55e;
}

.cal-event-card.gedrag {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.cal-event-card.groep {
  background: hsl(var(--primary-soft));
  color: hsl(var(--primary-ink));
  border-color: hsl(var(--primary));
}

.cal-event-card.sport {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #a855f7;
}

/* ==========================================================================
   KASSA (POS) SCREEN
   ========================================================================== */

.pos-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .pos-container {
    grid-template-columns: 1fr;
  }
}

.pos-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.pos-item-btn {
  background: #ffffff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 105px;
}

.pos-item-btn:hover {
  border-color: hsl(var(--ring));
  box-shadow: var(--kw-shadow-md);
  transform: translateY(-2px);
}

.pos-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
}

.pos-item-cat {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  margin-top: 2px;
}

.pos-item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.pos-receipt-card {
  background: #ffffff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--kw-shadow-md);
}

.pos-cart-items {
  flex: 1;
  max-height: 350px;
  overflow-y: auto;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  margin: 1rem 0;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pos-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
}

.pos-totals-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.pos-total-grand {
  display: flex;
  justify-content: space-between;
  font-size: 1.35rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  border-top: 2px solid hsl(var(--border));
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.pos-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ==========================================================================
   STRIPPENKAART VISUALS
   ========================================================================== */

.strippen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.strippen-card {
  background: #ffffff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--kw-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.strippen-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.5rem 0;
}

.strip-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.strip-bubble.used {
  background: #f26522;
  color: white;
  box-shadow: 0 2px 6px rgba(242, 101, 34, 0.3);
}

.strip-bubble.open {
  background: #ffffff;
  border: 2px dashed hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

/* ==========================================================================
   MODALS, OVERLAYS & TOASTS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 1rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--kw-shadow-lg);
  border: 1px solid hsl(var(--border));
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 4px;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* FORM STYLES */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: hsl(var(--foreground));
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid hsl(var(--input));
  background: #ffffff;
  color: hsl(var(--foreground));
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.18);
}

/* TOAST NOTIFICATION */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #1e293b;
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--kw-shadow-lg);
  animation: slideInUp 0.25s ease;
}

.toast.success { background: #065f46; }
.toast.error { background: #991b1b; }

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-layout {
    margin-left: 0;
    width: 100vw;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .search-trigger-btn {
    min-width: unset;
  }
  .search-trigger-btn span {
    display: none;
  }
  .content-viewport {
    padding: 1rem;
  }
}

/* ==========================================================================
   PORTAL 100% MOBIELPROOF ENHANCEMENTS
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-layout {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .topbar {
    padding: 0 0.85rem !important;
    gap: 0.5rem !important;
  }

  .topbar-left {
    gap: 0.5rem !important;
  }

  .breadcrumbs {
    font-size: 0.8rem !important;
  }

  .topbar-right {
    gap: 0.4rem !important;
  }

  .topbar-right > span {
    display: none !important; /* Verberg 'Ingelogd: ...' tekst op kleine telefoons */
  }

  /* Touch targets minimum 44px */
  .nav-item {
    padding: 0.75rem 0.85rem !important;
    min-height: 44px !important;
  }

  .mobile-menu-btn {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .form-control, .form-input, .form-select, .form-textarea, input, select, textarea {
    font-size: 16px !important; /* Voorkom auto-zoom op iOS */
  }

  .content-viewport {
    padding: 0.85rem !important;
  }

  /* Modals mobielproof */
  .modal-container, .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    margin: 1rem auto !important;
  }

  .modal-footer {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .modal-footer .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Data tables horizontaal soepel scrollen */
  .data-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 640px) {
  .cms-sticky-bar {
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 10px 14px !important;
    bottom: 0.5rem !important;
  }

  .cms-sticky-info {
    display: none !important;
  }

  .cms-sticky-bar button, .cms-sticky-bar form button {
    width: 100% !important;
    justify-content: center !important;
  }
}
