@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f8fafc;
    --grid-border: rgba(0, 0, 0, 0.04);
    --grid-border-highlight: rgba(0, 177, 81, 0.15);
    --card-bg: rgba(255, 255, 255, 0.85);
    --primary-gradient: linear-gradient(135deg, #00b151 0%, #009640 100%);
    --primary-color: #00b151;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus-border: #00b151;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Source Sans 3', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 3-stripe layout configuration */
.login-container {
    min-height: 100vh;
}

/* Left Background Image Section (2/3 width) */
.grid-section {
    background-image: url('../images/promomedia-incentive-login.png');
    background-image: image-set(
        url('../images/promomedia-incentive-login.webp') type('image/webp'),
        url('../images/promomedia-incentive-login.png') type('image/png')
    );
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Login Section (1/3 width) */
.login-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    min-height: 100vh;
    z-index: 10;
}

/* Glassmorphism card within login pane */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05),
        0 0 30px rgba(0, 177, 81, 0.01),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-logo-container {
    margin-bottom: 2rem;
}

.brand-logo {
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 177, 81, 0.2));
    animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% {
        filter: drop-shadow(0 0 8px rgba(0, 177, 81, 0.15));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(0, 177, 81, 0.35));
    }
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Modern inputs override for Bootstrap */
.form-floating>.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-floating>.form-control:focus {
    background-color: #ffffff;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(0, 177, 81, 0.12);
    color: var(--text-primary);
}

.form-floating>label {
    color: var(--text-muted);
    transition: transform .3s ease, opacity .3s ease;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Checkbox and Link styles */
.form-check-input {
    background-color: #ffffff;
    border-color: var(--input-border);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 177, 81, 0.3);
}

/* Custom login button with hover effects */
.btn-login {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 177, 81, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 177, 81, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(1px);
}

/* Il pulsante di accesso resta fermo sotto il puntatore anche durante il submit. */
.login-card .btn-login:hover,
.login-card .btn-login:active {
    transform: none;
}

/* Background Decorative Elements */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 177, 81, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.glow-1 {
    top: -100px;
    left: -100px;
}

.glow-2 {
    bottom: -150px;
    right: 20%;
}

/* Tooltip Customization */
.tooltip-inner {
    background-color: #ffffff;
    border: 1px solid rgba(0, 177, 81, 0.2);
    color: #0f172a;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(0, 177, 81, 0.2);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .login-section {
        padding: 1.5rem;
        min-height: 100vh;
        border-left: none;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}

/* Authenticated application pages */
.app-container {
    min-height: 100vh;
    padding: 2.5rem 1.5rem;
}

.app-header {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
}

.app-logo {
    max-height: 40px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.app-topbar {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
}

.app-brand,
.app-user-nav,
.app-main-nav {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.app-brand {
    align-items: flex-start;
    flex: 0 1 220px;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.app-brand-copy {
    min-width: 0;
    width: 100%;
}

.app-brand h1 {
    font-size: 1.15rem;
    line-height: 1.15;
    margin: 0;
    overflow-wrap: anywhere;
}

.app-brand small {
    display: block;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.app-main-nav {
    align-self: center;
    flex: 1 1 260px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-user-nav {
    align-self: center;
    flex: 1 1 260px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-nav-link {
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.35;
    min-height: 36px;
    padding: 0.42rem 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.app-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
}

.app-nav-link:hover::before {
    left: 100%;
}

.app-nav-link:hover:not(.app-nav-danger):not(.app-nav-disabled) {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 177, 81, 0.3);
}

.app-nav-link.active {
    background: rgba(0, 177, 81, 0.1);
    border-color: rgba(0, 177, 81, 0.4);
    color: var(--primary-color);
}

.app-nav-disabled,
.app-nav-disabled:hover {
    background: #f8fafc;
    border-color: var(--input-border);
    color: #94a3b8;
    cursor: not-allowed;
}

.app-nav-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.activity-container {
    max-width: 1600px;
}

.app-topbar.dashboard-header {
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
    min-height: 92px;
    padding: 0.85rem 1.15rem;
}

.dashboard-brand {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.dashboard-logo {
    height: auto;
    max-height: 76px;
    max-width: 290px;
    object-fit: contain;
}

.dashboard-brand-copy {
    display: flex;
    flex-direction: column;
    justify-self: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.dashboard-brand-copy h1 {
    color: var(--text-primary);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
}

.dashboard-brand-copy small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dashboard-header .app-user-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    min-width: 0;
}

.activity-access-label {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.25;
    max-width: 230px;
    overflow-wrap: anywhere;
}

.activity-access-label strong {
    color: var(--text-primary);
}

.profile-header-link {
    align-items: center;
    border-radius: 6px;
    color: var(--text-primary);
    display: inline-flex;
    padding: 0.15rem 0.3rem;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    white-space: nowrap;
}

.profile-header-link strong,
.profile-header-link i {
    color: inherit;
    transition: color 0.2s ease;
}

.profile-header-link:hover {
    background: rgba(0, 177, 81, 0.1);
    color: var(--primary-color);
}

.profile-header-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 177, 81, 0.18);
    color: var(--primary-color);
    outline: 0;
}

.activity-notification-btn {
    align-items: center;
    background: rgba(0, 177, 81, 0.08);
    border: 1px solid rgba(0, 177, 81, 0.25);
    border-radius: 10px;
    color: var(--primary-color);
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 1.05rem;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 42px;
}

.activity-notification-dropdown {
    flex: 0 0 auto;
}

.activity-notification-menu {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    max-width: calc(100vw - 1.5rem);
    overflow: hidden;
    padding: 0;
    width: 420px;
}

.activity-notification-menu-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0.9rem;
}

.activity-notification-menu-header>div {
    display: flex;
    flex-direction: column;
}

.activity-notification-menu-header strong {
    color: var(--text-primary);
    line-height: 1.2;
}

.activity-notification-menu-header small {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.activity-notification-list {
    display: grid;
    max-height: 430px;
    overflow-y: auto;
}

.activity-notification-item {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.8rem 0.9rem;
}

.activity-notification-item:last-child {
    border-bottom: 0;
}

.activity-notification-empty {
    color: var(--text-muted);
    font-size: 0.86rem;
    padding: 1.25rem 0.9rem;
    text-align: center;
}

.activity-notification-menu-footer {
    background: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.7rem 0.9rem;
    text-align: center;
}

.notification-history-link {
    font-size: 0.8rem;
    font-weight: 500;
}

.notification-mark-all-btn {
    overflow: hidden;
    position: relative;
}

.notification-mark-all-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    content: '';
    height: 100%;
    left: -100%;
    position: absolute;
    top: 0;
    transition: left 0.6s ease;
    width: 100%;
}

.notification-mark-all-btn:hover::before {
    left: 100%;
}

.activity-notification-btn:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(0, 177, 81, 0.24);
    color: #ffffff;
    transform: translateY(-2px);
}

.activity-notification-badge {
    align-items: center;
    background: #dc3545;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.63rem;
    font-weight: 800;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 0.25rem;
    position: absolute;
    right: -8px;
    top: -8px;
    z-index: 2;
}

.activity-logout-btn {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.activity-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(180px, 210px) minmax(0, 1fr);
}

.activity-sidebar-column,
.activity-content {
    min-width: 0;
}

.activity-sidebar {
    background:
        linear-gradient(145deg, rgba(0, 177, 81, 0.08), rgba(255, 255, 255, 0) 42%),
        #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: sticky;
    top: 1rem;
}

.activity-sidebar-heading {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1rem 0.7rem;
}

.activity-sidebar-heading strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.activity-sidebar-kicker {
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.activity-sidebar-nav {
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem;
}

.activity-sidebar-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    display: flex;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.activity-sidebar-link:hover {
    background: rgba(0, 177, 81, 0.07);
    border-color: rgba(0, 177, 81, 0.18);
    color: var(--primary-color);
    transform: translateX(3px);
}

.activity-sidebar-link.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 7px 18px rgba(0, 177, 81, 0.2);
    color: #ffffff;
}

.activity-sidebar-link>span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.activity-sidebar-link strong {
    color: inherit;
    font-size: 0.88rem;
}

.activity-sidebar-link small {
    color: inherit;
    font-size: 0.68rem;
    opacity: 0.78;
}

.activity-sidebar-icon {
    align-items: center;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 9px;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 0.9rem;
    height: 32px;
    justify-content: center;
}

.activity-sidebar-link.active .activity-sidebar-icon {
    background: rgba(255, 255, 255, 0.18);
}

.activity-sidebar-footer {
    align-items: center;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
    display: flex;
    font-size: 0.76rem;
    gap: 0.55rem;
    padding: 0.9rem 1.1rem;
}

.activity-notifications-card {
    scroll-margin-top: 1rem;
}

.app-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.app-card-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem 1.25rem;
}

.app-card-body {
    padding: 1.25rem;
}

.app-filter-card-body {
    padding: 0.85rem 1rem;
}

.app-filter-form-compact {
    align-items: end;
    display: grid;
    gap: 0.55rem;
}

.app-filter-form-compact.has-client {
    grid-template-columns: minmax(170px, 1.6fr) repeat(6, minmax(108px, 1fr)) auto;
}

.app-filter-form-compact.is-buyer {
    grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(128px, 1fr)) auto;
}

.app-filter-form-compact .form-label {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.05;
    margin-bottom: 0.25rem;
}

.app-filter-form-compact .form-control,
.app-filter-form-compact .form-select {
    min-height: 32px;
}

.form-select,
.select2-container,
.select2-dropdown,
.select2-search__field,
.select2-results__option {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 500;
}

select.form-select:not(.app-select2) {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
    background-color: var(--input-bg);
    border-color: var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    max-width: 100%;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select.form-select:not(.app-select2):not(:disabled):hover {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300b151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
    border-color: rgba(0, 177, 81, 0.7);
}

select.form-select:not(.app-select2):focus {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300b151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
    background-color: #ffffff;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(0, 177, 81, 0.12);
    color: var(--text-primary);
}

select.form-select:not(.app-select2):disabled {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
    background-color: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.8;
}

select.form-select:not(.app-select2).form-select-sm {
    background-position: right 0.6rem center;
    background-size: 14px 10px;
    border-radius: 7px;
    padding-right: 2rem;
}

select.form-select:not(.app-select2)[multiple],
select.form-select:not(.app-select2)[size]:not([size="1"]) {
    background-image: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.75rem;
}

.app-native-select {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 500;
    max-width: 100%;
    min-width: 0;
    position: relative;
    width: 100%;
}

.app-native-select-source {
    height: 100% !important;
    inset: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 100% !important;
}

.app-native-select-trigger,
.app-native-select-list {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    font: inherit;
    max-width: 100%;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    width: 100%;
}

.app-native-select-trigger {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    min-height: 38px;
    padding: 0.375rem 0.7rem 0.375rem 0.75rem;
    text-align: left;
}

.app-native-select.is-sm .app-native-select-trigger {
    font-size: 0.875rem;
    min-height: 32px;
    padding: 0.25rem 0.55rem 0.25rem 0.65rem;
}

.app-native-select-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-native-select-arrow {
    border-bottom: 2px solid #64748b;
    border-right: 2px solid #64748b;
    flex: 0 0 auto;
    height: 0.5rem;
    margin: -0.2rem 0.2rem 0 0;
    transform: rotate(45deg);
    transition: border-color 0.2s ease, transform 0.2s ease;
    width: 0.5rem;
}

.app-native-select:not(.is-disabled) .app-native-select-trigger:hover,
.app-native-select:not(.is-disabled) .app-native-select-list:hover {
    border-color: rgba(0, 177, 81, 0.7);
}

.app-native-select-trigger:focus-visible,
.app-native-select-list:focus-visible,
.app-native-select.is-open .app-native-select-trigger {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(0, 177, 81, 0.12);
    outline: 0;
}

.app-native-select:not(.is-disabled) .app-native-select-trigger:hover .app-native-select-arrow,
.app-native-select.is-open .app-native-select-arrow {
    border-color: var(--primary-color);
}

.app-native-select.is-open .app-native-select-arrow {
    margin-top: 0.2rem;
    transform: rotate(225deg);
}

.app-native-select.is-disabled .app-native-select-trigger,
.app-native-select.is-disabled .app-native-select-list {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.8;
}

.app-native-select.is-disabled .app-native-select-arrow {
    border-color: #94a3b8;
}

.app-native-select.is-invalid .app-native-select-trigger,
.app-native-select.is-invalid .app-native-select-list {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.app-native-select-menu {
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 500;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.3rem;
    position: fixed;
    z-index: 1090;
}

.app-native-select-menu[hidden] {
    display: none;
}

.app-native-select-list {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.3rem;
}

.app-native-select-option {
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.3;
    margin: 0.1rem 0;
    min-height: 2.25rem;
    padding: 0.55rem 0.65rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-native-select-option.is-selected {
    background: #edf9f2;
    color: #087436;
}

.app-native-select-option.is-active,
.app-native-select-option:not(.is-disabled):hover {
    background: var(--primary-color);
    color: #ffffff;
}

.app-native-select-option.is-disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.client-inline-row .app-native-select {
    min-width: 7.25rem;
}

.filter-actions {
    align-items: end;
    display: flex;
    gap: 0.45rem;
    max-width: 100%;
    min-width: 0;
}

.filter-actions .app-filter-btn {
    max-width: 100%;
    min-height: 32px;
    min-width: 82px;
    padding: 0.32rem 0.65rem;
}

.app-filter-toggle {
    gap: 0.4rem;
}

.app-filter-active-badge {
    background: #ffffff;
    color: var(--primary-color);
    min-width: 1.35rem;
}

.app-pagination {
    align-items: center;
    background: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.85rem 1rem;
}

.app-pagination-pages {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.app-pagination .btn-login.icon-action-btn::before {
    display: none;
}

.app-pagination .btn-login.icon-action-btn {
    box-shadow: none;
    margin-top: 0;
    width: 38px;
}

.select2-container--default .select2-selection--single {
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    display: flex;
    min-height: 38px;
    position: relative;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 1.35;
    overflow: hidden;
    padding-left: 0.75rem;
    padding-right: 3.35rem;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    align-items: center;
    background: #eef2f7;
    border-radius: 999px;
    color: var(--text-muted);
    display: inline-flex;
    float: none;
    font-size: 0.9rem;
    height: 1.2rem;
    justify-content: center;
    line-height: 1;
    margin: 0;
    position: absolute;
    right: 1.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    z-index: 2;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    min-height: 38px;
    right: 0.25rem;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(0, 177, 81, 0.12);
}

.select2-dropdown {
    border-color: var(--input-border);
}

.app-select2-multi-client+.select2-container {
    display: block;
    max-width: 100%;
}

.app-select2-multi-client+.select2-container--default .select2-selection--multiple {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    cursor: text;
    min-height: 44px;
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-select2-multi-client+.select2-container--default:not(.select2-container--disabled) .select2-selection--multiple:hover {
    border-color: rgba(0, 177, 81, 0.7);
}

.app-select2-multi-client+.select2-container--default.select2-container--focus .select2-selection--multiple,
.app-select2-multi-client+.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(0, 177, 81, 0.12);
}

.app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    min-height: 42px;
    padding: 0.35rem 0.4rem;
    width: 100%;
}

.app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__choice {
    align-items: center;
    background: #edf9f2;
    border: 1px solid rgba(0, 177, 81, 0.28);
    border-radius: 999px;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 0.9rem;
    line-height: 1.25;
    margin: 0;
    max-width: 100%;
    min-height: 28px;
    padding: 0.22rem 2rem 0.22rem 0.65rem;
    position: relative;
}

.app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    display: block;
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    align-items: center;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(0, 177, 81, 0.2);
    border-radius: 0 999px 999px 0;
    color: #087436;
    display: inline-flex;
    font-size: 1rem;
    height: 100%;
    justify-content: center;
    left: auto;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 1.65rem;
}

.app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background: rgba(0, 177, 81, 0.13);
    color: #005c2a;
}

.app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

.app-select2-multi-client+.select2-container--default .select2-search--inline {
    flex: 1 1 8rem;
    margin: 0;
    max-width: 100%;
}

.app-select2-multi-client+.select2-container--default .select2-search--inline .select2-search__field {
    color: var(--text-primary);
    font-size: 0.95rem;
    height: 30px;
    line-height: 30px;
    margin: 0;
    min-width: 7rem;
    padding: 0 0.3rem;
    width: 100% !important;
}

.app-select2-multi-client+.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.app-select2-multi-client+.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.8;
}

.app-select2-multi-client-dropdown.select2-dropdown {
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.app-select2-multi-client-dropdown .select2-results {
    background: #ffffff;
    padding: 0.3rem;
}

.app-select2-multi-client-dropdown .select2-results>.select2-results__options {
    max-height: 240px;
}

.app-select2-multi-client-dropdown .select2-results__option {
    border-radius: 6px;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0.1rem 0;
    padding: 0.55rem 0.65rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-select2-multi-client-dropdown .select2-results__option--selected {
    background: #edf9f2;
    color: #087436;
}

.app-select2-multi-client-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary-color);
    color: #ffffff;
}

.app-select2-multi-client-dropdown .select2-results__message {
    color: var(--text-muted);
    padding: 0.7rem;
    text-align: center;
}

.app-filter-form-compact .select2-container--default .select2-selection--single,
.app-filter-form-compact .select2-container--default .select2-selection--single .select2-selection__arrow {
    min-height: 32px;
}

.profile-avatar {
    align-items: center;
    background: var(--primary-gradient);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 177, 81, 0.2);
    color: #ffffff;
    display: flex;
    font-size: 1.7rem;
    font-weight: 700;
    height: 76px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 76px;
}

.profile-data-list {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.65rem;
    padding-top: 1rem;
}

.profile-data-list div {
    align-items: start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.profile-data-list span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.profile-data-list strong {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    text-align: right;
}

.dashboard-log-filter-form {
    align-items: end;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(112px, 0.7fr) minmax(112px, 0.7fr) minmax(104px, 0.65fr) minmax(136px, 0.95fr) minmax(124px, 0.85fr) auto;
}

.dashboard-log-filter-form .filter-field {
    min-width: 0;
}

.dashboard-log-filter-form .form-label {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.05;
    margin-bottom: 0.25rem;
}

.dashboard-log-filter-form .form-control,
.dashboard-log-filter-form .form-select {
    min-width: 0;
}

.dashboard-log-filter-form .filter-actions {
    flex-wrap: nowrap;
}

.dashboard-log-filter-form .filter-actions .app-filter-btn {
    min-width: 64px;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.dashboard-log-table-wrapper {
    max-height: 520px;
    overflow-y: auto;
}

.notification-list {
    display: grid;
}

.notification-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.9rem 1rem;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item.is-unread {
    background: rgba(0, 177, 81, 0.06);
}

.notification-title {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

.notification-body {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.35;
    margin-top: 0.3rem;
}

.notification-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.notification-actions .app-action-btn {
    min-height: 2.15rem;
    padding: 0.35rem 0.7rem;
    width: auto;
}

.notification-history-list {
    display: grid;
}

.notification-history-item {
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.notification-history-item:last-child {
    border-bottom: 0;
}

.notification-history-item.is-unread {
    background: #ffffff;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.notification-history-item.is-read {
    background: #f3f4f6;
}

.notification-history-item.is-read .notification-title,
.notification-history-item.is-read .notification-body,
.notification-history-item.is-read .notification-meta {
    opacity: 0.78;
}

.notification-history-content {
    min-width: 0;
}

.notification-history-actions {
    flex: 0 0 auto;
    margin-top: 0;
}

.flyer-feedback-modal-header {
    border-bottom: 0;
}

.flyer-feedback-success {
    background: var(--primary-color);
    color: #ffffff;
}

.flyer-feedback-warning {
    background: #ffc107;
    color: #ffffff;
}

.flyer-feedback-danger {
    background: #dc3545;
    color: #ffffff;
}

.flyer-feedback-info {
    background: var(--primary-color);
    color: #ffffff;
}

.flyer-feedback-modal-header .btn-close,
.modal-header.bg-danger .btn-close,
.modal-header.bg-success .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.app-modal-action-info,
.app-modal-action-success {
    background: var(--primary-gradient);
    border: 0;
    color: #ffffff;
}

.app-modal-action-warning {
    background: #ffc107;
    border: 0;
    color: #ffffff;
}

.app-modal-action-warning:hover {
    background: #ffc107 !important;
    color: #ffffff !important;
}

.app-modal-action-danger {
    background: #dc3545;
    border: 0;
    color: #ffffff;
}

.app-inline-notice {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    font-size: 0.92rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.app-inline-notice-info {
    background: rgba(13, 110, 253, 0.08);
    color: #084298;
}

.app-inline-notice-warning {
    background: rgba(255, 193, 7, 0.14);
    color: #664d03;
}

.client-inline-deadline {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.client-inline-deadline .form-control {
    max-width: 6.5rem;
}

.client-row-actions {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
}

.client-inline-actions {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    gap: 0.45rem;
    justify-content: center;
}

.client-inline-actions .icon-action-btn {
    height: 32px;
    min-height: 32px;
    min-width: 32px;
    width: 32px;
}

.badge-auth {
    background: rgba(0, 177, 81, 0.12);
    color: var(--primary-color);
}

.badge-auth-fail {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.badge-system {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.badge-flyer {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 1199.98px) {
    .dashboard-log-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-log-filter-form .filter-actions {
        grid-column: auto;
    }
}

.app-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-table td,
.app-table th {
    padding: 1rem 1rem;
    vertical-align: middle;
}

.app-action-btn,
.app-filter-btn,
.app-submit-btn {
    align-items: center;
    display: inline-flex;
    font-size: 0.95rem;
    justify-content: center;
    line-height: 1.35;
    margin-top: 0;
    min-height: 38px;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    box-shadow: none;
    width: auto;
}

/* I pulsanti per caricare (app-submit-btn) hanno l'effetto shine (lucidità) e il movimento verticale dell'header */
.btn-login.app-submit-btn::before,
.btn-login.app-action-btn::before,
.btn-login.app-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
    display: block !important;
}

.btn-login.app-submit-btn:hover::before,
.btn-login.app-action-btn:hover::before,
.btn-login.app-filter-btn:hover::before {
    left: 100%;
}

.btn-login.app-submit-btn:hover,
.btn-login.app-action-btn:hover,
.btn-login.app-filter-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 177, 81, 0.4) !important;
    color: #ffffff !important;
    background: var(--primary-gradient) !important;
}

/* Gli altri pulsanti (app-action-btn, app-filter-btn) non hanno effetto shine né traslazione verticale, ma mantengono lo stesso verde e testo bianco */
.app-filter-btn,
.app-submit-btn {
    min-width: 120px;
}

.app-submit-btn.is-loading {
    pointer-events: none;
}

.flyer-submit-spinner {
    margin-right: 0.45rem;
}

.icon-action-btn,
.row-action-btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 0;
    width: 38px;
}

.row-action-btn-text {
    gap: 0.35rem;
    min-width: 0;
    padding: 0 0.75rem;
    width: auto;
}

.icon-action-btn i,
.row-action-btn i {
    font-size: 1rem;
    line-height: 1;
}

.phone-fields {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 5.5rem minmax(0, 1fr);
}

.phone-prefix-input {
    text-align: center;
}

.role-badge {
    border-radius: 999px;
    font-weight: 600;
}

.role-badge-1 {
    background: rgba(0, 177, 81, 0.12);
    color: var(--primary-color);
}

.role-badge-2 {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.role-badge-3 {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.role-badge-4 {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.role-badge-unknown {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.status-badge-active {
    background: rgba(0, 177, 81, 0.12);
    color: var(--primary-color);
}

.status-badge-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.status-badge-inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.badge-success-brand {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.status-badge-expired {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

.flyer-render-box {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
    padding: 1rem;
}

.flyer-render-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    min-width: 0;
    max-width: 100%;
}

.flyer-composite-revision-form .flyer-render-list {
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.flyer-render-item {
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
    padding: 0.65rem;
}

.flyer-render-item.is-selectable {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flyer-render-item.is-selected {
    border-color: rgba(0, 177, 81, 0.65);
    box-shadow: inset 0 0 0 1px rgba(0, 177, 81, 0.35);
}

.flyer-render-item img {
    background: #f1f5f9;
    border-radius: 6px;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.flyer-composite-render-item {
    border-width: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.flyer-composite-revision-form .flyer-composite-render-item {
    padding-top: 3.15rem;
    position: relative;
}

.flyer-composite-revision-form .flyer-composite-render-item::before {
    background: var(--composite-status-color, #cbd5e1);
    border-radius: 0.45rem 0.45rem 0 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
    content: '';
    height: 0.42rem;
    inset: 0 0.05rem auto;
    position: absolute;
    z-index: 1;
}

.flyer-composite-revision-form .flyer-composite-render-item.is-status-approved {
    --composite-status-color: var(--primary-color);
}

.flyer-composite-revision-form .flyer-composite-render-item.is-status-revision_requested,
.flyer-composite-revision-form .flyer-composite-render-item.is-status-rejected {
    --composite-status-color: #dc2626;
}

.flyer-composite-revision-form .flyer-composite-render-item.is-status-pending_approval {
    --composite-status-color: #facc15;
}

.flyer-composite-revision-form .flyer-composite-render-item .flyer-page-number-stack {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    inset: 0.65rem 0.65rem auto;
    justify-content: space-between;
    justify-self: stretch;
    min-width: 0;
    pointer-events: none;
    position: absolute;
    width: auto;
    z-index: 2;
}

.flyer-composite-revision-form .flyer-composite-render-item .flyer-page-number {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #ffffff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.3);
    flex: 0 0 auto;
    font-size: 0.95rem;
    height: 2.1rem;
    width: 2.1rem;
}

.flyer-composite-revision-form .flyer-composite-render-item .flyer-page-version-badge {
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.3);
    flex: 0 0 auto;
    font-size: 0.78rem;
    max-width: 4.5rem;
    padding: 0.28rem 0.48rem;
}

@media (max-width: 575.98px) {
    .flyer-composite-revision-form .flyer-render-list {
        gap: 0.75rem;
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    }
}

.flyer-composite-render-item.is-status-approved {
    border-color: rgba(0, 177, 81, 0.72);
}

.flyer-composite-render-item.is-status-pending_approval {
    border-color: #facc15;
}

.flyer-composite-render-item.is-status-revision_requested,
.flyer-composite-render-item.is-status-rejected {
    border-color: #dc2626;
}

.flyer-composite-render-item.is-selected {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.flyer-composite-render-item.is-unselected {
    background: #e5e7eb;
    border-color: #cbd5e1;
}

.flyer-composite-render-item.is-unselected img {
    filter: grayscale(1);
    opacity: 0.52;
}

.flyer-render-selection {
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.82rem;
    gap: 0.4rem;
    line-height: 1.1;
}

.flyer-assignment-box {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.flyer-assignment-toolbar {
    display: grid;
    gap: 1rem;
}

.flyer-assignment-main {
    align-items: start;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
}

.flyer-assignment-transfer {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flyer-assignment-transfer-column {
    min-width: 0;
}

.flyer-assignment-transfer-column>.form-label {
    align-items: center;
    display: flex;
    min-height: 38px;
}

.flyer-assignment-selected-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    min-height: 38px;
}

.flyer-assignment-selection-reset {
    flex: 0 0 auto;
}

.flyer-assignment-search {
    margin-bottom: 0.5rem;
}

.flyer-assignment-selected-list {
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    height: 166px;
    overflow-y: auto;
    padding: 0.35rem;
}

.flyer-assignment-selected-empty {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex: 1;
    font-size: 0.88rem;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
}

.flyer-assignment-selected-item {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    font-weight: 600;
    gap: 0.55rem;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    text-align: left;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 100%;
}

.flyer-assignment-selected-item i {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.flyer-assignment-selected-item:hover,
.flyer-assignment-selected-item:focus-visible {
    background: rgba(0, 177, 81, 0.08);
    border-color: rgba(0, 177, 81, 0.28);
    color: #009640;
    outline: 0;
}

.flyer-assignment-selected-item:hover i,
.flyer-assignment-selected-item:focus-visible i {
    color: #009640;
    transform: translateX(-3px);
}

.flyer-assignment-actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 190px;
}

.flyer-assignment-actions>.form-label {
    align-items: center;
    display: flex;
    min-height: 38px;
}

.flyer-assignment-manual-section {
    align-items: center;
    border-top: 1px solid rgba(15, 23, 42, 0.14);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1rem;
}

.flyer-assignment-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.flyer-assignment-page-card {
    align-self: start;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.7rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flyer-assignment-page-card.is-assigned {
    border-color: rgba(0, 177, 81, 0.5);
    box-shadow: inset 0 0 0 1px rgba(0, 177, 81, 0.18);
}

.flyer-assignment-page-card.is-unassigned {
    border-color: rgba(185, 28, 28, 0.32);
}

.flyer-assignment-preview {
    align-items: flex-start;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1.8rem minmax(0, 1fr);
}

.flyer-assignment-preview img {
    background: #f1f5f9;
    border-radius: 6px;
    display: block;
    max-height: 150px;
    object-fit: contain;
    width: 100%;
}

.flyer-assignment-buyers {
    border: 0;
    display: grid;
    gap: 0.4rem;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.flyer-assignment-buyer-selector {
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: 9px;
    min-width: 0;
    overflow: hidden;
}

.flyer-assignment-buyer-selector[open] {
    border-color: rgba(0, 177, 81, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 177, 81, 0.09);
}

.flyer-assignment-buyer-summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    list-style: none;
    min-height: 48px;
    padding: 0.55rem 0.65rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.flyer-assignment-buyer-summary::-webkit-details-marker {
    display: none;
}

.flyer-assignment-buyer-summary:hover,
.flyer-assignment-buyer-summary:focus-visible {
    background: rgba(0, 177, 81, 0.07);
    outline: 0;
}

.flyer-assignment-buyer-summary-main {
    display: grid;
    line-height: 1.2;
    min-width: 0;
}

.flyer-assignment-buyer-summary-main strong,
.flyer-assignment-buyer-summary-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flyer-assignment-buyer-summary-main small {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

.flyer-assignment-buyer-summary-count {
    background: #e8f8ef;
    color: #087436;
    min-width: 1.7rem;
}

.flyer-assignment-buyer-summary-chevron {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.flyer-assignment-buyer-selector[open] .flyer-assignment-buyer-summary-chevron {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.flyer-assignment-buyer-panel {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.65rem;
}

.flyer-assignment-page-search {
    margin-bottom: 0.55rem;
}

.flyer-assignment-buyers.is-compact {
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-color: var(--primary-color) #e2e8f0;
    scrollbar-width: thin;
}

.flyer-assignment-page-search-empty {
    padding: 0.8rem 0.3rem 0.25rem;
    text-align: center;
}

.flyer-assignment-buyer-option {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.5rem;
}

.flyer-assignment-buyer-option:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 177, 81, 0.12);
}

.flyer-assignment-buyer-label {
    display: grid;
    line-height: 1.2;
    min-width: 0;
}

.flyer-assignment-buyer-label strong,
.flyer-assignment-buyer-label small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flyer-assignment-buyer-label small {
    color: var(--text-muted);
}

.flyer-view-container {
    max-width: 1800px;
}

.flyer-view-layout {
    align-items: flex-start;
}

.flyer-pages-navigation {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    min-width: 0;
}

.flyer-pages-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.6rem;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    padding-top: 0.35rem;
    scrollbar-color: var(--primary-color) #e2e8f0;
    scrollbar-width: thin;
}

.flyer-thumb-scroll-btn {
    align-items: center;
    background: rgba(0, 177, 81, 0.08);
    border: 1px solid rgba(0, 177, 81, 0.25);
    border-radius: 10px;
    color: var(--primary-color);
    display: inline-flex;
    flex: 0 0 2.65rem;
    font-size: 1.15rem;
    height: 2.65rem;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.flyer-thumb-scroll-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    content: '';
    height: 100%;
    left: -100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: left 0.6s ease;
    width: 100%;
}

.flyer-thumb-scroll-btn:hover:not(:disabled) {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(0, 177, 81, 0.24);
    color: #ffffff;
    transform: translateY(-2px);
}

.flyer-thumb-scroll-btn:hover:not(:disabled)::before {
    left: 100%;
}

.flyer-thumb-scroll-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 177, 81, 0.22);
    outline: 0;
}

.flyer-thumb-scroll-btn:disabled {
    cursor: default;
    opacity: 0.42;
}

.flyer-pages-panel::-webkit-scrollbar {
    height: 0.55rem;
}

.flyer-pages-panel::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}

.flyer-pages-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-color), #16a34a);
    border: 2px solid #e2e8f0;
    border-radius: 999px;
}

.flyer-pages-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #047857, var(--primary-color));
}

.flyer-preview-panel {
    align-self: flex-start;
}

.flyer-page-thumb-card {
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-left: 8px solid var(--input-border);
    border-radius: 8px;
    display: grid;
    flex: 0 0 150px;
    gap: 0.42rem;
    padding: 0.5rem;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 150px;
}

.flyer-page-thumb-card.is-status-to_request {
    border-left-color: #64748b;
}

.flyer-page-thumb-card.is-status-pending_approval {
    border-left-color: #facc15;
}

.flyer-page-thumb-card.is-status-approved,
.flyer-page-thumb-card.is-status-forced_closed {
    border-left-color: var(--primary-color);
}

.flyer-page-thumb-card.is-status-revision_requested,
.flyer-page-thumb-card.is-status-rejected {
    border-left-color: #dc2626;
}

.flyer-page-thumb-card.is-status-deleted {
    border-left-color: #6b7280;
}

.flyer-page-thumb-card.is-status-finalized {
    border-left-color: #047857;
}

.flyer-page-thumb-card.is-status-closed,
.flyer-page-thumb-card.is-status-failed {
    border-left-color: #64748b;
}

.flyer-page-thumb-card.active,
.flyer-page-thumb-card:focus-within {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), 0 10px 22px rgba(30, 64, 175, 0.18);
    transform: translateY(-1px);
}

.flyer-page-thumb-card.active.is-status-to_request,
.flyer-page-thumb-card:focus-within.is-status-to_request {
    border-left-color: #64748b;
}

.flyer-page-thumb-card.active.is-status-pending_approval,
.flyer-page-thumb-card:focus-within.is-status-pending_approval {
    border-left-color: #facc15;
}

.flyer-page-thumb-card.active.is-status-approved,
.flyer-page-thumb-card:focus-within.is-status-approved,
.flyer-page-thumb-card.active.is-status-forced_closed,
.flyer-page-thumb-card:focus-within.is-status-forced_closed {
    border-left-color: var(--primary-color);
}

.flyer-page-thumb-card.active.is-status-revision_requested,
.flyer-page-thumb-card:focus-within.is-status-revision_requested,
.flyer-page-thumb-card.active.is-status-rejected,
.flyer-page-thumb-card:focus-within.is-status-rejected {
    border-left-color: #dc2626;
}

.flyer-page-thumb-card.active.is-status-deleted,
.flyer-page-thumb-card:focus-within.is-status-deleted {
    border-left-color: #6b7280;
}

.flyer-page-thumb-card.is-disabled,
.flyer-page-thumb-card.is-locked {
    background: #f8fafc;
}

.flyer-page-thumb-card.is-disabled .flyer-page-select {
    color: #94a3b8;
}

.flyer-page-thumb-card.is-selected {
    border-color: rgba(0, 177, 81, 0.65);
    box-shadow: inset 0 0 0 1px rgba(0, 177, 81, 0.35);
}

.flyer-page-annotation-count {
    align-items: center;
    background: #b91c1c;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    height: 1.5rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.5rem;
    padding: 0 0.32rem;
    position: absolute;
    right: 0.32rem;
    top: 0.32rem;
    z-index: 2;
}

.flyer-page-annotation-count.is-ready-to-send {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 177, 81, 0.28);
}

.flyer-page-preview-btn {
    align-items: flex-start;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 2rem minmax(0, 1fr);
    padding: 0;
    text-align: left;
    width: 100%;
}

.flyer-page-preview-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.flyer-page-number {
    align-items: center;
    background: rgba(0, 177, 81, 0.1);
    border-radius: 999px;
    color: var(--primary-color);
    display: inline-flex;
    font-weight: 700;
    height: 1.8rem;
    justify-content: center;
    line-height: 1;
    width: 1.8rem;
}

.flyer-page-number-stack {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    justify-self: center;
    min-width: 2rem;
}

.flyer-page-version-badge {
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1;
    max-width: 2.4rem;
    overflow: hidden;
    padding: 0.18rem 0.34rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flyer-page-preview-btn img,
.flyer-preview-img {
    background: #f8fafc;
    border-radius: 6px;
    display: block;
    width: 100%;
}

.flyer-page-preview-btn img {
    max-height: 90px;
    object-fit: contain;
}

.flyer-page-meta {
    align-items: flex-start;
    display: grid;
    gap: 0.32rem;
}

.flyer-page-select {
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.85rem;
    gap: 0.4rem;
    line-height: 1.1;
}

.flyer-thumb-pagination {
    align-items: center;
    border-top: 1px solid var(--input-border);
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 0.1rem;
    padding-top: 0.65rem;
}

.flyer-thumb-page-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 4.4rem;
    text-align: center;
}

.flyer-page-status-to-request {
    background: #e2e8f0;
    color: #334155;
}

.flyer-page-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.flyer-page-status-approved {
    background: rgba(0, 177, 81, 0.14);
    color: #047857;
}

.flyer-page-status-revision {
    background: #fee2e2;
    color: #b91c1c;
}

.flyer-page-status-deleted {
    background: #e5e7eb;
    color: #4b5563;
}

.flyer-page-thumb-card.is-deleted {
    background: #f3f4f6;
}

.flyer-page-thumb-card.is-deleted img {
    filter: grayscale(1);
    opacity: 0.58;
}

.flyer-page-status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.flyer-review-deadline {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    min-height: 1.65rem;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
}

.flyer-review-deadline.is-urgent {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.dashboard-review-status-trigger {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.dashboard-review-status-trigger.app-action-btn {
    border: 1px solid var(--input-border);
}

.modal.flyer-modal-over-fullscreen {
    z-index: 1105;
}

.modal-backdrop.flyer-backdrop-over-fullscreen {
    z-index: 1100;
}

.flyer-preview-toolbar {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.flyer-preview-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flyer-preview-status {
    --bs-badge-font-size: 0.65em;
}

.flyer-page-meta .badge {
    --bs-badge-font-size: 0.65rem;
}

.flyer-version-controls {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
}

.flyer-version-label {
    min-width: 2.4rem;
    text-align: center;
}

.flyer-delivery-meta {
    display: inline-flex;
    line-height: 1.2;
}

.flyer-toolbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-left: auto;
}

.flyer-toolbar-actions form {
    margin: 0;
}

.app-action-btn.is-soft-disabled,
.icon-action-btn.is-soft-disabled {
    opacity: 0.72;
}

.flyer-pins-toggle {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.flyer-pins-toggle:hover {
    transform: translateY(-1px);
}

.flyer-pins-toggle[aria-pressed="true"] {
    background: #f1f5f9;
    color: #64748b;
}

.flyer-pins-toggle i {
    transition: transform 0.22s ease;
}

.flyer-pins-toggle[aria-pressed="true"] i {
    transform: rotate(-16deg) scale(0.92);
}

.flyer-send-controls {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.flyer-buyer-select {
    min-height: 2.35rem;
    min-width: 220px;
}

.flyer-send-controls .select2-container {
    flex: 0 1 260px;
    min-width: 220px;
}

.flyer-send-btn.is-soft-disabled {
    opacity: 0.72;
}

.flyer-approve-form {
    margin: 0;
}

.flyer-preview-frame {
    align-items: flex-start;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    display: flex;
    height: auto;
    justify-content: center;
    min-height: 0;
    overflow: visible;
    padding: 1rem;
    position: relative;
}

.flyer-preview-loading {
    align-items: center;
    background: #f1f5f9;
    border-radius: 6px;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    inset: 1rem;
    justify-content: center;
    min-height: 12rem;
    position: absolute;
    text-align: center;
    z-index: 5;
}

.flyer-preview-loading[hidden] {
    display: none;
}

.flyer-preview-loading-spinner {
    height: 2.25rem;
    width: 2.25rem;
}

.flyer-preview-loading-message {
    color: #334155;
    font-weight: 600;
    line-height: 1.35;
}

.flyer-preview-loading.is-error {
    color: #b42318;
}

.flyer-preview-loading-error-icon {
    font-size: 2rem;
    line-height: 1;
}

.flyer-preview-frame.is-preview-loading .flyer-annotation-stage,
.flyer-preview-frame.has-preview-error .flyer-annotation-stage {
    visibility: hidden;
}

.flyer-page-nav-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.16);
    color: #111827;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 2.75rem;
    z-index: 6;
}

.flyer-page-prev-btn {
    left: 0.5rem;
}

.flyer-page-next-btn {
    right: 0.5rem;
}

.flyer-page-nav-btn:hover:not(:disabled),
.flyer-page-nav-btn:focus-visible:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.flyer-page-nav-btn:disabled {
    opacity: 0.3;
}

.flyer-preview-img {
    height: auto;
    max-height: 500px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.flyer-annotation-help {
    margin-bottom: 0.75rem;
}

.flyer-annotation-stage {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    position: relative;
}

@media (min-width: 992px) {
    .flyer-annotation-stage {
        max-width: 70%;
    }
}

.flyer-annotation-stage[data-can-annotate="1"] {
    cursor: crosshair;
}

.flyer-annotation-pins {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.flyer-annotation-pins.is-hidden {
    display: none;
}

.flyer-note-pin {
    align-items: center;
    background: var(--primary-gradient);
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.25);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    pointer-events: auto;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 1.75rem;
}

.flyer-note-pin.is-saved {
    background: #b91c1c;
}

.flyer-review-panel {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
}

.flyer-review-panel[hidden] {
    display: none;
}

.flyer-review-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.flyer-general-review-list,
.flyer-note-list,
.flyer-existing-annotation-list,
.flyer-note-history-list,
.flyer-note-history-annotations {
    display: grid;
    gap: 0.65rem;
}

.flyer-marketing-note-filter-list {
    display: grid;
    gap: 1rem;
}

.flyer-marketing-note-filter-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.flyer-marketing-note-group {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 1rem;
    padding-top: 1rem;
}

.flyer-marketing-note-item {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
}

.flyer-marketing-note-row {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem;
}

.flyer-marketing-note-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.flyer-marketing-note-content {
    flex: 1 1 auto;
    min-width: 0;
}

.flyer-marketing-note-actions {
    flex: 0 0 auto;
    display: grid;
    gap: 0.45rem;
    min-width: 8.5rem;
}

.flyer-marketing-note-actions .app-action-btn {
    width: 100%;
    justify-content: center;
}

.flyer-marketing-note-row+.flyer-marketing-note-row,
.flyer-marketing-note-item+.flyer-marketing-note-item,
.flyer-marketing-note-item+.flyer-marketing-note-row,
.flyer-marketing-note-row+.flyer-marketing-note-item {
    margin-top: 0.65rem;
}

.flyer-marketing-note-row.is-hidden-note {
    background: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.26);
    color: #475569;
}

.flyer-existing-note-row.is-marketing-hidden-note {
    background: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.28);
}

.flyer-note-marketing-state-thread {
    align-items: center;
    border-top: 1px solid rgba(100, 116, 139, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
}

@media (max-width: 575.98px) {
    .flyer-marketing-note-main {
        flex-direction: column;
    }

    .flyer-marketing-note-item {
        flex-direction: column;
    }

    .flyer-marketing-note-actions {
        width: 100%;
    }
}

.flyer-general-review-item,
.flyer-existing-note-row,
.flyer-note-row,
.flyer-note-history-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 0.65rem;
}

.flyer-existing-note-row {
    cursor: pointer;
}

.flyer-note-history-item {
    padding: 0;
}

.flyer-note-history-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    display: flex;
    gap: 0.55rem;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    text-align: left;
    width: 100%;
}

.flyer-note-history-toggle i {
    color: var(--text-muted);
    transition: transform 0.18s ease;
}

.flyer-note-history-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.flyer-note-history-toggle:focus-visible {
    border-radius: 8px;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.flyer-note-history-body {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    padding: 0 0.85rem;
    transition: grid-template-rows 0.24s ease, opacity 0.18s ease, padding 0.24s ease;
}

.flyer-note-history-body.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 0.75rem 0.85rem;
}

.flyer-note-history-body-inner {
    min-height: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {

    .flyer-note-history-body,
    .flyer-note-history-toggle i {
        transition: none;
    }
}

.flyer-note-text {
    white-space: pre-wrap;
}

.flyer-note-link {
    border-radius: 6px;
    color: var(--text-primary);
    display: inline;
    font-weight: 600;
    overflow-wrap: anywhere;
    padding: 0.05rem 0.18rem;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.flyer-note-link:hover {
    background: rgba(0, 177, 81, 0.1);
    color: var(--primary-color);
}

.flyer-note-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 177, 81, 0.18);
    color: var(--primary-color);
    outline: 0;
}

.flyer-note-row {
    align-items: start;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 2rem minmax(0, 1fr) 38px;
}

.flyer-note-row .flyer-page-number {
    margin-top: 0.15rem;
}

.flyer-note-row textarea {
    min-height: 38px;
    resize: vertical;
}

.flyer-note-row-attachment,
.flyer-note-attachment-actions,
.flyer-note-response-actions,
.flyer-note-response-thread {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.flyer-note-row-attachment {
    grid-column: 2 / 4;
}

.flyer-note-response-thread {
    align-items: flex-start;
    background: #f8fafc;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    display: grid;
    margin-top: 0.55rem;
    padding: 0.55rem 0.65rem;
}

.flyer-attachment-preview-img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 70vh;
    max-width: 100%;
}

.flyer-note-focus-btn {
    border: 0;
    padding: 0;
}

.flyer-note-focus-btn:focus-visible,
.flyer-note-pin:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.flyer-fullscreen-body {
    background: #000000;
    min-height: calc(100vh - 58px);
    overflow: hidden;
    padding: 0;
    position: relative;
}

.flyer-fullscreen-stage {
    align-items: center;
    cursor: grab;
    display: flex;
    height: 100%;
    justify-content: center;
    min-height: calc(100vh - 58px);
    overflow: hidden;
    touch-action: none;
    user-select: none;
    width: 100%;
}

.flyer-fullscreen-canvas {
    display: inline-flex;
    line-height: 0;
    position: relative;
    transform-origin: center center;
    transition: transform 120ms ease;
    will-change: transform;
}

.flyer-fullscreen-stage.is-dragging {
    cursor: grabbing;
}

.flyer-fullscreen-stage.is-dragging .flyer-fullscreen-canvas {
    transition: none;
}

.flyer-fullscreen-img {
    max-height: 92vh;
    max-width: 92vw;
}

.flyer-fullscreen-annotation-pins {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.flyer-fullscreen-annotation-pins.is-hidden {
    display: none;
}

.flyer-fullscreen-controls {
    display: grid;
    gap: 0.45rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.flyer-fullscreen-controls .icon-action-btn {
    background: #ffffff;
}

.flyer-fullscreen-controls .icon-action-btn:hover,
.flyer-fullscreen-controls .icon-action-btn:focus-visible {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
}

.flyer-fullscreen-controls .icon-action-btn:hover i,
.flyer-fullscreen-controls .icon-action-btn:focus-visible i {
    color: #ffffff;
    font-weight: 700;
}

.flyer-fullscreen-note-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    bottom: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
    left: 1rem;
    max-height: min(42vh, 360px);
    overflow: auto;
    padding: 1rem;
    position: absolute;
    width: min(430px, calc(100% - 2rem));
    z-index: 3;
}

.flyer-fullscreen-note-panel[hidden] {
    display: none;
}

.flyer-fullscreen-note-list {
    display: grid;
    gap: 0.65rem;
}

.flyer-fullscreen-note-row {
    align-items: start;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 2rem minmax(0, 1fr) 38px;
    padding: 0.65rem;
}

.flyer-fullscreen-note-row textarea {
    min-height: 70px;
    resize: vertical;
}

.flyer-fullscreen-note-readonly {
    grid-column: 2 / -1;
}

.flyer-note-pin.is-focused,
.flyer-existing-note-row.is-focused,
.flyer-note-row.is-focused,
.flyer-fullscreen-note-row.is-focused {
    animation: flyer-annotation-focus 0.75s ease;
    border-color: rgba(0, 177, 81, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 177, 81, 0.14);
}

.flyer-note-pin.is-focused {
    transform: translate(-50%, -50%) scale(1.14);
}

@keyframes flyer-annotation-focus {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 177, 81, 0.28);
    }

    100% {
        box-shadow: 0 0 0 4px rgba(0, 177, 81, 0.14);
    }
}

.flyer-annotation-hidden-inputs {
    display: none;
}

.flyer-revision-upload-form {
    margin: 0;
}

.flyer-revision-page-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.flyer-revision-page-option {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.55rem;
    padding: 0.65rem;
}

.flyer-revision-page-option span {
    display: grid;
    gap: 0.1rem;
}

.flyer-revision-page-option small {
    color: var(--text-muted);
}

@media (max-width: 767.98px) {
    .app-container {
        padding: 1rem;
    }

    .app-topbar {
        align-items: stretch;
    }

    .app-brand,
    .app-main-nav,
    .app-user-nav {
        justify-content: stretch;
        width: 100%;
    }

    .app-main-nav,
    .app-user-nav {
        flex-wrap: wrap;
    }

    .app-header {
        align-items: stretch;
    }

    .app-header>div {
        width: 100%;
    }

    .app-action-btn,
    .app-filter-btn,
    .app-submit-btn,
    .app-nav-link {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 1599.98px) {

    .app-filter-form-compact.has-client,
    .app-filter-form-compact.is-buyer {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {

    .app-filter-form-compact.has-client,
    .app-filter-form-compact.is-buyer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .dashboard-log-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-log-filter-form .filter-actions {
        grid-column: auto;
    }

    .flyer-pages-panel {
        flex-direction: row;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        padding-right: 0.35rem;
    }

    .flyer-page-thumb-card {
        flex: 0 0 140px;
    }

    .flyer-preview-frame {
        height: auto;
        min-height: 0;
    }

    .flyer-preview-img {
        width: 100%;
    }

    .flyer-preview-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .flyer-toolbar-actions {
        justify-content: flex-end;
        margin-left: 0;
        width: 100%;
    }

    .flyer-send-controls {
        justify-content: flex-start;
    }

    .flyer-buyer-select {
        min-width: min(100%, 260px);
    }

    .flyer-assignment-toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .flyer-assignment-main {
        grid-template-columns: 1fr;
    }

    .flyer-assignment-transfer {
        grid-template-columns: 1fr;
    }

    .flyer-assignment-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .flyer-assignment-actions>.form-label {
        flex: 0 0 100%;
    }

    .flyer-assignment-actions .app-action-btn {
        flex: 1 1 170px;
    }

    .flyer-assignment-manual-section {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {

    .app-filter-form-compact.has-client,
    .app-filter-form-compact.is-buyer {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-column: auto;
        width: 100%;
    }

    .dashboard-log-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-log-filter-form .filter-actions {
        grid-column: auto;
        gap: 0.3rem;
    }

    .dashboard-log-filter-form .form-label {
        font-size: 0.7rem;
    }

    .dashboard-log-filter-form .form-control,
    .dashboard-log-filter-form .form-select,
    .dashboard-log-filter-form .app-native-select-trigger {
        font-size: 0.78rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .dashboard-log-filter-form .filter-actions .app-filter-btn {
        font-size: 0.78rem;
        min-width: 0;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .filter-actions .app-filter-btn {
        min-width: 0;
        width: 100%;
    }

    .app-brand {
        gap: 0.5rem;
    }

    .app-logo {
        height: auto;
        max-width: 100%;
    }

    .app-brand h1 {
        width: 100%;
    }

    .icon-action-btn {
        height: 42px;
        min-height: 42px;
        min-width: 42px;
        width: 42px;
    }

    .phone-fields {
        gap: 0.5rem;
        grid-template-columns: 4.75rem minmax(0, 1fr);
    }

    .app-select2-multi-client+.select2-container--default .select2-selection--multiple {
        min-height: 46px;
    }

    .app-select2-multi-client+.select2-container--default .select2-selection--multiple .select2-selection__rendered {
        min-height: 44px;
        padding: 0.4rem;
    }

    .app-select2-multi-client-dropdown .select2-results__option {
        padding: 0.65rem;
    }

    .app-native-select-option {
        padding: 0.65rem;
    }

    .flyer-note-row {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .flyer-note-row .icon-action-btn {
        grid-column: 2;
        justify-self: end;
    }

    .flyer-note-row-attachment {
        grid-column: 1 / -1;
    }

    .flyer-assignment-list {
        grid-template-columns: 1fr;
    }

    .flyer-assignment-preview img {
        max-height: 130px;
    }

    .flyer-assignment-actions .app-action-btn {
        flex-basis: 100%;
    }
}

/* Flyer information history */
.flyer-info-dialog {
    max-width: 1080px;
}

.flyer-info-modal-content {
    border-radius: 18px;
    overflow: hidden;
}

.flyer-info-modal-body {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.flyer-info-state-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
    min-height: 190px;
    padding: 2rem;
}

.flyer-info-state-card strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.flyer-info-state-icon {
    align-items: center;
    background: rgba(0, 177, 81, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 1.25rem;
    height: 46px;
    justify-content: center;
    margin-bottom: 0.35rem;
    width: 46px;
}

.flyer-info-overview {
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 177, 81, 0.1), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(0, 177, 81, 0.16);
    border-radius: 14px;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
}

.flyer-info-eyebrow {
    align-items: center;
    color: #008b40;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.4rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.flyer-info-overview h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.2rem 0 0;
}

.flyer-info-overview p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

.flyer-info-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.flyer-info-summary-chip {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
}

.flyer-info-table-shell {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow-x: auto;
    overflow-y: hidden;
}

.flyer-info-table thead th {
    background: #f1f5f9;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
    color: #475569;
    padding-bottom: 0.8rem;
    padding-top: 0.8rem;
}

.flyer-info-event-row {
    --flyer-info-accent: #94a3b8;
    transition: background-color 0.2s ease;
}

.flyer-info-event-row:hover > td {
    background: rgba(248, 250, 252, 0.9);
}

.flyer-info-event-row > td:first-child {
    box-shadow: inset 4px 0 0 var(--flyer-info-accent);
}

.flyer-info-event-success {
    --flyer-info-accent: #00a349;
}

.flyer-info-event-warning {
    --flyer-info-accent: #d97706;
}

.flyer-info-event-danger {
    --flyer-info-accent: #dc2626;
}

.flyer-info-date-cell {
    color: #334155;
    min-width: 125px;
}

.flyer-info-date {
    display: block;
    font-weight: 650;
}

.flyer-info-time {
    color: var(--text-muted);
    display: block;
    font-size: 0.8rem;
}

.flyer-info-author-cell {
    color: #334155;
    min-width: 150px;
    white-space: nowrap;
}

.flyer-info-author-icon {
    align-items: center;
    background: rgba(0, 177, 81, 0.1);
    border-radius: 50%;
    color: #008b40;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    margin-right: 0.55rem;
    vertical-align: middle;
    width: 30px;
}

.flyer-info-author-cell strong {
    vertical-align: middle;
}

.flyer-info-action-badge {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.4rem;
    line-height: 1.2;
    padding: 0.42rem 0.65rem;
}

.flyer-info-action-badge.is-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #047837;
}

.flyer-info-action-badge.is-warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #a25307;
}

.flyer-info-action-badge.is-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.flyer-info-action-badge.is-neutral {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.flyer-info-version-badge {
    background: rgba(0, 177, 81, 0.09);
    border: 1px solid rgba(0, 177, 81, 0.22);
    border-radius: 999px;
    color: #007f39;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    justify-content: center;
    min-width: 42px;
    padding: 0.35rem 0.6rem;
}

.flyer-info-details-cell {
    color: #475569;
    min-width: 260px;
}

.flyer-info-details-cell p {
    line-height: 1.4;
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 767.98px) {
    .flyer-info-dialog {
        margin: 0.75rem;
        max-width: none;
    }

    .flyer-info-modal-body {
        padding: 1rem !important;
    }

    .flyer-info-overview {
        align-items: flex-start;
        flex-direction: column;
    }

    .flyer-info-summary {
        justify-content: flex-start;
    }

    .flyer-info-table-shell {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .flyer-info-table thead {
        display: none;
    }

    .flyer-info-table,
    .flyer-info-table tbody,
    .flyer-info-table tr,
    .flyer-info-table td {
        display: block;
        width: 100%;
    }

    .flyer-info-event-row {
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.09);
        border-radius: 12px;
        box-shadow: inset 4px 0 0 var(--flyer-info-accent), 0 6px 18px rgba(15, 23, 42, 0.05);
        margin-bottom: 0.75rem;
        overflow: hidden;
        padding: 0.45rem 0;
    }

    .flyer-info-event-row > td,
    .flyer-info-date-cell,
    .flyer-info-author-cell {
        align-items: center;
        box-shadow: none !important;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        min-width: 0;
        padding: 0.55rem 0.8rem;
    }

    .flyer-info-author-icon {
        margin-right: 0;
    }

    .flyer-info-event-row > td::before {
        color: var(--text-muted);
        content: attr(data-label);
        flex: 0 0 78px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .flyer-info-details-cell p {
        flex: 1 1 auto;
    }
}

/* Revision Panel Styles */
.flyer-revision-panel-trigger,
.notification-history-link {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transition: all 0.25s ease;
}

.flyer-revision-panel-trigger:hover,
.flyer-revision-panel-trigger:focus,
.flyer-revision-panel-trigger:active,
.notification-history-link:hover,
.notification-history-link:focus,
.notification-history-link:active {
    background: var(--primary-gradient) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

#flyerRevisionPanelTitle {
    color: #ffffff !important;
}

/* Disattiva l'occhio di rivelazione password nativo dei browser (es. Edge, IE) */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

/* Danger button premium shine hover styles */
.btn-danger,
.btn-outline-danger,
.app-modal-action-danger {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-danger::before,
.btn-outline-danger::before,
.app-modal-action-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
}

.btn-danger:hover::before,
.btn-outline-danger:hover::before,
.app-modal-action-danger:hover::before {
    left: 100%;
}

.btn-danger:hover,
.btn-outline-danger:hover,
.app-modal-action-danger:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
    color: #ffffff !important;
}

/* Success, info, warning and outline primary action button premium shine hover styles */
.app-modal-action-success,
.app-modal-action-info,
.app-modal-action-warning,
.btn-outline-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-modal-action-success::before,
.app-modal-action-info::before,
.app-modal-action-warning::before,
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
}

.app-modal-action-success:hover::before,
.app-modal-action-info:hover::before,
.app-modal-action-warning:hover::before,
.btn-outline-primary:hover::before {
    left: 100%;
}

.app-modal-action-success:hover,
.app-modal-action-info:hover {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 12px rgba(0, 177, 81, 0.3) !important;
    color: #ffffff !important;
}

.app-modal-action-warning:hover {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
    color: #ffffff !important;
}

/* Customize Bootstrap's btn-outline-primary to use brand green #00b151 */
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 177, 81, 0.3) !important;
    color: #ffffff !important;
}

@media (max-width: 1999.98px) {
    .activity-access-label {
        align-items: flex-start;
        display: inline-flex;
        flex-direction: column;
        max-width: none;
    }
}

@media (max-width: 1199.98px) {
    .app-topbar.dashboard-header {
        gap: 1rem;
    }

    .dashboard-logo {
        max-height: 70px;
        max-width: 260px;
    }

    .activity-layout {
        gap: 1rem;
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .activity-sidebar-link small {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .app-topbar.dashboard-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard-brand {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }

    .dashboard-brand-copy {
        justify-self: start;
        text-align: left;
    }

    .dashboard-header .app-user-nav {
        border-top: 0;
        grid-column: 2;
        justify-content: flex-end;
        padding-top: 0;
    }

    .activity-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .activity-sidebar {
        position: static;
    }

    .activity-sidebar-heading {
        display: none;
    }

    .activity-sidebar-nav {
        gap: 0.5rem;
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
        padding: 0.5rem;
    }

    .activity-sidebar-link {
        justify-content: center;
    }

    .activity-sidebar-link:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 767.98px) {
    .app-topbar.dashboard-header {
        display: grid;
        gap: 0.85rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-brand {
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        justify-content: center;
        padding-bottom: 0.85rem;
        width: 100%;
    }

    .dashboard-brand-copy {
        justify-self: center;
        text-align: center;
        width: 100%;
    }

    .dashboard-header .app-user-nav {
        border-top: 0;
        grid-column: auto;
        justify-content: center;
        padding-top: 0;
        width: 100%;
    }

    .activity-access-label {
        align-items: center;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .activity-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .app-topbar.dashboard-header {
        padding: 0.85rem;
    }

    .dashboard-logo {
        max-height: 64px;
        max-width: 235px;
    }

    .dashboard-brand-copy h1 {
        font-size: 1.25rem;
    }

    .activity-access-label {
        align-items: center;
        max-width: none;
        text-align: center;
    }

    .activity-logout-btn {
        flex: 0 0 auto;
        justify-content: center;
    }

    .activity-notification-btn {
        margin-bottom: 0.15rem;
    }

    .activity-notification-menu {
        width: calc(100vw - 1.5rem);
    }

    .notification-history-item {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-history-actions {
        justify-content: flex-end;
    }

    .activity-sidebar-nav {
        gap: 0.35rem;
        grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
        padding: 0.4rem;
    }

    .activity-sidebar-link {
        gap: 0.35rem;
        padding: 0.5rem 0.3rem;
    }

    .activity-sidebar-link strong {
        font-size: 0.78rem;
    }

    .activity-sidebar-icon {
        flex-basis: 30px;
        height: 30px;
    }
}

/* Premium shine/gloss hover effect for notification button and active sidebar menu item */
.activity-notification-btn,
.activity-sidebar-link.active {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-notification-btn {
    overflow: visible;
}

.activity-notification-btn::before,
.activity-sidebar-link.active::before {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
}

.activity-notification-btn:hover::before,
.activity-sidebar-link.active:hover::before {
    left: 100%;
}

.dashboard-graphic-queues {
    display: flex;
    flex-direction: column;
}

.dashboard-graphic-modify {
    order: 1;
}

.dashboard-graphic-filter {
    order: 2;
}

.dashboard-graphic-review {
    order: 3;
}

.dashboard-graphic-marketing-ready {
    order: 4;
}
