* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    height: 100%;
    overflow: hidden
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    background: #f0f2f5;
    display: flex;
    flex-direction: column
}

.fixed-header {
    flex-shrink: 0;
    background: #f0f2f5;
    padding: 8px 8px 0 8px;
    z-index: 100
}

.scrollable-content {
    flex: 1;
    overflow: hidden;
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column
}

.fixed-footer {
    flex-shrink: 0;
    background: #b8bfc6;
    padding: 0 8px;
    z-index: 100;
    border-top: 2px solid #a0a8b0;
    overflow: hidden
}

.fixed-footer table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px
}

.fixed-footer td {
    border: 1px solid #a0a8b0;
    padding: 5px 6px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #b8bfc6;
    color: #212529;
    font-weight: 700
}

.fixed-footer .footer-label {
    font-size: 13px;
    font-weight: 700;
    color: #212529
}

.fixed-footer .footer-sum {
    font-weight: 700;
    color: #1a5c1a
}

.top-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap
}

.tab-links {
    display: flex;
    gap: 1px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

.tab-link {
    flex: 0 0 202px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 202px;
    max-width: 202px;
    text-align: left
}

.tab-link:hover {
    background: #e9ecef;
    transform: translateY(-1px)
}

.tab-link.active {
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, .3)
}

.tab-link.hidden {
    display: none
}

.flag {
    width: 40px;
    height: 28px;
    border-radius: 2px;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
    flex-shrink: 0
}

.flag-it {
    background: linear-gradient(to right, #009246 0, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%)
}

.flag-se {
    background: linear-gradient(to bottom, #006AA7 0, #006AA7 40%, #FECC00 40%, #FECC00 60%, #006AA7 60%)
}

.flag-es {
    background: linear-gradient(to bottom, #AA151B 0, #AA151B 30%, #F1BF00 30%, #F1BF00 70%, #AA151B 70%)
}

.flag-fr {
    background: linear-gradient(to right, #002654 0, #002654 33%, #fff 33%, #fff 66%, #ED2939 66%)
}

.flag-de {
    background: linear-gradient(to bottom, #000 0, #000 33%, #D00 33%, #D00 66%, #FFCE00 66%)
}

.tab-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.1;
    max-height: 56px;
    overflow: hidden
}

.tab-country {
    font-size: 14px;
    font-weight: 700
}

.tab-info-line {
    whitespace: nowrap;
    font-size: 13px;
    font-weight: 600
}

.tab-info-pct {
    color: #dc3545;
    font-weight: 600
}

.tab-info-msg {
    font-size: 10px;
    opacity: 0.9
}

.tab-info-timestamp {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 3px
}

.right-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.tab-content {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1
}

.tab-content-inner {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.button-row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

.add-row-btn,
.clear-all-btn {
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    color: #fff;
    white-space: nowrap
}

.add-row-btn {
    background: #28a745
}

.add-row-btn:hover {
    background: #218838
}

.clear-all-btn {
    background: #dc3545
}

.clear-all-btn:hover {
    background: #c82333
}

.search-container {
    position: relative;
    display: inline-flex;
    align-items: center
}

.search-input {
    padding: 6px 32px 6px 10px;
    font-size: 12px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    width: 250px;
    transition: border-color .2s
}

.search-input:focus {
    outline: none;
    border-color: #007bff
}

.search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: none;
    line-height: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all .2s
}

.search-clear:hover {
    background: #e9ecef;
    color: #dc3545
}

.search-clear.visible {
    display: block
}

.btn-tooltip {
    visibility: hidden;
    position: fixed;
    bottom: auto;
    left: auto;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 99999;
    font-weight: 400;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent
}

.add-row-btn:hover .btn-tooltip,
.clear-all-btn:hover .btn-tooltip {
    visibility: visible
}

.btn {
    position: relative
}

.btn-track .btn-tooltip {
    visibility: hidden;
    position: fixed;
    bottom: auto;
    left: auto;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 99999;
    font-weight: 400;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.btn-track .btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent
}

.btn-track:hover .btn-tooltip {
    visibility: visible
}

.photo-cell {
    position: relative
}

.photo-cell .photo-tooltip {
    visibility: hidden;
    position: fixed;
    bottom: auto;
    left: auto;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.photo-cell .photo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent
}

.photo-cell:hover .photo-tooltip {
    visibility: visible
}

.product-img-cell {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px !important
}

.link-btn-cell {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px !important
}

.product-photo-cell {
    position: relative;
    cursor: pointer
}

.product-thumb {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    display: block;
    margin: 0 auto
}

.product-preview {
    display: none;
    position: fixed;
    z-index: 10000;
    max-width: 200px;
    max-height: 200px;
    border: 3px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    pointer-events: none
}

.product-photo-cell:hover .product-preview {
    display: block
}

.photo-upload-btn {
    background: #17a2b8;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 9px;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    margin-top: 2px
}

.photo-upload-btn:hover {
    background: #138496
}

.no-photo {
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    margin: 0 auto
}

.btn-icon {
    font-size: 14px;
    padding: 4px 8px;
    min-width: auto;
    margin: 0
}

.no-link {
    text-align: center;
    color: #ccc;
    font-size: 12px
}

select.status-ordered {
    background: #fff3cd !important
}

select.status-receivedtowrite {
    background: #d4edda !important
}

select.status-returned {
    background: #f8d7da !important
}

select.status-refunded {
    background: #d1ecf1 !important
}

select.status-gotitfree {
    background: #d4edda !important;
    font-weight: 600
}

select.status-wait {
    background: #fff3cd !important
}

select.status-write {
    background: #e7f5ff !important
}

select.status-cancelled {
    background: #f8d7da !important
}

select.status-topickup {
    background: #ff0000 !important;
    color: #fff !important;
    font-weight: 700
}

select.status-toreturn {
    background: #ff0000 !important;
    color: #fff !important;
    font-weight: 700
}

.stats-panel {
    background: #4a5568;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px
}

.stat-box {
    background: rgba(255, 255, 255, .12);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px
}

.stat-box:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.stat-box.active-filter {
    background: rgba(76, 175, 80, .3);
    border: 2px solid #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, .5)
}

.stat-box.active-filter-not {
    background: rgba(244, 67, 54, .3);
    border: 2px solid #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, .5)
}

.stat-box .icon {
    font-size: 32px;
    flex-shrink: 0
}

.stat-box .stat-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.stat-box .label {
    font-size: 13.2px;
    opacity: .95;
    line-height: 1.2;
    font-weight: 700
}

.stat-box .value {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2
}

.stat-box .subvalue {
    font-size: 12px;
    opacity: .9;
    line-height: 1.2
}

.stat-box .filter-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: pre-line;
    z-index: 10000;
    pointer-events: none;
    min-width: 150px;
    max-width: 250px
}

.stat-box .filter-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent
}

.stat-box:hover .filter-tooltip {
    visibility: visible
}

.stat-box-total {
    min-width: 140px
}

.amazon-icon {
    font-size: 14px
}

.seller-icon {
    font-size: 14px
}

.stat-box-archived-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%
}

.clear-archived-btn {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 2px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    white-space: nowrap
}

.clear-archived-btn-small {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #17a2b8;
    color: #fff;
    border: none;
    padding: 2px 6px;
    font-size: 9px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    width: 36%;
    max-width: 48px
}

.clear-archived-btn:hover {
    background: rgba(255, 255, 255, .4)
}

.stat-box-remove-filters {
    background: rgba(255, 165, 0, .25);
    border: 1px solid rgba(255, 165, 0, .5);
    cursor: pointer
}

.stat-box-remove-filters:hover {
    background: rgba(255, 165, 0, .4)
}

.table-container {
    overflow-y: scroll !important;
    overflow-x: hidden;
    position: relative;
    flex: 1;
    scroll-behavior: auto !important
}

.table-wrapper {
    position: relative;
    width: 100%
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    table-layout: fixed
}

th,
td {
    border: 1px solid #dee2e6;
    padding: 4px 6px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis
}

th:nth-child(1),
td:nth-child(1) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    font-weight: 700;
    white-space: nowrap
}

th:nth-child(2),
td:nth-child(2) {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer
}

th:nth-child(3),
td:nth-child(3) {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    text-align: center;
    font-size: 10px;
    font-weight: 600
}

th:nth-child(4),
td:nth-child(4) {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    text-align: center;
    font-size: 10px;
    font-weight: 600
}

th:nth-child(5),
td:nth-child(5) {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    white-space: nowrap
}

th:nth-child(6),
td:nth-child(6) {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    text-align: center;
    font-size: 10px
}

th:nth-child(7),
td:nth-child(7) {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    font-size: 9px;
    white-space: nowrap;
    text-align: center
}

th:nth-child(8),
td:nth-child(8) {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    font-size: 9px
}

td:nth-child(9) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    min-width: 120px;
    flex: 1
}

td:nth-child(9):hover {
    overflow: visible;
    white-space: normal;
    z-index: 100;
    background: #fffbea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2)
}

th:nth-child(10),
td:nth-child(10) {
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    font-size: 9px
}

th:nth-child(11),
td:nth-child(11) {
    width: 75px;
    min-width: 75px;
    max-width: 75px;
    font-size: 9px;
    white-space: nowrap
}

th:nth-child(12),
td:nth-child(12) {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    font-size: 9px;
    white-space: nowrap
}

th:nth-child(13),
td:nth-child(13) {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    font-size: 9px;
    white-space: nowrap
}

th:nth-child(14),
td:nth-child(14) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    white-space: nowrap
}

th:nth-child(15),
td:nth-child(15) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    white-space: nowrap;
    text-align: center
}

th:nth-child(16),
td:nth-child(16) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    white-space: nowrap;
    text-align: center
}

th:nth-child(17),
td:nth-child(17) {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    white-space: nowrap
}

th:nth-child(18),
td:nth-child(18) {
    width: 75px;
    min-width: 75px;
    max-width: 75px;
    padding: 2px;
    white-space: nowrap
}

th:nth-child(19),
td:nth-child(19) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px
}

th:nth-child(20),
td:nth-child(20) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    font-size: 9px;
    padding: 2px;
    white-space: nowrap
}

th:nth-child(21),
td:nth-child(21) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px
}

th:nth-child(22),
td:nth-child(22) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    white-space: nowrap;
    font-size: 9px
}

th:nth-child(23),
td:nth-child(23) {
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    padding: 2px;
    white-space: nowrap;
    font-size: 9px
}

th:nth-child(24),
td:nth-child(24) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px
}

th:nth-child(25),
td:nth-child(25),
th:nth-child(26),
td:nth-child(26),
th:nth-child(27),
td:nth-child(27),
th:nth-child(28),
td:nth-child(28) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px;
    font-size: 9px
}

th:nth-child(29),
td:nth-child(29) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px;
    font-size: 9px
}

th:nth-child(30),
td:nth-child(30) {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align: center;
    padding: 2px;
    font-size: 9px
}

.price-match-green {
    background: #00e676 !important;
    color: #000 !important;
    font-weight: 700
}

td.price-mismatch-red {
    background: #ff0000 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: 2px solid #cc0000 !important
}

td.price-refund-zero-red {
    background: #ff4444 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: 2px solid #cc0000 !important
}

.row-cancelled,
.row-cancelled * {
    background: #d3d3d3;
    opacity: 1;
    text-decoration: line-through
}

.row-cancelled td {
    position: relative
}

.filter-cancelled-active .row-cancelled td::before,
.filter-cancelled-active .row-cancelled-full td::before {
    display: none !important
}

.row-cancelled-full,
.row-cancelled-full * {
    background: #d3d3d3;
    opacity: 1;
    text-decoration: line-through
}

.row-cancelled-full td {
    position: relative
}

.row-cancelled td.price-match-green,
.row-cancelled-full td.price-match-green {
    background: #00e676 !important;
    color: #000 !important;
    font-weight: 700
}

.row-cancelled tr:hover td,
.row-cancelled-full tr:hover td {
    background: #007bff !important;
    color: #fff !important
}

.cell-hover-tip {
    pointer-events: none;
    position: fixed;
    z-index: 99999;
    background: #222;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 11px;
    white-space: pre-wrap;
    max-width: 380px;
    word-wrap: break-word;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
    line-height: 1.4;
    display: none
}

.cell-tooltip {
    position: relative
}

.cell-tooltip .tooltip-text {
    visibility: hidden;
    position: absolute;
    z-index: 1000;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: normal;
    max-width: 300px;
    word-wrap: break-word;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.cell-tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent
}

.cell-tooltip:hover .tooltip-text {
    visibility: visible
}

thead {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff
}

th {
    background: #b8bfc6;
    color: #212529;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

th:hover {
    background: #a0a8b0
}

tbody tr {
    background: #fff
}

tbody tr:hover {
    background: #007bff !important;
    color: #fff
}

td:hover {
    background: #b3d9ff !important
}

tr.free-item {
    background: #91c483 !important;
    font-weight: 600
}

tr.free-item:hover {
    background: #007bff !important;
    color: #fff
}

tr.collapsed {
    display: none
}

tr.search-hidden {
    display: none !important
}

tr.filter-hidden {
    display: none !important
}

tr.archived-hidden {
    display: none !important
}

.row-ordered {
    background: #77e4d4 !important
}

.row-partial-refund {
    background: #ffebee !important
}

.row-received-no-refund {
    background: #c92a2a !important;
    color: #fff !important;
    font-weight: 700
}

.row-received-full-refund {
    background: #91c483 !important;
    color: #000 !important;
    font-weight: 700
}

.row-error {
    background: #fff !important
}

.row-received-x {
    background: #ff6464 !important;
    color: #fff !important;
    font-weight: 700
}

.row-received-v {
    background: #fff !important
}

.row-transit {
    background: #77e4d4 !important
}

.row-arriving {
    background: #77e4d4 !important
}

.row-cancelled-partial {
    background: #fff !important
}

.row-return-request {
    background: #ffe162 !important
}

.row-return-completed {
    background: #998ceb !important
}

.row-refunded {
    background: #998ceb !important
}

.row-returned-full-refund-purple {
    background: #8b5cf6 !important;
    color: #fff !important;
    font-weight: 700
}

.row-consegnato-free {
    background: #91c483 !important;
    color: #000 !important;
    font-weight: 700
}

.row-return-incomplete {
    background: #ffe162 !important
}

.row-refunded-incomplete {
    background: #ffe162 !important
}

.row-delivered-action-x {
    background: #ff6464 !important;
    color: #fff !important;
    font-weight: 700
}

.row-to-pickup {
    background: #ff6464 !important;
    color: #fff !important;
    font-weight: 700
}

.row-to-return {
    background: #ff6464 !important;
    color: #fff !important;
    font-weight: 700
}

.row-pink {
    background: #ffc0cb !important
}

.return-due-urgent {
    background: #ffeb3b !important;
    font-weight: 700;
    animation: pulse 1.5s ease-in-out infinite
}

@keyframes pulse {

    0%,
    100% {
        background: #ffeb3b
    }

    50% {
        background: #ffd700
    }
}

td[contenteditable=true] {
    cursor: default;
    min-width: 50px
}

td[contenteditable=true]:hover {
    background: #fff3cd;
    outline: 1px solid #ffc107
}

td[contenteditable=true]:focus {
    background: #fff;
    outline: 2px solid #007bff;
    cursor: text
}

td:nth-child(1) {
    cursor: default;
    user-select: none
}

td:nth-child(1):hover {
    background: #f8f9fa !important;
    outline: none !important
}

td:nth-child(2):hover {
    background: #b3d9ff !important;
    text-decoration: underline
}

select {
    width: 100%;
    padding: 2px 4px;
    font-size: 10px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: 0 0
}

select:focus {
    outline: 2px solid #007bff;
    border-color: #007bff
}

tr.free-item select {
    background: 0 0;
    font-weight: 600
}

.photo-cell {
    position: relative;
    cursor: pointer;
    padding: 2px !important
}

.photo-thumbnail {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    display: block;
    margin: 0 auto
}

.photo-preview {
    display: none;
    position: fixed;
    z-index: 9999;
    max-width: 200px;
    max-height: 200px;
    border: 3px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    pointer-events: none
}

.photo-cell:hover .photo-preview {
    display: block
}

.photo-upload-btn {
    background: #17a2b8;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 9px;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    margin-top: 2px
}

.photo-upload-btn:hover {
    background: #138496
}

.no-photo {
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    margin: 0 auto
}

.btn {
    font-size: 11px;
    padding: 3px 6px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin: 1px;
    white-space: nowrap
}

.btn:hover {
    background: #0056b3
}

.btn-success {
    background: #28a745
}

.btn-success:hover {
    background: #1e7e34
}

.btn-danger {
    background: #dc3545
}

.btn-danger:hover {
    background: #c82333
}

.btn-link {
    background: #6c757d
}

.btn-info {
    background: #17a2b8
}

.btn-info:hover {
    background: #138496
}

.btn-warning {
    background: #ffc107;
    color: #000
}

.btn-warning:hover {
    background: #e0a800
}

.action-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap
}

.action-btn-x {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0
}

.action-btn-x:hover {
    background: #c82333
}

.action-btn-v {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0
}

.action-btn-v:hover {
    background: #218838
}

.action-comment {
    flex: 1;
    padding: 2px 4px;
    font-size: 9px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    min-width: 60px;
    max-width: 100px
}

.action-wait {
    flex: 1;
    padding: 2px 4px;
    font-size: 9px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background: #fff3cd;
    min-width: 60px;
    max-width: 100px
}

.save-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2)
}

.version-banner {
    background: #6c757d;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap
}

.version-banner .version-info {
    font-weight: 600
}

.version-banner .deploy-date {
    opacity: 0.9;
    font-size: 10px
}

.sortable.asc::after {
    content: ' ▲';
    font-size: 10px
}

.sortable.desc::after {
    content: ' ▼';
    font-size: 10px
}

.link-buttons {
    display: flex;
    gap: 2px;
    flex-wrap: wrap
}

.msg-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #666;
    cursor: pointer
}

.msg-indicator.has-msg {
    background: #000;
    border-color: #000
}

.msg-icon {
    font-size: 16px;
    cursor: pointer;
    color: #007bff;
    transition: all .2s
}

.msg-icon:hover {
    transform: scale(1.2);
    color: #0056b3
}

.clickable-icon {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    user-select: none;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all .2s;
    position: relative
}

.clickable-icon:hover {
    transform: scale(1.2)
}

.clickable-icon .icon-tooltip {
    visibility: hidden;
    position: fixed;
    bottom: auto;
    left: auto;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 99999;
    font-weight: 400;
    pointer-events: none;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.clickable-icon .icon-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent
}

.icon-yes {
    color: #28a745
}

.icon-no {
    color: #dc3545
}

.icon-amazon {
    color: #17a2b8
}

.icon-seller {
    color: #ffc107
}

.clear-all-btn .btn-tooltip {
    visibility: hidden;
    position: fixed;
    bottom: auto;
    left: auto;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 99999;
    font-weight: 400;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.clear-all-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent
}

.clear-all-btn:hover .btn-tooltip {
    visibility: visible;
    bottom: calc(100% + 8px);
    top: auto
}

.archive-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer
}

.duplicate-seller {
    background: #ffeb3b !important;
    font-weight: bold
}

.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    animation: fadeInOut 1.5s ease-in-out
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8)
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1)
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1)
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8)
    }
}

tfoot tr {
    background: #b8bfc6 !important;
    color: #212529 !important;
    font-weight: 700;
    font-size: 13px
}

tfoot td {
    background: #b8bfc6 !important;
    color: #212529 !important;
    border-color: #a0a8b0 !important;
    padding: 5px 6px !important
}

tfoot .footer-label {
    font-size: 13px;
    font-weight: 700;
    color: #212529 !important
}

.footer-sum {
    font-weight: 700;
    color: #1a5c1a !important
}