ul.pagination {
  margin-bottom: 0;
}

th.actions,
td.actions,
th.narrow,
td.narrow {
  width: 1px;
}

th a::after {
  font-family: "Font Awesome 5 Free";
  content: "\f0dc";
  display: inline-block;
  margin-left: 0.2rem;
  opacity: 0.3;
  font-size: 0.8rem;
}

th a.desc::after,
th a.asc:hover::after {
  content: "\f0dd";
  opacity: 1;
}

th a.asc::after,
th a.desc:hover::after,
th a:hover::after {
  content: "\f0de";
  opacity: 1;
}

.card-title {
  display: block;
  float: inherit;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-toolbox {
  margin-left: auto !important;

  display: -ms-flexbox !important;
  display: flex !important;
}

.card-toolbox > * {
  height: max-content;
  margin-right: 0.25rem;
}

.card-toolbox > *:last-child {
  margin-right: 0;
}

.card-toolbox .form-group {
  margin-bottom: 0;
}

.required > label::after {
  content: " *";
  color: tomato;
}

#url-rewriting-warning {
  display: none;
}

/* Cubo interface polish */
:root {
  --cubo-navy: #16223a;
  --cubo-blue: #2563eb;
  --cubo-sky: #eff6ff;
  --cubo-ink: #172033;
  --cubo-muted: #68748a;
  --cubo-line: #e7ebf1;
}

.cubo-app {
  background: #f5f7fb;
  color: var(--cubo-ink);
}

.cubo-app .main-sidebar {
  background: linear-gradient(180deg, #18243d 0%, #111a2c 100%);
  box-shadow: 3px 0 18px rgba(18, 32, 57, .12);
}

.cubo-app .brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  min-height: 64px;
  padding: 14px 16px;
}

.cubo-app .brand-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.cubo-app .nav-sidebar .nav-link {
  border-radius: 8px;
  color: #c9d3e5;
  margin: 3px 10px;
  padding: .7rem .8rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.cubo-app .nav-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transform: translateX(2px);
}

.cubo-app .nav-sidebar .nav-link.active {
  background: var(--cubo-blue);
  box-shadow: 0 5px 14px rgba(37, 99, 235, .28);
  color: #fff;
}

.cubo-app .nav-header {
  color: #71809c;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 18px 18px 6px;
  padding: 0;
}

.cubo-app .nav-treeview > .nav-item > .nav-link { font-size: .91rem; margin-left: 18px; }
.cubo-app .nav-treeview > .nav-item > .nav-link .nav-icon { color: #89a0c7; font-size: .85rem; }
.cubo-app .cubo-sync-link { background: rgba(37, 99, 235, .15); color: #dbeafe; }
.cubo-app .cubo-sync-link .nav-icon { color: #7fb0ff !important; }
.cubo-app .cubo-sync-link.is-disabled { cursor: not-allowed; opacity: .65; }
.cubo-sync-notice { bottom: 20px; box-shadow: 0 12px 28px rgba(0,0,0,.16); position: fixed; right: 20px; width: min(380px, calc(100vw - 40px)); z-index: 2000; }

.cubo-app .main-header {
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--cubo-line);
  box-shadow: 0 1px 4px rgba(21, 32, 51, .03);
}

.cubo-app .content-header { padding: 22px 0 10px; }
.cubo-app .content-header h1 { color: var(--cubo-ink); font-size: 1.5rem; font-weight: 700; }

.cubo-app .card {
  border: 1px solid #e7ebf1;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(24, 36, 61, .045);
  overflow: hidden;
}

.cubo-app .card-header {
  background: #fff;
  border-bottom: 1px solid var(--cubo-line);
  border-radius: 16px 16px 0 0;
  padding: 18px 22px;
}

.cubo-app .card-body { padding: 20px 22px 22px; }
.cubo-eyebrow { color: var(--cubo-blue); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cubo-table-card .card-title { color: var(--cubo-ink); font-size: 1.08rem; margin: 2px 0 0; }
.cubo-table-count { background: var(--cubo-sky); border-radius: 999px; color: #2456a8; font-size: .78rem; font-weight: 700; padding: .4rem .7rem; }

.cubo-table-card .dataTables_wrapper, .cubo-table-shell { border: 1px solid #edf0f4; border-radius: 12px; overflow: hidden; background: #fff; }
.cubo-app .table { color: #334155; margin-bottom: 0; }
.cubo-app .table thead th { background: #f8fafc; border-bottom: 1px solid #e7ebf1; border-top: 0; color: #64748b; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: .9rem 1rem; text-transform: uppercase; white-space: nowrap; }
.cubo-app .table td { border-color: #eef1f5; padding: 1rem; vertical-align: middle; }
.cubo-app .table tbody tr:nth-child(even) { background: #fcfdff; }
.cubo-app .table-hover tbody tr { transition: background .15s ease, box-shadow .15s ease; }
.cubo-app .table-hover tbody tr:hover { background: #f2f7ff; box-shadow: inset 3px 0 0 #4f8df7; }
.cubo-data-table .cubo-cell-brand { color: #1e2d45; font-size: .82rem; font-weight: 800; letter-spacing: .025em; }
.cubo-data-table .cubo-cell-model { color: #334155; font-size: .86rem; font-weight: 700; }
.cubo-data-table .cubo-cell-version { color: #4c5d76; font-size: .8rem; font-weight: 600; line-height: 1.45; max-width: 500px; }
.cubo-data-table .cubo-cell-year { color: #334155; font-feature-settings: 'tnum'; font-weight: 700; }
.cubo-data-table .cubo-cell-id { color: #64748b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .77rem; }
.cubo-code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; color: #40516a; display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; font-weight: 700; letter-spacing: .025em; padding: .3rem .45rem; }
.cubo-type { background: #eff6ff; border-radius: 999px; color: #3572c7; display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .07em; padding: .32rem .5rem; }
.cubo-table-action { min-width: 92px; text-align: right; }
.cubo-table-action .btn { align-items: center; border-radius: 8px; box-shadow: 0 3px 8px rgba(37,99,235,.16); display: inline-flex; font-size: .76rem; gap: .42rem; padding: .48rem .65rem; }
.cubo-app .table tfoot { display: none; }
.cubo-app .dataTables_wrapper > .row:first-child { align-items: center; padding: .85rem 1rem; margin: 0; background: #fff; border-bottom: 1px solid #eef1f5; }
.cubo-app .dataTables_wrapper > .row:last-child { align-items: center; padding: .85rem 1rem; margin: 0; background: #fafbfc; border-top: 1px solid #eef1f5; }
.cubo-app .dataTables_info { color: #64748b; font-size: .82rem; padding-top: 0 !important; }
.cubo-app .dataTables_filter input, .cubo-app .dataTables_length select { border: 1px solid #d7deea; border-radius: 7px; box-shadow: none; padding: .35rem .55rem; }
.cubo-app .dataTables_filter input:focus { border-color: #93b4f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); outline: 0; }
.cubo-table-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; padding: 1rem 1.15rem; margin: -1.25rem -1.4rem 1.35rem; background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%); border-bottom: 1px solid #e8edf4; }
.cubo-filter-field { min-width: 170px; flex: 1 1 170px; }
.cubo-search-field { flex-basis: 240px; }
.cubo-page-size { flex: 0 0 110px; min-width: 110px; }
.cubo-filter-field label { display: block; margin: 0 0 .3rem; color: #64748b; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cubo-filter-field select { width: 100%; height: 38px; padding: 0 .7rem; border: 1px solid #d7deea; border-radius: 8px; background: #fff; color: #334155; }
.cubo-filter-field select:focus { border-color: #93b4f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); outline: 0; }
.cubo-search-control { align-items: center; background: #fff; border: 1px solid #d7deea; border-radius: 8px; color: #94a3b8; display: flex; gap: .55rem; height: 38px; padding: 0 .7rem; }
.cubo-search-control:focus-within { border-color: #93b4f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.cubo-search-control input, .cubo-app .cubo-search-control input[type='search'] { background: transparent !important; border: 0 !important; box-shadow: none !important; color: #334155; height: 32px; margin: 0 !important; min-width: 0; outline: 0; padding: 0 !important; width: 100%; }
.cubo-table-filters .btn { height: 36px; margin-bottom: 0; white-space: nowrap; }
.cubo-table-footer { align-items: center; background: #fafbfc; border-top: 1px solid #eef1f5; display: flex; justify-content: space-between; padding: .85rem 1rem; }
.cubo-table-footer .dataTables_info { padding: 0 !important; }
.cubo-table-footer .dataTables_paginate { margin: 0; }
.cubo-table-toolbar { align-items: center; color: #64748b; display: flex; gap: 1rem; justify-content: space-between; margin: -3px 0 1rem; }
.cubo-table-toolbar strong { color: #334155; font-size: .92rem; margin-right: .35rem; }
.cubo-table-toolbar span { font-size: .82rem; }
.cubo-inline-search { align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; color: #94a3b8; display: flex; gap: .45rem; margin: 0; padding: 0 .65rem; }
.cubo-inline-search input, .cubo-app .cubo-inline-search input[type='search'] { background: transparent !important; border: 0 !important; box-shadow: none !important; color: #334155; height: 34px; margin: 0 !important; outline: 0; padding: 0 !important; width: 185px; }
.cubo-app td.cubo-row-actions { min-width: 132px; padding: .55rem .8rem; text-align: right; white-space: nowrap; }
.cubo-app .cubo-row-actions .btn { align-items: center; border-radius: 8px; display: inline-flex; height: 34px; justify-content: center; margin: 0 0 0 .3rem; padding: 0; width: 34px; }
.cubo-app .cubo-row-actions .btn i { margin: 0; }
.cubo-paginator { align-items: center; display: flex; justify-content: space-between; margin: 1rem 0 0; }
.cubo-paginator .pagination { margin: 0; }
.cubo-paginator p { color: #64748b; font-size: .82rem; margin: 0; }
.cubo-vehicle-editor { max-width: 1540px; padding-bottom: 2rem; }
.cubo-editor-hero { align-items: center; background: linear-gradient(135deg, #fff 0%, #f4f8ff 100%); border: 1px solid #e5ebf5; border-radius: 16px; display: flex; justify-content: space-between; margin: .5rem 0 1.25rem; padding: 1.35rem 1.5rem; }
.cubo-editor-hero h2 { color: #17233a; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: .2rem 0; }
.cubo-editor-hero p { color: #64748b; margin: 0; max-width: 780px; }
.cubo-editor-hero-meta { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.cubo-editor-hero-meta > span:not(.badge) { background: #fff; border: 1px solid #dfe7f3; border-radius: 999px; color: #506079; font-size: .8rem; font-weight: 600; padding: .4rem .65rem; }
.cubo-editor-layout { align-items: flex-start; }
.cubo-editor-aside { position: sticky; top: 72px; }
.cubo-editor-aside .side-nav { background: #fff; border: 1px solid #e7ebf1; border-radius: 14px; box-shadow: 0 8px 24px rgba(24,36,61,.04); display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.cubo-editor-aside .side-nav > br { display: none; }
.cubo-editor-aside .heading { color: #64748b; font-size: .7rem; font-weight: 700; letter-spacing: .07em; margin: .25rem 0 .7rem; text-transform: uppercase; }
.cubo-unit-list-header { align-items: center; display: flex; justify-content: space-between; margin: 0; }
.cubo-unit-list-header .heading { margin: 0; }
.cubo-unit-list-header span { background: #e9f1ff; border-radius: 999px; color: #2563c9; font-size: .72rem; font-weight: 700; padding: .3rem .55rem; }
.cubo-scroll-hint { align-items: center; background: #f1f6ff; border-left: 3px solid #5a92ef; border-radius: 5px; color: #58708f; display: flex; font-size: .72rem; gap: .4rem; margin: 0; padding: .45rem .55rem; }
.cubo-editor-aside .side-nav .cubo-unit-list { background: linear-gradient(180deg, #fbfdff 0%, #f4f8fe 100%); border: 1px solid #dce8f7; border-radius: 9px; margin: 0; max-height: 210px; overflow-y: auto; padding: .15rem .55rem; scrollbar-color: #7ba9e8 #eaf2fb; scrollbar-width: thin; }
.cubo-editor-aside .side-nav .cubo-unit-list::-webkit-scrollbar { width: 7px; }
.cubo-editor-aside .side-nav .cubo-unit-list::-webkit-scrollbar-track { background: #eaf2fb; border-radius: 99px; }
.cubo-editor-aside .side-nav .cubo-unit-list::-webkit-scrollbar-thumb { background: #7ba9e8; border-radius: 99px; }
.cubo-editor-aside .side-nav li { border-bottom: 1px solid #f0f3f7; margin: 0; padding: .55rem .25rem; }
.cubo-editor-aside .side-nav li:last-child { border-bottom: 0; }
.cubo-editor-aside .side-nav-item { color: #46566f; font-size: .85rem; font-weight: 600; }
.cubo-gallery-heading { align-items: center; display: flex; justify-content: space-between; margin-top: .5rem; }
.cubo-gallery-heading .heading { margin: 0; }
.cubo-gallery-heading span { background: #eef2f7; border-radius: 999px; color: #5b6b82; font-size: .72rem; font-weight: 700; min-width: 24px; padding: .25rem .45rem; text-align: center; }
.cubo-gallery-add { align-self: stretch; border-radius: 8px; font-size: .78rem; }
.cubo-gallery-grid { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cubo-gallery-thumb { aspect-ratio: 1.2; background: #eff4fa; border: 1px solid #dce7f5; border-radius: 9px; cursor: zoom-in; overflow: hidden; padding: 0; position: relative; }
.cubo-gallery-thumb::after { align-items: center; background: rgba(19, 47, 83, .52); color: #fff; content: '\f00e'; display: flex; font-family: 'Font Awesome 5 Free'; font-size: .9rem; font-weight: 900; inset: 0; justify-content: center; opacity: 0; position: absolute; transition: opacity .16s ease; }
.cubo-gallery-thumb:hover::after, .cubo-gallery-thumb:focus::after { opacity: 1; }
.cubo-gallery-thumb img { height: 100%; object-fit: cover; transition: transform .2s ease; width: 100%; }
.cubo-gallery-thumb:hover img { transform: scale(1.05); }
.cubo-gallery-empty { align-items: center; background: #f7f9fc; border: 1px dashed #ced9e8; border-radius: 9px; color: #718096; display: flex; flex-direction: column; font-size: .76rem; gap: .45rem; grid-column: 1 / -1; justify-content: center; min-height: 120px; text-align: center; }
.cubo-image-modal { border: 0; border-radius: 14px; overflow: hidden; }
.cubo-image-modal .modal-header { align-items: center; border-bottom: 1px solid #edf0f5; padding: 1rem 1.2rem; }
.cubo-image-modal .modal-title { color: #273449; font-size: 1.05rem; font-weight: 700; margin: .1rem 0 0; }
.cubo-upload-dropzone { align-items: center; background: #f7faff; border: 1px dashed #96b6ea; border-radius: 10px; color: #59708e; cursor: pointer; display: flex; flex-direction: column; gap: .35rem; justify-content: center; min-height: 170px; padding: 1rem; text-align: center; }
.cubo-upload-dropzone i { color: #3f7ee2; font-size: 1.65rem; }
.cubo-upload-dropzone strong { color: #314663; font-size: .92rem; }
.cubo-upload-dropzone span { font-size: .76rem; }
.cubo-upload-dropzone input { display: none; }
.cubo-image-viewer .modal-body { align-items: center; background: #121b2a; display: flex; justify-content: center; min-height: min(70vh, 720px); padding: 1rem 4.5rem; position: relative; }
.cubo-image-viewer .modal-body img { max-height: min(66vh, 680px); max-width: 100%; object-fit: contain; }
.cubo-gallery-nav { align-items: center; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; display: flex; height: 40px; justify-content: center; position: absolute; top: calc(50% - 20px); width: 40px; }
.cubo-gallery-nav:hover { background: rgba(255,255,255,.25); }
.cubo-gallery-prev { left: 1.2rem; }
.cubo-gallery-next { right: 1.2rem; }
.cubo-editor-main .cubo-editor-panel { margin-bottom: 1rem; }
.cubo-editor-main .cubo-editor-panel .card-header { padding: 1rem 1.2rem; }
.cubo-editor-main .cubo-editor-panel .card-title { font-size: 1.02rem; }
.cubo-editor-main .form-group { margin-bottom: 1rem; }
.cubo-editor-main .form-group label { color: #64748b; font-size: .73rem; font-weight: 700; letter-spacing: .035em; margin-bottom: .35rem; text-transform: uppercase; }
.cubo-editor-main .form-control, .cubo-editor-main input[type='text'], .cubo-editor-main input[type='number'] { border: 1px solid #dbe3ee; border-radius: 8px; box-shadow: none; color: #334155; min-height: 38px; }
.cubo-editor-main input[readonly] { background: #f8fafc; color: #64748b; }
.cubo-editor-prices .card-body > .row > [class*='col-sm-2'] { align-items: center; color: #64748b; display: flex; font-size: .74rem; font-weight: 700; letter-spacing: .04em; min-height: 44px; text-transform: uppercase; }
.cubo-editor-prices .card-body > .row > [class*='col-sm-10'] { padding-bottom: .55rem; padding-top: .55rem; }
.cubo-editor-actions .card-footer { background: #fff; border-top: 1px solid #edf0f5; padding: 1rem 1.2rem; }
@media (max-width: 991px) { .cubo-editor-aside { position: static; } .cubo-editor-hero { align-items: flex-start; flex-direction: column; gap: .75rem; } .cubo-editor-hero-meta { justify-content: flex-start; } }
@media (max-width: 576px) { .cubo-table-filters { margin: -1rem -1rem 1rem; padding: .8rem; } .cubo-filter-field { flex-basis: 100%; } .cubo-table-toolbar, .cubo-paginator { align-items: flex-start; flex-direction: column; } .cubo-inline-search { width: 100%; } .cubo-inline-search input { width: 100%; } }
.cubo-app .page-link { border: 0; border-radius: 6px; color: #52617a; margin: 0 2px; }
.cubo-app .page-item.active .page-link { background: var(--cubo-blue); box-shadow: 0 3px 8px rgba(37, 99, 235, .25); }
.cubo-app .btn-primary { background: var(--cubo-blue); border-color: var(--cubo-blue); border-radius: 7px; font-weight: 600; padding: .36rem .7rem; }
.cubo-quantity { background: #ecfdf5; border-radius: 999px; color: #087443; font-size: .78rem; font-weight: 700; padding: .3rem .6rem; }

@media (max-width: 767.98px) {
  .cubo-app .card-body { padding: 14px; }
  .cubo-app .content-header { padding-top: 16px; }
}
