* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 1. Base (mobile) styles */
:root {
    --aradoo-green: #05FD6F;
    --aradoo-blue: #3690F3;
    --aradoo-light-grey: #F0EFEF;
    --aradoo-grey: #EEEEEE;
    --aradoo-dark-grey: #555;
    --aradoo-dark-grey-1: #333;
    --aradoo-black: #171523;
    --primary: #24a3d8;
    --primary-soft: rgba(36, 163, 216, 0.05);
    --primary-hover: rgba(36, 163, 216, 0.78);
    --bs-btn-bg: --primary;
    /*--aradoo-green-rgb: 5 253 111;*/
    --aradoo-green-rgb: 36 163 216;
    --surface: rgba(255, 255, 255, 0.65);
    --surface-border: rgba(0, 0, 0, 0.08);
    --ring: #6aa3ff;
    --maxw: 80vw;
}
body.branded {
    --aradoo-green: #05FD6F;
    --aradoo-blue: #3690F3;
    --aradoo-light-grey: #F0EFEF;
    --aradoo-grey: #EEEEEE;
    --aradoo-dark-grey: #555;
    --aradoo-dark-grey-1: #333;
    --aradoo-black: #171523;
    --primary: #24a3d8;
    --primary-soft: rgba(113, 113, 113, 0.02);
    --primary-hover: rgba(36, 163, 216, 0.78);
    --bs-btn-bg: --primary;
    /*--aradoo-green-rgb: 5 253 111;*/
    --aradoo-green-rgb: 36 163 216;
    --surface: rgba(255, 255, 255, 0.65);
    --surface-border: rgba(0, 0, 0, 0.08);
    --ring: #6aa3ff;
    --maxw: 80vw;
}

html, body {
  height: 100%;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  /* gebruik dvh/svh voor mobile browsers; vh als fallback */
  min-height: 100vh;
  min-height: 100dvh;
}


button.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
}

button.btn-outline-secondary,
a.btn-outline-secondary {
    --bs-btn-hover-color: var(--aradoo-black);
    --bs-btn-hover-bg: var(--aradoo-light-grey);
    --bs-btn-active-color: var(--aradoo-black);
    --bs-btn-active-bg: var(--aradoo-light-grey);
}

a.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
}

span.text-bg-primary {
    background-color: var(--primary)!important;
}
ul.pagination {
    --bs-pagination-active-bg: var(--primary);
    --bs-pagination-active-border-color: var(--primary);
}

button.btn-outline-primary {
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-color: var(--primary);
}
a.btn-outline-primary {
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-border-color: var(--primary-hover);
    --bs-btn-hover-bg: var(--primary-hover);
        --bs-btn-color: var(--primary);

}
.dropdown-item {
  --bs-dropdown-link-active-bg: var(--primary);
}

/* Align keyboard focus with Bootstrap's active state */
.list-group-item {
  --bs-list-group-active-color: #000;
  --bs-list-group-active-bg: #f8f9fa;
  --bs-list-group-active-border-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    --navbar-height: 60px
}

.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas:
                "topbar topbar"
                "sidebar main";
    height: 100vh;
    transition: grid-template-columns 0.2s ease;  /* animate change */
}

/* Left Sidebar */
.sidebar {
    grid-area: sidebar;
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    width: 260px;              /* normal width */
    transition: width 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

/* Toggle button lays out icons on top of each other */
#sidebar-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  margin: 0.5rem 0.5rem 0;
  display: flex;
  justify-self: end;
}

/* Both icons stacked in the same place */
.sidebar-toggle-icon {
  position: absolute;
  inset: 0;                 /* top/right/bottom/left: 0 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
      opacity 0.2s ease,
      transform 0.2s ease;
}

/* Default: sidebar expanded */
.icon-expanded {
  opacity: 1;
  transform: translateX(0);
}

.icon-collapsed {
  opacity: 0;
  transform: translateX(-6px);   /* slightly off-screen */
}

/* When sidebar is collapsed: swap them with a little slide */
.sidebar.sidebar-collapsed .icon-expanded {
  opacity: 0;
  transform: translateX(6px);
}

.sidebar.sidebar-collapsed .icon-collapsed {
  opacity: 1;
  transform: translateX(0);
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-header {
  padding: 0 20px;
  border-bottom: 1px solid #e2e8f0;
  height: var(--navbar-height);
}

.sidebar.sidebar-collapsed {
  width: 70px; /* maak sidebar smaller */
  position: relative;
  overflow: visible;
}

.sidebar .nav-item.dropup .dropdown-menu {
  z-index: 1050;      /* above the main content */
}

.sidebar.sidebar-collapsed .nav-item {
  display: flex;
  justify-content: center;
  position: relative;
}

.sidebar.sidebar-collapsed .me-3 {
  margin-right: 0 !important;
}

.sidebar.sidebar-collapsed .gap-4 {
  gap: 0 !important;
}

/* Verberg tekst, behoud icon */
.sidebar.sidebar-collapsed .nav-item .label,
.sidebar.sidebar-collapsed .nav-item .nav-badge,
.sidebar.sidebar-collapsed .nav-section-title {
  display: none;
}
.sidebar.sidebar-collapsed .nav-item .nav-item-icon {
  margin-right: 0;
}

.sidebar.sidebar-collapsed .nav-section {
  border-bottom: 1px solid var(--aradoo-light-grey);
}

.sidebar.sidebar-collapsed .dropdown-toggle {
  justify-content: center!important;
  border: none
}

.sidebar.sidebar-collapsed .nav-item {
  padding: 12px;
}
.sidebar.sidebar-collapsed .nav-item.dropup {
  padding: 12px;
}
/* Tooltip bij hover */
.sidebar.sidebar-collapsed .nav-item::after {
  content: attr(title); /* Titel komt uit title attribuut */
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2937; /* donkergrijs */
  color: white;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-left: 6px;
}

.sidebar.sidebar-collapsed .nav-item:hover::after {
  opacity: 1;
}

.app-container.sidebar-collapsed {
  grid-template-columns: 70px 1fr;
}

.sidebar-header {
    padding: 0 20px;
    border-bottom: 1px solid #e2e8f0;
    height: var(--navbar-height);
}


.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 21h18"/><path d="M5 21V7l8-4v18"/><path d="M19 21V11l-6-4"/></svg>') no-repeat center;
    background-size: contain;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover:not(.dropup, .active) {
    background: var(--aradoo-light-grey);
    color: var(--aradoo-black);
}

.nav-item.active {
    background: #f0f9ff;
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.nav-item-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-badge {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.nav-badge.blue {
    background: #03acff;
}

.nav-badge.orange {
    background: #03acff;
}

.nav-badge.gray {
    background: #03acff;
}

.badge {
    --bs-badge-padding-x: 0.5rem;
    --bs-badge-padding-y: 0.5rem;
}

input.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

body * a {
    color: var(--primary);
    /*text-decoration: none;*/
}
/* Top Navigation */
.topbar {
    grid-area: topbar;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: var(--navbar-height)
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
}

.search-bar {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-icon {
    position: relative;
    background: none;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.notification-icon:hover {
    background: #f8fafc;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-menu:hover {
    background: #f8fafc;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
}

.profile-role {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

/* Main Content Area */
.main-content {
    grid-area: main;
    /*padding: 32px;*/
    overflow-y: auto;
    background: #f8fafc;
    position: relative;
}

/*.page-header {*/
/*    margin-bottom: 20px;*/
/*}*/

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #64748b;
    font-size: 16px;
}

/* Status Navigation Tabs */
.status-nav {
    display: flex;
    gap: 2px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 24px;
    width: fit-content;
}

.status-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
    font-size: 14px;
}

.status-tab.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    transition: all 0.2s;
}

.status-tab.active .status-count {
    background: #3b82f6;
    color: white;
}

/* Cards and Sections */
.content-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 2fr 1fr;
}

div.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h3.custom-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.stat-trend {
    margin-top: 8px;
    font-size: 12px;
}

.ticket-emergency {
    border: 2px solid #ef4444 !important;
    background: #fef2f2 !important;
}

/* Status Update Dropdown */
.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 160px;
    display: none;
}

.status-dropdown-item {
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dropdown-item:hover {
    background: #f8fafc;
}

.status-dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

/* Animate the default Bootstrap caret */
.dropdown-toggle::after {
  transition: transform 0.2s ease;
}

/* When dropdown is open */
.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Location Edit Modal */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.location-modal-content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.location-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}

.location-form-group {
    margin-bottom: 20px;
}

.location-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.location-form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.location-form-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.location-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Ticket List */
.ticket-list {
  grid-template-columns: max-content minmax(0,1fr) max-content max-content max-content 170px !important;
}

.ticket-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto 0.5fr;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.small-sidebar .ticket-item {
    display: flex;
    flex-direction: column;
}

.ticket-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.ticket-content {
    flex: auto;
    min-width: 0;
  width: calc(100%);  /* fix for text-overflow ellipsis without fixed width */
}

.ticket-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-category {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.status-progress {
    background: #fef3c7;
    color: #d97706;
}

.status-hold {
    background: #fee2e2;
    color: #dc2626;
}

.status-closed {
    background: #f1f5f9;
    color: #475569;
}

.assignee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* Content Views */
.content-view {
    display: none;
}

.content-view.active {
    display: block;
}

/* Pagination */
.tickets-page {
    display: block;
}

.pagination-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.table.glass-table>:not(caption)>*>* {
    padding: 16px 20px;
    transition: background 0.2s;
    cursor: pointer;
}

.clickable-row {
    cursor: pointer;
}

/*.clickable-row {*/
/*    display: grid;*/
/*    !*grid-template-columns: 40px 2fr 1fr 1.5fr 1fr 1fr 80px; *!*/
/*    gap: 16px;*/
/*    padding: 16px 20px;*/
/*    border-bottom: 1px solid rgb(241, 245, 249);*/
/*    align-items: center;*/
/*    transition: background 0.2s;*/
/*    */
/*    background: white;*/
/*}*/
/*.clickable-row:hover {*/

/*    background: #f8fafc;*/
/*}*/
.login-with-google-btn {
    transition: background-color .3s, box-shadow .3s;

    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);

    color: #757575;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px 11px;

    &:hover {
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
    }

    &:active {
        background-color: #eeeeee;
    }

    &:focus {
        outline: none;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .04),
        0 2px 4px rgba(0, 0, 0, .25),
        0 0 0 3px #c8dafc;
    }

    &:disabled {
        filter: grayscale(100%);
        background-color: #ebebeb;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
        cursor: not-allowed;
    }
}

.bsk-btn {
    transition: background-color .3s, box-shadow .3s;

    padding: 12px 16px 12px 42px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);

    color: #757575;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjRjI1MDIyIi8+CiAgPHJlY3QgeD0iMTAiIHk9IjAiIHdpZHRoPSI4IiBoZWlnaHQ9IjgiIGZpbGw9IiM3RkJBMDAiLz4KICA8cmVjdCB4PSIwIiB5PSIxMCIgd2lkdGg9IjgiIGhlaWdodD0iOCIgZmlsbD0iIzAwQTRFRiIvPgogIDxyZWN0IHg9IjEwIiB5PSIxMCIgd2lkdGg9IjgiIGhlaWdodD0iOCIgZmlsbD0iI0ZGQjkwMCIvPgo8L3N2Zz4=);
    background-color: white;
    background-repeat: no-repeat;
    background-position: 12px 11px;
}
    .custom-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .5rem 0rem;
    }


    .aborted-message {
    /*opacity: 20%;*/
}

span.aborted-message {
    display: none;
}

.aborted-message * span.aborted-message {
    display: inline;
}

.aborted-message * .message-design {
    background-color: #faceca !important;
}
.to-be-approved-message * .approve-item {
    display: block;
}

.to-be-approved-message * .message-design {
    background-color: white !important;
    border: 1px solid var(--aradoo-green);
}
.email-message {              /* class in je email_message.html */
  content-visibility: auto;
  contain-intrinsic-size: 600px 800px; /* schatting voor reservatie, tweak naar wens */
}
@media (max-width: 2400px) {
    .trix-button-group.trix-button-group--block-tools {
        margin-left: 0;
    }
    .trix-button-group-spacer {
        display: none;
    }
    #detail-body.p-3{
        padding: 0 !important;
    }
}

@media (max-width: 1440px) {
    .trix-button-group.trix-button-group--block-tools {
        display: none;
    }
    #detail-body.p-3{
        padding: 0 !important;
    }
}

@media (max-width: 1300px) {
    .content-grid.stack-mobile{
        grid-template-columns:1fr;
    }
}

.small-sidebar {
    padding: 0 !important;
    position: static;
}
.small-sidebar > .page-header,
.small-sidebar * .search-bar,
.small-sidebar * .sidebar-header,
.small-sidebar > div.importexportfilters {
    display: none;
}

.small-sidebar > .card {
    max-width: 300px;
    min-width: 300px;
    border-radius: 0;
    border-top: 0;
    border-left: 0;
    height: 100%;
}

.small-sidebar * .small-sidebar-dnone {
    display: none!important;
}

.small-sidebar * .tc-summary {
    display: none;
}
.small-sidebar * .ticket-item {
    flex-direction: column;
    align-items: flex-start;
}

.no_global_padding * .main-content {
    padding: 0 32px  32px 0
}
.no_global_padding * .container-fluid.mt-3 {
    margin-top: 0 !important;
}

.small-sidebar * .ticket-item {
    padding: 8px 10px
}
.small-sidebar * .ticket-card {
  overflow: hidden;
  margin-right: 6px;
}

.message-design .gmail_signature {
    display: none;
}

trix-toolbar button.trix-button--icon-attach {
    display: none;
}

.ticket-card.is-active .ticket-item {
  border-color: var(--primary);
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.06);
}
.ticket-right {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 16px;
    flex-shrink: 0;
    width: --webkit-fill-available;
}

span.tagify__input {
    margin: 0;
}

.tagify.form-control{
    display: flex;
    align-content: flex-start;
}

.grid-cell-card{
    min-height: 32px;
}


.data-grid{
    display: grid;
    grid-template-columns: minmax(100px, 200px) 2fr;
}
.data-grid > div {
    /*border-bottom: 1px solid #e2e8f0;*/
    margin-bottom: 8px ;
}

tr.is-active > td {
    background: rgba(0,0,0,0.075);
}

.chip-label div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Laat tabel nooit breder worden dan de card */
#RelatedTicketsCard .table {
  width: 100%;
  /*table-layout: fixed;        !* verdeelt breedte voorspelbaar *!*/
  margin-bottom: 0;           /* geen extra marge binnen card */
}

/* Alle cellen houden zich aan de breedte en tonen '...' bij overflow */
#RelatedTicketsCard th,
#RelatedTicketsCard td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Titel en categorie mogen afkappen met '...' */
#RelatedTicketsCard .ticket-title,
#RelatedTicketsCard .ticket-category {
  display: block;             /* nodig voor ellipsis */
  overflow: hidden;
  text-overflow: ellipsis;
  /*white-space: nowrap;*/
}

/* Smalle kolommen: tijd + actieknop: zo klein mogelijk houden */
#RelatedTicketsCard td:nth-child(3),
#RelatedTicketsCard td:nth-child(4) {
  width: 1%;                  /* laat ze niet oprekken */
  /*white-space: nowrap;*/
}

/* Optioneel: voorkom rare overflows in de card zelf */
#RelatedTicketsCard.card {
  overflow: hidden;
}




/* overgenomen van generic list */
  /* Iets bredere zijbalk */

  /* Zorg dat de h1-dropdown exact als titel oogt */
  .page-title:hover { text-decoration: none; }

  /* De card vult het scherm (minus wat marge) en verdeelt in header / table / footer */
.list-card-grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* pas desnoods de 32px aan je page layout aan */
  height: calc(100vh - 32px);
  min-height: 520px; /* safeguard */
}

/* Nodig zodat de 1fr-rij kan krimpen en scroll toelaten */
.table-shell { min-height: 0; }

/* Outer scroller container (houdt alles bij elkaar) */
.table-scroller {
  height:100%;
  overflow: auto; /* we laten alleen tbody scrollen */
}

/* Alleen tbody scrolt */
.table-fixed {
  width: 100%;
}

.table-fixed thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff; /* match je thema */
}

/* Maak tbody scrollbaar en zorg dat kolombreedtes uitlijnen */
.table-fixed thead,
.table-fixed tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed; /* kolommen lijnen uit */
}

.table-fixed tbody {
  display: block;
  max-height: 70vh;
}

/* Optioneel: mooie schaduw onder header bij scroll */
.table-fixed thead th {
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}


.table-fixed td{
    text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}


.page-item, .dropdown-item, .ticket-card{
    cursor: pointer;
}


.page-shell {               /* je outer layout */
  min-height: 100vh;        /* fallback */
  min-height: 100dvh;       /* correcte mobile hoogte */
  display: flex;
  flex-direction: column;
}

.page-header { flex: 0 0 auto; }  /* je bovenbalk */
#content-area {
  flex: 1 1 auto;            /* vul rest-ruimte */
  min-height: 0;             /* belangrijk in flex! anders geen shrink → geen scroll */
  overflow: auto;            /* jouw bestaande fix */
}



/* --- Drag states op de rij --- */
tr.dragging {
  opacity: .6;
  cursor: grabbing;
  user-select: none;       /* voorkomt tekstselectie tijdens drag */
}

/* --- Nav-item: visuele drop-hint --- */
.nav-item.drop-hover {
  outline: 2px dashed var(--bs-primary);
  outline-offset: 4px;
  border-radius: 8px;
  background: rgba(13,110,253,.06);  /* licht blauw (Bootstrap primary) */
}

/* --- Klein pulse-effect na succesvolle drop --- */
.nav-item.pulse {
  animation: dnd-pulse .25s ease;
}
@keyframes dnd-pulse {
  from { transform: scale(1.00); }
  to   { transform: scale(1.02); }
}

/* --- Optioneel: cursor & overgangetjes --- */
.nav-item {
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, outline-color .15s ease;
}
    .field-row .read-view {
        display: block;
    }

    .field-row .edit-view {
        display: none;
    }

    .edit-view .mb-3 {
        margin-bottom: 0 !important;
    }

    /* Wanneer de kaart in edit-mode staat, toon overal de inputs */
    .card.is-editing .field-row .read-view {
        display: none;
    }

    .card.is-editing .field-row .edit-view {
        display: block;
    }

    .field-row .form-label {
        display: none;
    }

    form input[type=text] {
        padding: 0;
        border: none;
        border-bottom: 1px solid #6c757d;
        border-radius: 0;
    }


    .ticket-card.active .ticket-item{
        background-color: var(--aradoo-light-grey);
    }

/* Below the breakpoint (1640px): layout always uses 70px rail */
@media (max-width: 1640px) {
  .app-container,
  .app-container.sidebar-collapsed {
    grid-template-columns: 70px 1fr;
  }
}
.approve-item {
    display: none;
}
.to-be-approved-message > button {
    display: block;!important;
}

.trix-button--icon-quote, .trix-button--icon-code{
    display: none;
}


.conversation-wrapper{
    font-size: 13px;
}

.message-design{
    font-size: 13px!important;
}

p.MsoNormal{
    margin-bottom: 0;
}



.typing-dots span {
  animation: blink 1.4s infinite both;
}
.typing-dots span:nth-child(2) {
  animation-delay: .2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}


@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes ai-rotation {
  to { --gradient-angle: 360deg; }
}

.ai-apple-border {
  position: relative;
  border-radius: 14px;
  background: #fff; /* of transparant */
  isolation: isolate;
}

/* 1️⃣ Glow ring (buiten, vervaagd) */
/*.ai-apple-border::after {*/
/*  content: "";*/
/*  position: absolute;*/
/*  inset: -10px;               !* ruimte voor blur *!*/
/*  border-radius: inherit;*/
/*padding: 1px;        !* dunner *!*/
/*opacity: .18;        !* glow zachter *!*/
/*filter: blur(20px); !* softer *!*/

/*  background: conic-gradient(*/
/*    from var(--gradient-angle),*/
/*    var(--aradoo-blue),*/
/*    #22d3ee,*/
/*    var(--aradoo-green),*/
/*    var(--aradoo-blue)*/
/*  );*/

/*  !* ❗ maak er een ring van (GEEN fill) *!*/
/*  -webkit-mask:*/
/*    linear-gradient(#000 0 0) content-box,*/
/*    linear-gradient(#000 0 0);*/
/*  -webkit-mask-composite: xor;*/
/*          mask-composite: exclude;*/

/*  filter: blur(16px);*/
/*  opacity: .25;*/
/*  animation: ai-rotation 4.5s linear infinite;*/

/*  z-index: -2;*/
/*  pointer-events: none;*/
/*}*/

/* 2️⃣ Echte border (scherp, dun) */
.ai-apple-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
padding: 5px;        /* dunner */
opacity: .18;        /* glow zachter */
filter: blur(20px); /* softer */

  background: conic-gradient(
    from var(--gradient-angle),
    var(--aradoo-blue),
    #22d3ee,
    var(--aradoo-green),
    var(--aradoo-blue)
  );

  /* ring cutout */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  animation: ai-rotation 1.5s linear infinite;
  opacity: .85;

  z-index: -1;
  pointer-events: none;
}

.typing-dots span {
  animation: blink 1.4s infinite both;
}
.typing-dots span:nth-child(2) {
  animation-delay: .2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}

.ai-busy-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem; /* nicer spacing tussen spinner & tekst */
    padding: .35rem .7rem; /* heel mini meer luxe */
    border-radius: var(--bs-border-radius);
    background: linear-gradient(135deg, var(--aradoo-blue), var(--aradoo-green));
    color: white;
    font-weight: 500; /* iets cleaner dan 400 op gradient */
    letter-spacing: .2px;
    /*box-shadow: 0 10px 18px rgba(54, 144, 243, .25), 0 6px 14px rgba(5, 253, 111, .18);*/
    border: 0;
    position: relative;
    overflow: hidden;
    font-size: .95rem;

    /* glassy feel */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ai-busy-badge::before {
    content: "";
    position: absolute;
    inset: -60% -80%;
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.35), transparent 55%);
    transform: rotate(12deg);
    pointer-events: none;
}

.ai-busy-badge::after {
    /* subtle moving sheen */
    content: "";
    position: absolute;
    top: -30%;
    left: -60%;
    width: 60%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-20deg);
    animation: aiBadgeSheen 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aiBadgeSheen {
    0%   { left: -70%; opacity: 0; }
    20%  { opacity: 1; }
    50%  { left: 110%; opacity: .9; }
    100% { left: 110%; opacity: 0; }
}



.ticket-card:hover * .display-on-row-hover {
    display: inline-block!important;
}