body{
    background-color: #f6f8fd;
}

.wrapper{
    width: calc(100% - 260px);
    height: calc(100vh - 70px);
    margin-top: 70px;
    margin-left: 260px;
    float: right;
}

.navigation {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 70px;
    align-content: center;
    align-items: center;
    background-color: #FFFFFF;
    padding-right: 15px;
    z-index: 100;
}

.logo-wrapper{
    position: relative;
    width: 260px;
    height: 70px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    align-items: center;
    display: flex;
    float: left;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.logo{
    width: 60px;
    height: 60px;
    background-image: url("img/logo-transport.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-left: 10px;
}

.logo-text{
    width: 250px;
    height: 70px;
    align-content: center;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    padding-left: 10px;
    color: #FFF;
}

.language-switch-wrapper{
    position: relative;
    width: auto;
    height: 70px;
    align-content: center;
    align-items: center;
    cursor: pointer;
    display: flex;
    float: right;
}

.language-switch-title{
    width: auto;
    text-align: right;
    padding-right: 10px;
    color: #000;
    font-size: 17px;
}

.locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.locale-switcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #6c7a89;
    font-size: 1rem;
    flex-shrink: 0;
}

.locale-switcher-track {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: #eef1f6;
    border: 1px solid #dde3ec;
    border-radius: 999px;
    gap: 2px;
}

.locale-switcher-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: #5c6b7a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.locale-switcher-option:hover {
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.75);
}

.locale-switcher-option:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.locale-switcher-option.is-active {
    background: linear-gradient(135deg, #667eea 0%, #5a6fd6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

.locale-switcher-option.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, #5f76e8 0%, #5368d0 100%);
}

.locale-switcher-short {
    display: none;
}

.locale-switcher--floating {
    padding: 6px 10px 6px 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.locale-switcher--nav .locale-switcher-track {
    background: #f3f5f9;
}

@media (max-width: 992px) {
    .locale-switcher-label {
        display: none;
    }

    .locale-switcher-short {
        display: inline;
    }

    .locale-switcher-option {
        min-width: 36px;
        padding: 0 10px;
    }

    .locale-switcher-icon {
        display: none;
    }
}

@media (max-width: 576px) {
    .locale-switcher {
        margin-right: 8px;
    }
}

.user-avatar{
    width: 40px;
    height: 40px;
    background-image: url("img/user.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

aside {
    position: fixed;
    width: 260px;
    height: calc(100% - 70px);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    top: 70px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 99;
}

.aside-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    margin: 24px 20px 12px 20px;
    padding: 8px 0;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aside-header:first-child {
    margin-top: 8px;
}

.aside-header i {
    font-size: 14px;
    opacity: 0.8;
}

.aside-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 20px);
    margin: 2px 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.aside-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.4);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.aside-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.aside-item:hover::before {
    transform: scaleY(1);
}

.aside-item.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.aside-item.active::before {
    transform: scaleY(1);
    background: #ffffff;
}

.aside-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.aside-item .badge-sidebar {
    margin-left: auto;
    font-size: 10px;
    padding: 3px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 24px;
    height: 20px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aside-item .badge-sidebar.badge-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.aside-item .badge-sidebar.badge-success {
    background-color: #28a745;
    color: #ffffff;
}

.aside-item-logout {
    margin-top: 20px;
    color: #ff6b6b;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-bottom: 10px;
}

.aside-item-logout:hover {
    background-color: rgba(255, 107, 107, 0.15);
    color: #ff8787;
}

.aside-item-logout i {
    color: #ff6b6b;
}

/* Smooth scrollbar */
aside::-webkit-scrollbar {
    width: 6px;
}
aside::-webkit-scrollbar-track {
    background: transparent;
}
aside::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

aside::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


.content-wrapper{
    position: absolute;
    width: calc(100% - 260px);
    min-height: 400px;
    padding-top: 10px;
    padding-left: 20px;
    margin-bottom: 40px;
    right: 0;
}

.dropdown-toggle::after {
    margin-left: 0 !important;
    content: none !important;
}

.image-wrapper{
    display: inline-flex;
    width: 140px;
    height: 140px;
    margin-top: 10px;
    margin-right: 10px;
}

.image-wrapper img{
    width: 100%;
    height: auto;
}

.table-success tr{
    background-color: #000 !important;
}

.table-success td{
    color: #007f00 !important;
}

.table td input[type="text"]{
    border: none !important;
    outline: none;
    padding-left: 10px;
}

.tox-notification{
    display: none !important;
}

.aside-wrapper{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

/* Sidebar accordion (Bootstrap 5) */
.aside-accordion {
    --aside-accordion-bg: transparent;
}
.aside-accordion .aside-accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.aside-accordion .aside-accordion-item:last-of-type {
    border-bottom: none;
}
.aside-accordion .accordion-header {
    margin: 0;
}
.aside-accordion .aside-accordion-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
}
.aside-accordion .aside-accordion-btn:not(.collapsed) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.aside-accordion .aside-accordion-btn::after {
    margin-left: auto;
    filter: invert(1);
    opacity: 0.65;
    transform: scale(0.85);
}
.aside-accordion .aside-accordion-btn:focus {
    box-shadow: none;
    border-color: transparent;
}
.aside-accordion .aside-accordion-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.aside-accordion .aside-accordion-body {
    padding: 4px 0 12px 0;
    background: rgba(0, 0, 0, 0.12);
}
.aside-accordion .aside-accordion-body .aside-item {
    width: calc(100% - 20px);
}

.settings-list-style li{
    list-style: none;
    margin-left: -25px;
}

.settings-list-style li a{
    text-decoration: none;
    font-size: 17px;
    color: #0188ff;
}

.td-activation-status{
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 360px;
}

.settings-aside{
    display: inline-grid;
    width: 300px;
    height: auto;
    background-color: #FFF;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.settings-aside-item{
    position: relative;
    width: 100%;
    height: auto;
    text-decoration: none;
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #fbfbfb;
    color: #000;
    float: left;
}

.settings-aside-item:hover{
    color: #0086fa;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.preview-item img, .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-preview-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.form-control:read-only {
    background-color: #e9ecef; /* Light gray */
    color: #6c757d; /* Darker gray text */
    opacity: 1; /* Override Bootstrap’s default lower opacity */
    cursor: not-allowed;
}

.protocol-status-badge{
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.badge-default{
    background-color: #EEF4F8;
    color: #085796;
}

.badge-no-verdict{
    background-color: #FFFBF1;
    color: #cb9b0a;
}

.badge-has-payment-details{
    background-color: #F3F0FF;
    color: #592FE1;
}

.badge-accept-offence-protocol{
    background-color: #FAEEEF;
    color: #B4192E;
}

.badge-accept-offence-protocol-default{
    background-color: #F4F4F4;
    color: #454545;
}

.badge-success{
    background-color: #EFFBF3;
    color: #27af44;
}

.badge-warning{
    background-color: #FFF4E6;
    color: #E67E22;
}

.application-acceptance-states{
    posistion: relative;
    width: 100%;
    height:  40px;
    color: #14c522;
    font-size: 16px;
    text-align: right;
    float: left;
}

.td-desc-span-text{
    font-size: 14px;
    color: #085796;
    font-weight: bold;
    position: relative;
    float: left;
}

.table-container {
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents text from wrapping */
}
.vertical-text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    white-space: nowrap;
}

.no-protocol-filter-selected{
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
    margin-top: 100px;
    color: #717377;
    float: left;
}

.no-protocol-filter-selected i{
    font-size: 50px;
    color: #b3b8bc;
    margin-bottom: 10px;
}

.bi-question-circle{
    display:inline-flex;
    color: #b3b8bc;
    margin-top: -5px;
    cursor: pointer;
    font-size: 14px;
}

.qr-code{
    display: table;
    width: 150px;
    height: 150px;
    float: right;
}

.qr-code img{
    width: 100%;
    height: auto;
}

/* Professional Page Layout */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1.5rem 0;
    color: #000 !important;
    border-bottom: 1px solid #e9ecef;
}

.page-title-section {
    flex: 1;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.1rem 0;
    line-height: 1.2;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.page-actions {
    margin-left: 1rem;
}

/* Professional Filters Section */
.filters-section {
    margin-bottom: 1rem;
}

.protocol-count{
    width: 100%;
    display: flex;
    margin-top: 0.5rem;
    text-decoration: none;
    color: #676565;
}

.filters-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.filters-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.filters-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-form {
    padding: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #0148b4;
    box-shadow: 0 0 0 0.2rem rgba(1, 72, 180, 0.25);
}

/* Professional Table Section */
.table-section {
    margin-bottom: 2rem;
}

.table-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-professional {
    margin: 0;
    background: #ffffff;
}

.table-professional thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    border-bottom: 2px solid #dee2e6;
    vertical-align: middle;
}

.table-professional tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

.table-professional tbody tr:hover {
    background-color: #f8f9fa;
}

.table-professional tbody tr:last-child td {
    border-bottom: none;
}

/* Professional Number Range */
.number-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    text-decoration: none;
    font-size: 0.85rem;
}

.number-from, .number-to {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    min-width: 50px;
    text-align: center;
}

.number-separator {
    color: #6c757d;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Professional Action Buttons */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0148b4;
    border-color: #0148b4;
}

.btn-primary:hover {
    background-color: #013a91;
    border-color: #013a91;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* Table Footer */
.table-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
}

/* Professional Pagination */
.pagination {
    margin: 0;
    gap: 0.25rem;
}

.pagination .page-link {
    color: #0148b4;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 4px;
    margin: 0 0.125rem;
}

.pagination .page-link:hover {
    color: #013a91;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination .page-item.active .page-link {
    background-color: #0148b4;
    border-color: #0148b4;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .page-actions {
        margin-left: 0;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .table-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .number-range {
        flex-direction: column;
        gap: 0.25rem;
    }

    .number-separator {
        transform: rotate(90deg);
    }

    .table-professional {
        font-size: 0.8rem;
    }

    .table-professional thead th,
    .table-professional tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* Professional Form Improvements */
.input-group .btn {
    border-radius: 0 6px 6px 0;
}

.input-group .form-control {
    border-radius: 6px 0 0 6px;
}

/* Professional Badge Styling */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

.bg-primary {
    background-color: #0148b4 !important;
}

/* Professional Simple Location Design */
.location-simple {
    padding: 0.5rem 0;
}

.location-header-simple {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.location-header-simple strong {
    font-weight: 700;
    color: #0148b4;
}

.location-desc-simple {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* Table Cell Styling for Simple Locations */
.table-professional tbody td:has(.location-simple) {
    vertical-align: top;
    padding: 1rem 0.75rem;
}

.table-professional tbody tr:hover td:has(.location-simple) {
    background-color: #f8f9fa;
}

/* Responsive Design for Simple Locations */
@media (max-width: 768px) {
    .location-header-simple {
        font-size: 0.85rem;
    }

    .location-desc-simple {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .location-header-simple {
        font-size: 0.8rem;
    }

    .location-desc-simple {
        font-size: 0.75rem;
    }
}

/* Modern Compact Design */
.protocol-header-section {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.header-top {
    background: #0148b4;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    flex: 1;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    color: white;
    font-size: 0.75rem;
}

.meta-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.header-actions {
    margin-left: 1rem;
}

.header-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Readable Horizontal Info Layout */
.protocol-info-grid {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0148b4;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.info-card-header i {
    font-size: 1rem;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    min-height: 1.5rem;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
    flex: 1;
}

.info-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

/* Readable Number Range Display */
.number-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.range-from,
.range-to {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 700;
    color: #0148b4;
    font-size: 1rem;
    background: #e3f2fd;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #bbdefb;
    min-width: 80px;
    text-align: center;
}

.range-separator {
    color: #6c757d;
    font-weight: 700;
    font-size: 1rem;
}

.range-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.total-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0148b4;
}

.total-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Readable Responsible Person */
.responsible-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.responsible-info.assigned {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #1976d2;
}

.responsible-info.unassigned {
    background: #fff3e0;
    border-color: #ffcc02;
    color: #f57c00;
}

.responsible-info i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.responsible-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.responsible-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
}

.responsible-status {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.responsible-info.assigned .responsible-status {
    color: #1565c0;
}

.responsible-info.unassigned .responsible-status {
    color: #ef6c00;
}

/* Readable Info Alerts */
.info-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    margin: 0 1.5rem 1rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.info-alert.pending {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
}

.info-alert.description {
    background: #f8f9fa;
    border-left-color: #6c757d;
    color: #495057;
}

.info-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-alert.pending i {
    color: #2196f3;
}

.info-alert.description i {
    color: #6c757d;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    font-weight: 600;
    margin-right: 0.5rem;
    display: inline-block;
}

/* Professional Table Section */
.protocol-table-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.table-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.table-title p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.table-actions {
    margin-left: 1rem;
}

.table-container {
    overflow-x: auto;
    background: #ffffff;
}

.protocol-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
    background: #ffffff;
}

.protocol-table thead {
    background: #f8f9fa;
}

.protocol-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.protocol-table thead th.col-index,
.protocol-table thead th.col-select,
.protocol-table thead th.col-actions {
    text-align: center;
}

.protocol-table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #f1f3f4;
}

.protocol-table tbody tr:hover {
    background: #f8f9fa;
}

.protocol-table tbody tr:last-child {
    border-bottom: none;
}

.protocol-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.protocol-table tbody tr:nth-child(even):hover {
    background: #f8f9fa;
}

.protocol-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border: none;
}

/* Column Specific Styling */
.col-index {
    width: 60px;
    text-align: center;
}

.col-select {
    width: 50px;
    text-align: center;
}

.col-series {
    width: 100px;
}

.col-number {
    width: 150px;
}

.col-inspector {
    min-width: 200px;
    max-width: 200px;
    word-wrap: break-word;
    white-space: normal;
}

.col-status {
    width: 200px;
}

.col-actions {
    width: 80px;
    text-align: center;
}

/* Row Number */
.row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Checkbox Styling - Default Bootstrap */
.protocol-checkbox {
    /* Use default Bootstrap checkbox styling */
}

.protocol-completed {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 1rem;
}

/* Series Badge */
.series-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #bbdefb;
}

/* Protocol Number */
.protocol-number {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 600;
    color: #0148b4;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    display: inline-block;
}

/* Inspector Info */
.inspector-info {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
}

.inspector-info.assigned {
    color: #1976d2;
}

.inspector-info.unassigned {
    color: #f57c00;
}

.inspector-info i {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Status Badges */
.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-badge i {
    font-size: 0.8rem;
}

.status-badge.excluded {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.status-badge.blank {
    background: #e2e3e5;
    color: #495057;
    border-color: #d6d8db;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    background: #ffffff;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.action-btn.exclude {
    color: #856404;
}

.action-btn.exclude:hover {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.action-btn.restore {
    color: #0c5460;
}

.action-btn.restore:hover {
    background: #d1ecf1;
    border-color: #bee5eb;
}

/* Table Footer */
.table-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-wrapper {
    margin-left: 1rem;
}

.pagination-wrapper .pagination {
    margin: 0;
}

.pagination-wrapper .pagination .page-link {
    color: #0148b4;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 4px;
    font-weight: 500;
}

.pagination-wrapper .pagination .page-link:hover {
    background: #0148b4;
    color: white;
    border-color: #0148b4;
}

.pagination-wrapper .pagination .page-item.active .page-link {
    background: #0148b4;
    border-color: #0148b4;
    color: white;
}

.pagination-wrapper .pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .protocol-table thead th,
    .protocol-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .col-inspector {
        min-width: 180px;
        max-width: 200px;
    }
}

@media (max-width: 992px) {
    .protocol-info-grid {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1rem 1.25rem;
    }

    .info-card {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 1rem;
    }

    .info-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .info-card-header {
        font-size: 0.85rem;
    }

    .info-row {
        font-size: 0.8rem;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .table-actions {
        margin-left: 0;
        align-self: flex-end;
    }

    .protocol-table thead th,
    .protocol-table tbody td {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
    }

    .col-series {
        width: 80px;
    }

    .col-number {
        width: 120px;
    }

    .col-inspector {
        min-width: 160px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .header-actions {
        margin-left: 0;
        align-self: flex-end;
    }

    .protocol-info-grid {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .info-card {
        padding-bottom: 0.75rem;
    }

    .info-card-header {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .info-row {
        font-size: 0.75rem;
        padding: 0.2rem 0;
    }

    .number-range {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .range-from,
    .range-to {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
        min-width: 70px;
    }

    .range-total {
        padding: 0.4rem;
    }

    .total-number {
        font-size: 1.1rem;
    }

    .responsible-info {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .responsible-info i {
        font-size: 1rem;
    }

    .responsible-name {
        font-size: 0.8rem;
    }

    .responsible-status {
        font-size: 0.7rem;
    }

    .table-header {
        padding: 1rem;
    }

    .protocol-table thead th,
    .protocol-table tbody td {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .col-index {
        width: 50px;
    }

    .col-select {
        width: 40px;
    }

    .col-series {
        width: 70px;
    }

    .col-number {
        width: 100px;
    }

    .col-inspector {
        min-width: 140px;
        max-width: 160px;
    }

    .col-status {
        width: 150px;
    }

    .col-actions {
        width: 60px;
    }

    .table-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .pagination-wrapper {
        margin-left: 0;
    }

    .inspector-info {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .series-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .protocol-number {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .action-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .info-alert {
        margin: 0 1rem 0.75rem 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.25rem;
    }

    .header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .protocol-table thead th,
    .protocol-table tbody td {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
    }

    .col-index {
        width: 40px;
    }

    .col-select {
        width: 35px;
    }

    .col-series {
        width: 60px;
    }

    .col-number {
        width: 80px;
    }

    .col-inspector {
        min-width: 120px;
    }

    .col-status {
        width: 120px;
    }

    .col-actions {
        width: 50px;
    }

    .inspector-info {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
        min-height: 28px;
        gap: 0.3rem;
    }

    .inspector-info i {
        font-size: 0.8rem;
    }

    .series-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }

    .protocol-number {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }

    .action-btn {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .row-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* Mobile Table Scroll */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .protocol-table {
        min-width: 600px;
    }
}

/* Print Styles */
@media print {
    .protocol-table-section {
        box-shadow: none;
        border: 1px solid #000;
    }

    .table-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }

    .protocol-table thead th {
        background: #f8f9fa !important;
        color: #000 !important;
    }

    .protocol-table tbody tr {
        background: #fff !important;
    }

    .protocol-table tbody tr:nth-child(even) {
        background: #f8f9fa !important;
    }
}
