* {
    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: #f44336;
    --primary-hover: #8c2319;
    --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;
    --chat-outgoing-bg: #ffebee;
}

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);
}
ul.pagination {
    --bs-pagination-active-bg: var(--primary);
    --bs-pagination-active-border-color: var(--primary);
    --bs-pagination-color: var(--primary);
    --bs-pagination-hover-color: var(--primary-hover);
}
ul.nav-tabs .nav-link {
    --bs-nav-link-color: var(--primary);
    --bs-nav-link-hover-color: var(--primary-hover);
}


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: 280px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas:
                "sidebar topbar"
                "sidebar main";
    height: 100vh;
}

/* Left Sidebar */
.sidebar {
    grid-area: sidebar;
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
}

.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;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 32px;
}

.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 {
    background: #f8fafc;
    color: #0f172a;
}

.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;
}

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;
    heigt: 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;
    width: 300px;
}

.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;
    overflow-y: auto;
    background: #f8fafc;
}

/*.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: 24px;
    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;
}

/* 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-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

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

.ticket-content {
    flex: 1;
    min-width: 0;
}

.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;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 240px 1fr;
    }

    .main-content {
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr;
        grid-template-areas:
                    "topbar"
                    "main";
    }

    .sidebar {
        display: none;
    }

    .search-bar {
        width: 200px;
    }
}
.table.glass-table>:not(caption)>*>* {
    padding: 16px 20px;
    transition: background 0.2s;
    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 .75rem;
    }


    .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: 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;
}
.no_global_padding * #detail {
    margin-top: 32px;
}

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



/* Sidebar compact maken onder 1640px */
@media (max-width: 1640px) {
  .sidebar {
    width: 70px; /* maak sidebar smaller */
    overflow-x: hidden;
  }

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

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

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

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

  }

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

  .sidebar .nav-item {
      padding: 12px;
  }
  .sidebar .nav-item.dropup {
      padding: 12px 0;
  }
  /* Tooltip bij hover */
  .sidebar .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 .nav-item:hover::after {
    opacity: 1;
  }

  .app-container {
      grid-template-columns: 70px 1fr;
  }
}
.message-design .gmail_signature {
    display: none;
}

.gmail_signature {
    display: none;
}

span.tagify__input {
    padding: 0;
    width: 200px;
    margin: 0;
}

.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;
}


