:root {
    --bg-image: url('http://staff.riseupradio.co.uk/includes/assets/bg.jpg');
    --container-bg: #1B3A3F;
    --text-color: #B6B4B5;
    --primary: #486F89;
    --primary-label: #171D21;
    --outline: #486F89;
    --shadow: rgba(23, 29, 33, 0.6);
    --danger: #E53935;
    --success: #43A047;
    --warning: #FB8C00;
    --font-main: 'Inter', sans-serif;
    --table-border: #485E6C;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: var(--font-main);
    background: var(--bg-image) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

.main-content {
    margin-left: 270px;
    padding: 20px;
    overflow: hidden;
}

.innercontainer {
    overflow: visible;
    min-height: 700px;
}

.container {
    max-width: 1200px;
    min-height: 700px;
    margin: 20px auto;
    background: rgba(27, 58, 63, 0.9);
    padding: 20px;
    border-radius: 8px;
    color: var(--text-color);
}

.box {
    background: var(--container-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

button,
.editButton,
.solid-btn,
.sync-button,
a.sync-button {
    background: var(--primary);
    color: var(--primary-label);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 6px var(--shadow);
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

button:hover,
.editButton:hover,
.solid-btn:hover,
.sync-button:hover,
a.sync-button:hover {
    background: #485E6C;
    box-shadow: 0 0 12px #486F89;
}

.outline-btn {
    background: transparent;
    border: 2px solid var(--outline);
    color: var(--outline);
    padding: 8px 14px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.outline-btn:hover {
    background: var(--outline);
    color: var(--primary-label);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
    text-transform: capitalize;
    box-shadow: 0 0 5px var(--shadow);
}

.status-green {
    background: var(--success);
    color: #fff;
}

.status-brown {
    background: #8D6E63;
    color: #fff;
}

.status-red {
    background: var(--danger);
    color: #fff;
}

.status-white {
    background: #B6B4B5;
    color: #171D21;
}

.status-default {
    background: #485E6C;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 29, 33, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--container-bg);
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    color: var(--text-color);
    box-shadow: 0 0 10px var(--shadow);
}

.modal-content .close,
.modal-close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
}

.modal-content .close:hover,
.modal-close:hover {
    color: #B6B4B5;
}

header {
    background: rgba(23, 29, 33, 0.85);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary);
}

header img {
    max-height: 295px;
    width: 225px;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.title {
    text-align: center;
}

.song-table th a {
    color: var(--text-color);
    text-decoration: none;
}

.song-table th a:hover {
    text-decoration: underline;
}

.song-table tbody tr:nth-child(odd) {
    background-color: #1B3A3F;
}

.song-table tbody tr:nth-child(even) {
    background-color: #485E6C;
}

.song-table tbody tr:hover {
    background-color: #486F89;
}

.song-table thead th {
    background-color: var(--primary);
    color: var(--text-color);
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    padding: 12px;
}

.pagination select {
    background: #1B3A3F;
    color: var(--text-color);
    border: 1px solid #485E6C;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 14px;
}

.styled-table {
    margin: 0 auto;
    width: 80%;
}

nav {
    background: rgba(23, 29, 33, 0.9);
    padding: 12px 30px;
    border-top: 1px solid #171D21;
    border-bottom: 1px solid #171D21;
    position: relative;
    overflow: visible;
}

.invoice-container {
    background: var(--container-bg);
    padding: 40px;
    box-shadow: 0 0 20px var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    color: var(--text-color);
    font-family: var(--font-main);
}

nav ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--primary-label);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 5px;
}

nav ul li a:hover {
    background: var(--primary);
    color: var(--text-color);
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #171D21;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li a {
    padding: 10px;
    display: block;
}

nav ul li ul li a:hover {
    background: #486F89;
}

footer {
    background: #1B3A3F;
    color: #B6B4B5;
    text-align: center;
    padding: 10px 20px;
    border-top: 1px solid #485E6C;
}

.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: var(--text-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1B3A3F;
    box-shadow: 0 0 5px var(--shadow);
    border-radius: 6px;
    margin-top: 8px;
    min-width: 160px;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: var(--text-color);
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #485E6C;
}

.notif-icon:hover #notif-preview-box,
#notif-preview-box:hover {
    display: block !important;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--primary);
    color: var(--primary-label);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.nav-form,
.filter-form,
.search-container,
.sync-form,
.search-form,
.pagination-form {
    display: grid;
    gap: 15px;
    padding: 10px;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.search-container input[type="text"],
.search-container select,
.search-container input[type="date"],
.nav-form input[type="text"],
.nav-form select,
.nav-form input[type="number"],
.sync-form input,
.sync-form select,
.search-form input,
.search-form select,
.modal form select,
.modal form textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: rgba(182, 180, 181, 0.1);
    color: var(--text-color);
    width: 100%;
    box-sizing: border-box;
}

.search-container input[type="text"]:focus,
.search-container select:focus,
.search-container input[type="date"]:focus,
.nav-form input[type="text"]:focus,
.nav-form select:focus,
.nav-form input[type="number"]:focus,
.sync-form input:focus,
.sync-form select:focus,
.search-form input:focus,
.search-form select:focus,
.modal form select:focus,
.modal form textarea:focus {
    outline: none;
    border-color: #486F89;
    box-shadow: 0 0 5px var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: rgba(182, 180, 181, 0.1);
    color: var(--text-color);
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #486F89;
    box-shadow: 0 0 5px var(--primary);
}

.checkbox-container {
    display: flex;
    align-items: center;
    padding-top: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.roles-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: rgba(182, 180, 181, 0.1);
    padding: 10px;
}

.roles-checkbox-container .checkbox-label {
    margin: 0;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-form,
.delete-form {
    display: inline;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-controls .sync-button.active {
    background-color: #485E6C;
    pointer-events: none;
}

.filter-panel {
    background: #1B3A3F;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
}

.filter-panel.active {
    max-height: 500px;
    opacity: 1;
}

.filter-panel form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.filter-group input,
.filter-group select,
.filter-group textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: rgba(182, 180, 181, 0.1);
    color: var(--text-color);
}

.filter-group textarea {
    resize: vertical;
}

.clear-filters-button {
    background-color: #485E6C;
}

.clear-filters-button:hover {
    background-color: #171D21;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--primary);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    background-color: rgba(23, 29, 33, 0.2);
    border: 1px solid var(--primary);
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s, color 0.3s;
}

.tab:hover {
    background-color: var(--primary);
    color: var(--text-color);
}

.tab.active {
    background-color: var(--primary);
    color: var(--text-color);
    font-weight: 600;
}

.tab-content {
    display: none;
    background: transparent;
    padding: 20px;
    border-radius: 5px;
}

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

.tab-dropdown {
    display: none;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: rgba(182, 180, 181, 0.1);
    color: var(--text-color);
}

.task-table,
.staff-table,
.order-table,
.product-table,
.customer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: var(--text-color);
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.task-table thead,
.staff-table thead,
.order-table thead,
.product-table thead,
.customer-table thead {
    background: #1B3A3F;
}

.task-table th,
.task-table td,
.staff-table th,
.staff-table td,
.order-table th,
.order-table td,
.product-table th,
.product-table td,
.customer-table th,
.customer-table td {
    padding: 12px;
    border: 1px solid var(--table-border);
    text-align: left;
}

.task-table th,
.staff-table th,
.order-table th,
.product-table th,
.customer-table th {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
}

.task-table th a,
.staff-table th a,
.order-table th a,
.product-table th a,
.customer-table th a {
    color: var(--primary);
    text-decoration: none;
    display: block;
}

.task-table th a:hover,
.staff-table th a:hover,
.order-table th a:hover,
.product-table th a:hover,
.customer-table th a:hover {
    color: #485E6C;
    text-decoration: underline;
}

.task-table tbody tr:nth-child(even),
.staff-table tbody tr:nth-child(even),
.order-table tbody tr:nth-child(even),
.product-table tbody tr:nth-child(even),
.customer-table tbody tr:nth-child(even) {
    background: rgba(72, 111, 137, 0.2);
}

.task-table tbody tr:nth-child(odd),
.staff-table tbody tr:nth-child(odd),
.order-table tbody tr:nth-child(odd),
.product-table tbody tr:nth-child(odd),
.customer-table tbody tr:nth-child(odd) {
    background: #1B3A3F;
}

.task-table tbody tr:hover,
.staff-table tbody tr:hover,
.order-table tbody tr:hover,
.product-table tbody tr:hover,
.customer-table tbody tr:hover {
    background: #485E6C;
    cursor: pointer;
}

.staff-table .indent-0 {
    padding-left: 12px;
}

.staff-table .indent-1 {
    padding-left: 32px;
}

.staff-table .indent-2 {
    padding-left: 52px;
}

.staff-table .indent-3 {
    padding-left: 72px;
}

.staff-table code {
    background: #485E6C;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #1B3A3F;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid var(--table-border);
}

.product-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-details p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.product-details .editButton {
    margin-top: auto;
    align-self: flex-start;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.box,
.welcome-box,
.reminder-box,
.notice-box,
.notifications,
.customer-details,
.orders-section,
.notes-section,
.views-section,
.issues-section,
.last-updated {
    background: var(--container-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

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

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.notes-section.full-width {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box;
    border-top: 2px solid var(--table-border);
    margin-top: 20px;
}

.notes-section .table-container {
    width: 100%;
    overflow-x: auto;
}

.notes-section .customer-table {
    width: 100%;
    min-width: 600px;
}

.notes-section .customer-table td {
    white-space: normal;
    word-wrap: break-word;
}

.notes-section .customer-table thead {
    position: sticky;
    top: 0;
    background: #1B3A3F;
    z-index: 10;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
    align-items: center;
}

.pagination-form {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.pagination a {
    background-color: var(--primary);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.pagination a:hover:not(.disabled) {
    background-color: #485E6C;
}

.pagination a.disabled {
    background-color: #485E6C;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination span {
    padding: 8px 16px;
    color: var(--text-color);
}

.no-tasks,
.no-orders,
.description {
    color: var(--text-color);
    font-style: italic;
    opacity: 0.7;
    margin-top: 20px;
}

.team-view,
.completed-view {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.team-view label,
.completed-view label {
    font-size: 14px;
    color: var(--text-color);
}

.team-view select,
.completed-view select {
    background: rgba(182, 180, 181, 0.1);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.customer-details p,
.last-updated p {
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.6;
}

.customer-link {
    color: var(--primary);
    text-decoration: none;
}

.customer-link:hover {
    text-decoration: underline;
}

.address-line {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-button {
    padding: 4px 8px;
    font-size: 12px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.note-card,
.view-card,
.issue-card {
    background: rgba(182, 180, 181, 0.05);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.note-card p,
.view-card p,
.issue-card p {
    margin: 0 0 10px 0;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
}

.note-meta {
    font-size: 12px;
    color: #B6B4B5;
    border-top: 1px solid var(--table-border);
    padding-top: 8px;
}

.modal-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-filters input,
.modal-filters select,
.modal-filters button {
    padding: 8px;
    font-size: 14px;
    background: rgba(182, 180, 181, 0.1);
    color: var(--text-color);
    border: 1px solid var(--primary);
    border-radius: 5px;
}

.modal-filters input[type="date"] {
    width: auto;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.issue-details .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.issue-details .detail-row strong {
    flex: 1;
}

.issue-details .detail-row span,
.issue-details .detail-row div {
    flex: 2;
    text-align: right;
}

.issue-details .note-card {
    padding: 10px;
    border-left: 4px solid var(--primary);
}

.ellipsis {
    display: inline-block;
    margin: 3px;
    padding: 6px 10px;
    color: #B6B4B5;
    font-size: 14px;
}

.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.role-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.role-list li strong {
    color: var(--primary);
}

.news-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(182, 180, 181, 0.05);
    border-radius: 5px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px;
}

.news-message {
    font-size: 14px;
    color: var(--text-color);
    margin: 0 0 10px;
}

.news-meta {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
}

.nav-sidebar,
.left-sidebar {
    width: 250px;
    float: left;
    padding: 20px;
    background: #1B3A3F;
    color: var(--text-color);
    min-height: 400px;
    box-sizing: border-box;
    border-radius: 8px;
    margin-right: 20px;
    position: relative;
    z-index: 2;
}

.nav-sidebar h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--primary);
}

.nav-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-sidebar li {
    margin-bottom: 10px;
}

.nav-sidebar a {
    display: block;
    padding: 10px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
}

.nav-sidebar a:hover {
    background: var(--primary);
    color: var(--text-color);
}

.nav-sidebar .submenu {
    margin-left: 20px;
    background: #485E6C;
    border-radius: 5px;
}

.nav-sidebar .has-submenu>a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s;
}

.nav-sidebar .has-submenu.open>a::after {
    transform: rotate(180deg);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(27, 58, 63, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.footer-container p {
    margin: 10px 0;
    color: var(--text-color);
}

.footer-container a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 10px;
}

.footer-container nav {
    margin: 10px 0;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid var(--table-border);
}

.swiper-container {
    width: 100%;
    max-height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.image-preview {
    margin: 15px 0;
    text-align: center;
}

.preview-image {
    width: auto;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid var(--table-border);
}

.sortable-list ul {
    list-style-type: none;
    padding-left: 20px;
    margin: 0;
}

.sortable-item {
    background: var(--container-bg);
    border: 1px solid var(--table-border);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: grab;
    transition: all 0.2s ease-in-out;
}

.sortable-item:hover {
    background: rgba(72, 111, 137, 0.3);
    border-color: var(--primary);
    box-shadow: 0 4px 10px var(--shadow);
}

.sortable-item.sortable-ghost {
    background: rgba(72, 111, 137, 0.5);
    border-color: var(--primary);
    border-style: dashed;
}

.sortable-item.sortable-fallback {
    background: #486F89;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.drag-handle {
    cursor: grab;
    color: var(--text-color);
    opacity: 0.6;
    margin-right: 10px;
}

.drag-handle:active {
    cursor: grabbing;
}

.menu-label {
    flex-grow: 1;
    font-weight: 600;
    color: var(--text-color);
}

.menu-url {
    color: var(--text-color);
    font-size: 0.9em;
    opacity: 0.8;
}

.menu-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.edit-btn,
.danger-btn {
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .sidebar-container,
    .left-sidebar,
    .nav-sidebar {
        display: none;
    }
    .header-logo {
        display: none;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .nav-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 3;
        opacity: 0;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }
    .nav-toggle-label {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        font-size: 24px;
        color: var(--text-color);
    }
    header {
        flex-direction: column;
        padding: 10px;
        align-items: flex-start;
    }
    .user-dropdown {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    .user-name {
        order: 1;
        margin-left: 0;
    }
    .dropdown-menu {
        right: 0;
        left: auto;
    }
    nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #1B3A3F;
        z-index: 1;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    nav.open {
        transform: translateX(0);
    }
    nav ul {
        flex-direction: column;
        padding: 60px 20px;
        gap: 10px;
    }
    nav li {
        width: 100%;
    }
    nav a {
        font-size: 18px;
        padding: 15px;
    }
    nav ul.submenu {
        position: static;
        box-shadow: none;
        background: #485E6C;
        margin-left: 20px;
    }
    .search-container input,
    .search-container select,
    .nav-form input,
    .nav-form select,
    .sync-form input,
    .sync-form select,
    .search-form input,
    .search-form select,
    .filter-panel input,
    .filter-panel select,
    .modal-filters input,
    .modal-filters select {
        width: 100%;
    }
    .filter-panel form {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        max-width: 100%;
    }
    .customer-grid {
        grid-template-columns: 1fr;
    }
    .customer-table th,
    .customer-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .table-container {
        overflow-x: auto;
    }
    .order-table,
    .customer-table,
    .product-table {
        min-width: 600px;
    }
    .product-image {
        max-height: 300px;
    }
    .notes-section.full-width {
        padding: 10px;
    }
}

@media print {
    .sidebar-container,
    .left-sidebar,
    .nav-sidebar,
    .search-container,
    .pagination,
    .team-view,
    .completed-view,
    .nav-form,
    .modal,
    .box-header,
    .sync-form,
    .search-form,
    .filter-controls,
    .filter-panel,
    .action-buttons,
    .modal-filters,
    .copy-button {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .task-table,
    .staff-table,
    .order-table,
    .product-table,
    .customer-table {
        color: #171D21;
        border-color: #486F89;
    }
    .task-table th,
    .staff-table th,
    .order-table th,
    .product-table th,
    .customer-table th {
        background: #486F89;
        color: #B6B4B5;
    }
    .task-table tbody tr:nth-child(even),
    .staff-table tbody tr:nth-child(even),
    .order-table tbody tr:nth-child(even),
    .product-table tbody tr:nth-child(even),
    .customer-table tbody tr:nth-child(even) {
        background: #B6B4B5;
    }
    .task-table tbody tr:nth-child(odd),
    .staff-table tbody tr:nth-child(odd),
    .order-table tbody tr:nth-child(odd),
    .product-table tbody tr:nth-child(odd),
    .customer-table tbody tr:nth-child(odd) {
        background: #fff;
    }
    .no-tasks,
    .no-orders,
    .description {
        color: #485E6C;
    }
    .product-grid {
        display: none;
    }
    .table-container {
        display: block !important;
    }
    .welcome-box,
    .reminder-box,
    .notice-box,
    .notifications,
    .customer-details,
    .orders-section,
    .notes-section,
    .views-section,
    .issues-section,
    .last-updated {
        background: #fff;
        color: #171D21;
        box-shadow: none;
    }
    .role-list li,
    .news-title,
    .news-message,
    .news-meta,
    .customer-details p,
    .last-updated p,
    .note-card p,
    .view-card p,
    .issue-card p,
    .note-meta {
        color: #171D21;
    }
    .customer-link {
        color: #171D21;
        text-decoration: none;
    }
    .address-line {
        color: #171D21;
    }
}