/* Buzono overrides loaded after the theme */

/* Rounded tables everywhere: separate borders so the outer corners can curve */
:root { --bz-table-border: rgba(128, 138, 150, .32); --bz-table-radius: .75rem; }

.table { border-collapse: separate; border-spacing: 0; }

.table-bordered { border: 0 !important; }
.table-bordered > :not(caption) > * > * {
    border-width: 0 1px 1px 0 !important;
    border-style: solid;
    border-color: var(--bz-table-border) !important;
}
.table-bordered > :not(caption) > * > :first-child { border-left-width: 1px !important; }
.table-bordered > :not(caption) > :first-child > tr:first-child > *,
.table-bordered > thead > tr:first-child > * { border-top-width: 1px !important; }

/* corner cells: header row on top, last row at the bottom */
.table > thead > tr:first-child > :first-child { border-top-left-radius: var(--bz-table-radius); }
.table > thead > tr:first-child > :last-child { border-top-right-radius: var(--bz-table-radius); }
.table > tbody > tr:last-child > :first-child { border-bottom-left-radius: var(--bz-table-radius); }
.table > tbody > tr:last-child > :last-child { border-bottom-right-radius: var(--bz-table-radius); }

/* the theme paints the header colour on <thead>, which is a square box behind the rounded cells: clip it to the same curve */
.table > thead { clip-path: inset(0 round var(--bz-table-radius) var(--bz-table-radius) 0 0); }

/* the scroll wrapper never squares the corners off again */
.table-responsive { border-radius: var(--bz-table-radius); }

/* ===== Shared list-page design (users, vehicles, ... all list pages) ===== */
.ul-b { display: inline-block; padding: .2rem .65rem; border-radius: 50rem; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ul-b-teal { background: rgba(0, 111, 148, .12); color: #0a86ad; }
.ul-b-purple { background: rgba(111, 66, 193, .14); color: #8b5cf6; }
.ul-b-orange { background: rgba(240, 100, 59, .14); color: #e4531f; }
.btn-bz-orange, .btn-bz-orange:hover, .btn-bz-orange:focus { background: #f0643b; border-color: #f0643b; color: #fff !important; }
.btn-bz-orange:hover { background: #e4531f; border-color: #e4531f; }
.ul-b-amber { background: rgba(245, 158, 11, .16); color: #d98a06; }
.ul-b-blue { background: rgba(59, 130, 246, .14); color: #3b82f6; }
.ul-b-green { background: rgba(16, 185, 129, .14); color: #0f9f72; }
.ul-b-red { background: rgba(239, 68, 68, .14); color: #dc3545; }
.ul-b-grey { background: rgba(128, 138, 150, .16); color: #7b8794; }
.ul-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.ul-dot-green { background: #10b981; } .ul-dot-amber { background: #f59e0b; } .ul-dot-red { background: #ef4444; } .ul-dot-grey { background: #94a3b8; }
.ul-avatar { border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.ul-initials { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #006f94, #1fa2c9); color: #fff; font-weight: 700; }
.ul-more { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 8px; color: inherit; font-size: 18px; }
.ul-more:hover { background: rgba(128, 138, 150, .18); }
.ul-toolbar .form-control, .ul-toolbar .form-select { height: 44px; }
.ul-search { position: relative; }
.ul-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.ul-search input { padding-left: 40px; }
.ul-seg { display: inline-flex; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .5rem; overflow: hidden; height: 44px; }
.ul-seg button { border: 0; background: transparent; padding: 0 1rem; font-weight: 600; color: inherit; }
.ul-seg button.active { background: #006f94; color: #fff; }
.ul-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom-width: 1px; white-space: nowrap; }
.ul-table tbody td { vertical-align: middle; padding-top: .8rem; padding-bottom: .8rem; }
.ul-table tbody tr:hover { background: rgba(0, 111, 148, .04); }
/* no transform on hover: a transformed parent breaks the fixed-position action menu */
.ul-card { position: relative; transition: box-shadow .15s; }
.ul-card:hover { box-shadow: 0 8px 24px rgba(0, 40, 60, .12); }
.ul-card-actions { position: absolute; top: 8px; right: 8px; z-index: 2; }
.ul-line { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 auto .35rem; max-width: 100%; font-size: 14px; }
.ul-line i { color: #006f94; font-size: 16px; flex: 0 0 auto; }
.ul-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul-empty { text-align: center; padding: 3rem 1rem; }
.ul-empty i { font-size: 40px; opacity: .4; }
.plate-badge { display: inline-block; min-width: 110px; padding: 4px 14px; background: #fff; border: 2px solid #1d2b3a; border-radius: 7px; color: #1d2b3a; font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-align: center; font-family: 'Roboto Mono', Consolas, monospace; }
.plate-badge:hover { border-color: #006f94; color: #006f94; }
.plate-badge-lg { font-size: 22px; padding: 8px 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Drag & drop file area (light brand blue) ===== */
.bz-drop { position: relative; border: 2px dashed #7cc3dc; background: #eaf6fb; border-radius: .75rem; padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.bz-drop:hover, .bz-drop.is-over { background: #d7eef8; border-color: #006f94; }
.bz-drop.field-error { border-color: #dc3545; background: #fdecee; }
.bz-drop .bz-drop-icon { font-size: 30px; color: #006f94; line-height: 1; }
.bz-drop .bz-drop-title { font-weight: 600; color: #0b5d7a; margin-top: .4rem; }
.bz-drop .bz-drop-title u { text-decoration: underline; }
.bz-drop .bz-drop-hint { font-size: 12px; color: #5b7c8a; margin-top: .25rem; }
.bz-drop input[type=file] { display: none; }
.bz-drop .bz-drop-preview { display: none; align-items: center; gap: .9rem; text-align: left; }
.bz-drop.has-file { border-style: solid; cursor: default; padding: .9rem 1rem; }
.bz-drop.has-file .bz-drop-empty { display: none; }
.bz-drop.has-file .bz-drop-preview { display: flex; }
.bz-drop .bz-drop-thumb { width: 84px; height: 60px; border-radius: .5rem; object-fit: cover; background: #fff; border: 1px solid #bfe0ee; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #006f94; font-size: 26px; }
.bz-drop .bz-drop-meta { min-width: 0; flex: 1 1 auto; }
.bz-drop .bz-drop-name { font-weight: 600; color: #0b5d7a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-drop .bz-drop-size { font-size: 12px; color: #5b7c8a; }
.bz-drop .bz-drop-actions { flex: 0 0 auto; display: flex; gap: .4rem; }
.bz-drop-error { color: #dc3545; font-size: 12px; margin-top: .35rem; }

/* previously uploaded licence picker */
.bz-pick { display: flex; flex-wrap: wrap; gap: .75rem; }
.bz-pick-item { width: 150px; border: 2px solid #d3e3ea; border-radius: .6rem; padding: .5rem; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; text-align: center; }
.bz-pick-item:hover { border-color: #7cc3dc; }
.bz-pick-item.active { border-color: #006f94; box-shadow: 0 0 0 3px rgba(0, 111, 148, .15); }
.bz-pick-item img, .bz-pick-item .bz-pick-pdf { width: 100%; height: 78px; object-fit: cover; border-radius: .4rem; background: #eaf6fb; display: flex; align-items: center; justify-content: center; color: #006f94; font-size: 28px; }
.bz-pick-item .bz-pick-cap { font-size: 12px; margin-top: .35rem; color: #4a5a6a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-pick-new { display: flex; align-items: center; justify-content: center; flex-direction: column; color: #006f94; font-weight: 600; border-style: dashed; background: #eaf6fb; }
.bz-pick-new i { font-size: 22px; }

/* form section headings + detail page */
.bz-section-title { font-weight: 700; color: #006f94; font-size: 15px; margin: 1.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(128, 138, 150, .25); }
.bz-section-title:first-child { margin-top: 0; }
.bz-kv { display: grid; grid-template-columns: 170px 1fr; gap: .65rem 1rem; margin: 0; }
.bz-kv dt { color: #7b8794; font-weight: 600; font-size: 13px; }
.bz-kv dd { margin: 0; word-break: break-word; }
@media (max-width: 575px) { .bz-kv { grid-template-columns: 1fr; gap: .1rem; } .bz-kv dd { margin-bottom: .6rem; } }
.bz-doc { border: 1px solid rgba(128, 138, 150, .3); border-radius: .75rem; overflow: hidden; height: 100%; background: transparent; }
.bz-doc-thumb { height: 170px; background: #eaf6fb; display: flex; align-items: center; justify-content: center; color: #006f94; font-size: 42px; }
.bz-doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-doc-empty { color: #7b8794; font-size: 14px; flex-direction: column; gap: .3rem; background: rgba(128, 138, 150, .08); }
.bz-doc-body { padding: .75rem 1rem; }
.bz-doc-label { font-weight: 700; }
.bz-doc-file { font-size: 12px; color: #7b8794; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Vehicle picker cards, notices, attachment list (violation + vehicle forms) ===== */
.bz-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.bz-vcard { position: relative; border: 2px solid rgba(128, 138, 150, .3); border-radius: .75rem; padding: .85rem 1rem; cursor: pointer; background: transparent; transition: border-color .15s, background .15s, box-shadow .15s; display: flex; flex-direction: column; gap: .45rem; }
.bz-vcard:hover { border-color: #7cc3dc; }
.bz-vcard.active { border-color: #006f94; background: #eaf6fb; box-shadow: 0 0 0 3px rgba(0, 111, 148, .12); }
.bz-vcard.active::after { content: "\f00c"; font-family: FontAwesome; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #006f94; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.bz-vcard .bz-vmeta { font-size: 13px; color: #7b8794; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-vcard .plate-badge { min-width: 0; align-self: flex-start; font-size: 16px; }
.bz-vcard.is-off { opacity: .7; }
.bz-vempty { border: 2px dashed rgba(128, 138, 150, .4); border-radius: .75rem; padding: 1.5rem 1rem; text-align: center; color: #7b8794; }
.bz-note { border-radius: .6rem; padding: .75rem 1rem; display: flex; gap: .75rem; align-items: flex-start; font-size: 14px; }
.bz-note i { margin-top: 3px; font-size: 16px; }
.bz-note-info { background: #eaf6fb; color: #0b5d7a; border: 1px solid #bfe0ee; }
.bz-note-warn { background: #fff6e5; color: #8a5a00; border: 1px solid #ffd98a; }
.bz-note-ok { background: #e9f8f1; color: #0b7a55; border: 1px solid #b7e8d3; }
.bz-files { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.bz-file { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border: 1px solid rgba(128, 138, 150, .3); border-radius: .6rem; }
.bz-file .bz-file-ico { width: 38px; height: 38px; border-radius: .5rem; background: #eaf6fb; color: #006f94; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.bz-file .bz-file-body { min-width: 0; flex: 1 1 auto; }
.bz-file .bz-file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-file .bz-file-sub { font-size: 12px; color: #7b8794; }
.bz-file .bz-file-bar { height: 4px; background: #d7eef8; border-radius: 2px; overflow: hidden; margin-top: .3rem; }
.bz-file .bz-file-bar > span { display: block; height: 100%; width: 0; background: #006f94; transition: width .15s; }
.bz-file.is-error { border-color: #dc3545; }
.bz-file.is-error .bz-file-sub { color: #dc3545; }

/* ===== Header / logo bar (desktop): logo fits inside the bar, header and logo bar share one height, no dead space above the menu ===== */
@media (min-width: 992px) {
    :root { --bz-bar-h: 72px; }
    .app-header { height: var(--bz-bar-h); padding-top: 0 !important; padding-bottom: 0 !important; align-items: center; }
    .app-header .header-wrap, .app-header .container-fluid, .app-header .header-right-icons { align-items: center; }
    .app-sidebar { padding-top: var(--bz-bar-h) !important; }
    .side-header { height: var(--bz-bar-h); padding: 6px 17px !important; align-items: center !important; justify-content: center; }
    .side-header .header-brand1 { display: flex; align-items: center; justify-content: center; height: 100%; }
    body:not(.sidenav-toggled) .side-header .header-brand-img { height: 60px !important; width: auto !important; max-width: 100%; max-height: 60px !important; object-fit: contain; margin: 0 !important; }
    .app-sidebar .main-sidemenu { margin-top: 14px !important; }
}
