:root {
    --kendo-color-primary: #0C447C;
    --kendo-color-primary-hover: #093459;
    --kendo-color-primary-emphasis: #E6F1FB;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f6f8;
    color: #262626;
}

.content {
    padding: 24px 32px;
}

.content h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1b1b1b;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 232px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 18px 12px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.18s ease;
}

.app-sidebar--collapsed {
    width: 60px;
}

.app-sidebar__footer {
    margin-top: 16px;
    padding: 14px 10px 4px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.app-sidebar--collapsed .app-sidebar__footer {
    flex-direction: column;
    align-items: stretch;
}

.app-sidebar__user {
    color: #5A5B5E;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar--collapsed .app-sidebar__user {
    display: none;
}

.app-sidebar__logout {
    color: #0C447C;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.app-sidebar__logout:hover {
    text-decoration: underline;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 18px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0C447C;
    white-space: nowrap;
}

.app-sidebar--collapsed .app-sidebar__brand {
    flex-direction: column;
    gap: 10px;
    padding: 4px 4px 16px;
}

.app-sidebar--collapsed .app-sidebar__brand span {
    display: none;
}

.app-sidebar__toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: none;
    background: none;
    border-radius: 6px;
    color: #8a8f98;
    cursor: pointer;
    padding: 0;
}

.app-sidebar__toggle:hover {
    background-color: #F2F6FB;
    color: #0C447C;
}

.app-sidebar--collapsed .app-sidebar__toggle {
    margin-left: 0;
}

.app-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tab-strip {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 10px 16px 0;
    background-color: #eef0f3;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    flex-shrink: 0;
}

.tab-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 14px;
    background-color: #e2e5ea;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    color: #5a6069;
    cursor: pointer;
    white-space: nowrap;
    max-width: 220px;
    flex-shrink: 0;
}

.tab-strip__item.active {
    background-color: #ffffff;
    color: #0C447C;
    font-weight: 600;
}

.tab-strip__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-strip__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: none;
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

.tab-strip__close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.app-nav__list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #3a3a3a;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.app-nav__link:hover {
    background-color: #F2F6FB;
    color: #0C447C;
}

.app-nav__link.active {
    background-color: #E6F1FB;
    color: #0C447C;
    font-weight: 600;
}

.app-nav__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

.app-nav__section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9098a3;
    padding: 0 10px;
    margin: 4px 0 8px;
    white-space: nowrap;
}

.app-sidebar--collapsed .app-nav__link {
    justify-content: center;
    padding: 8px;
}

.app-sidebar--collapsed .app-nav__link span {
    display: none;
}

.app-sidebar--collapsed .app-nav__section-title {
    font-size: 0;
    height: 1px;
    background-color: #e5e7eb;
    padding: 0;
    margin: 8px 10px;
}

.booking-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-pill__id {
    font-weight: 700;
    flex-shrink: 0;
}

.booking-pill__field {
    flex-shrink: 0;
}

.booking-pill--contract {
    background-color: #E6F1FB;
    color: #0C447C;
}

.booking-pill--reservation {
    background-color: #FAEEDA;
    color: #633806;
}

.booking-pill--conflict {
    background-color: #FCEBEB;
    color: #791F1F;
}

.booking-pill--returned {
    background-color: #E9E9EA;
    color: #5A5B5E;
}

.car-group-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    height: 100%;
    min-height: 36px;
    padding: 0 10px;
    overflow: hidden;
}

.car-group-header--overbooking {
    border-left: 3px solid #A32D2D;
    padding-left: 6px;
}

.category-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #0C447C;
}

.category-divider__label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.car-group-header__car {
    font-size: 13px;
    line-height: 18px;
}

.car-group-header__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 16px;
}

.car-group-header__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.car-group-header__trim {
    font-size: 11px;
    color: #555;
}

.car-group-header__overbooking-label {
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    color: #A32D2D;
}

.k-scheduler-row:nth-of-type(even) {
    background-color: #fafafa;
}

/* Kendo sizes the resource-label rows and the grid content rows independently,
   which can drift out of sync (e.g. a row with no events renders shorter than
   one with an event). Force both sides to the same fixed row height so the
   dividing lines line up. */
.k-scheduler-row:has(> .k-resource-row) {
    height: 48px !important;
}

.today-column {
    background-color: #E6F1FB;
}

.k-event {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* One cell per day (SlotDivisions=1) makes the "00:00" time sub-header
   redundant - hide it and keep just the day-name row. */
.k-scheduler-head .k-sticky-cell > .k-scheduler-row:nth-child(2),
.k-scheduler-head .k-scheduler-cell.k-group-content > .k-scheduler-row:nth-child(2) {
    display: none;
}

.day-header-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
}

.day-header__weekday {
    font-size: 10px;
    font-weight: 500;
    color: #8a8f98;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.day-mark-overlay {
    position: absolute;
    background-color: rgba(12, 68, 124, 0.16) !important;
    border: 2px solid rgba(12, 68, 124, 0.55) !important;
    border-radius: 4px;
    box-sizing: border-box;
    pointer-events: none;
}

.context-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: transparent;
}

.context-menu {
    position: fixed;
    z-index: 1001;
    min-width: 190px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    padding: 6px;
    box-sizing: border-box;
}

.context-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #3a3a3a;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
}

.context-menu__item:hover {
    background-color: #F2F6FB;
    color: #0C447C;
}

.context-menu__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

/* Contract form */

.contract-form__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #fff;
    padding: 10px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #E5E9F0;
    max-width: 1300px;
}

.contract-form__toolbar h1 {
    margin: 0;
}

.daily-returns-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #667085;
}

.contract-form__toolbar-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.free-cars-filter {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.free-cars-filter .form-field {
    margin: 0;
}

.free-cars-filter .btn {
    height: 36px;
}

.contract-form {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1300px;
}

.contract-form__main {
    flex: 2;
    min-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contract-form__side {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.form-section__header {
    background-color: #0C447C;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
}

.form-section__body {
    padding: 16px;
}

.photos-columns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-photos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.photos-column h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0C447C;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.photo-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dde3ea;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    outline: none;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.signature-thumb {
    display: block;
    max-width: 100%;
    max-height: 90px;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.signature-modal {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 90vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.signature-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.signature-modal__header h3 {
    margin: 0;
    color: #0C447C;
}

.signature-modal__close {
    position: static;
    background: #eef1f5;
    color: #333;
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.signature-modal__close:hover {
    background: #dde3ea;
}

.signature-pad {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 200px;
    border: 1px dashed #b7c3d0;
    border-radius: 6px;
    background: #fff;
    cursor: crosshair;
}

.signature-preview {
    display: block;
    max-width: 600px;
    width: 100%;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.signature-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.date-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.date-preset-chip {
    border: 1px solid #dde3ea;
    background: #f5f8fc;
    color: #0C447C;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.date-preset-chip:hover {
    background: #e5edf8;
    border-color: #c7d6e8;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-thumb__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 340px));
    gap: 12px 16px;
}

.form-grid--split {
    grid-template-columns: 1fr 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.form-field-group {
    grid-column: span 2;
}

.form-triple-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
}

.form-double-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.form-field label .required {
    color: #A32D2D;
    margin-left: 2px;
}

.form-field input:not([type="checkbox"]),
.form-field textarea,
.form-field select {
    font-family: inherit;
    font-size: 13px;
    padding: 7px 9px;
    border: 1px solid #d5d8dd;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
}

.form-field input:disabled {
    background-color: #f5f6f8;
    color: #888;
}

.form-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
}

.form-subheading {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0C447C;
    border-top: 1px solid #eef0f3;
    padding-top: 10px;
    margin-top: 2px;
}

.vehicle-mode-toggle {
    display: flex;
    gap: 20px;
    font-weight: normal;
}

.vehicle-mode-toggle label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.car-color-input {
    width: 44px;
    height: 32px;
    padding: 2px;
    border: 1px solid #d5d8dd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.car-color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.vehicle-summary {
    grid-column: 1 / -1;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background-color: #F2F6FB;
    border-radius: 8px;
    padding: 10px 14px;
}

.vehicle-summary__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vehicle-summary__item span:first-child {
    font-size: 11px;
    color: #555;
}

.vehicle-summary__item span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: #1b1b1b;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.summary-row--total {
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 15px;
    color: #0C447C;
}

.form-field--total {
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 10px;
}

.form-field--total label {
    font-weight: 700;
    font-size: 14px;
    color: #0C447C;
}

.form-field--total input {
    font-weight: 700;
    color: #0C447C;
}

.payment-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 100px auto;
    gap: 8px;
    align-items: center;
}

.payment-row select,
.payment-row input {
    font-family: inherit;
    font-size: 13px;
    padding: 6px 8px;
    border: 1px solid #d5d8dd;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
}

.payment-row__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 6px;
    color: #A32D2D;
    cursor: pointer;
    flex-shrink: 0;
}

.payment-row__remove:hover {
    background-color: #FCEBEB;
}

.btn-add-row {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: #0C447C;
    background: none;
    border: 1px dashed #0C447C;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.btn-add-row:hover {
    background-color: #F2F6FB;
}

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

.form-error {
    color: #A32D2D;
    background-color: #FCEBEB;
    border: 1px solid #f0c6c6;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 16px 0 0;
    font-size: 13px;
}

.booking-tooltip {
    min-width: 200px;
    font-size: 12px;
}

.booking-tooltip__header {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.booking-tooltip__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 0;
}

.booking-tooltip__row span:first-child {
    opacity: 0.8;
}

.booking-tooltip__row span:last-child {
    font-weight: 600;
    text-align: right;
}

.btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid #d5d8dd;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
}

.btn:hover {
    background-color: #f2f3f5;
}

.btn-primary {
    background-color: #0C447C;
    border-color: #0C447C;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #093459;
}

.btn-danger {
    background-color: #b43c3c;
    border-color: #b43c3c;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #8f2f2f;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background-color: inherit;
}

.contract-details {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    max-width: 480px;
}

.contract-details dt {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-top: 10px;
}

.contract-details dd {
    font-size: 14px;
    margin: 2px 0 0;
    color: #1b1b1b;
}

/* Contract print document */

.print-toolbar {
    padding: 16px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.post-save-email--inline {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    min-width: 260px;
}

.post-save-email__success {
    margin: 0;
    font-size: 13px;
    color: #3B6D11;
    font-weight: 600;
}

.contract-doc {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1b1b1b;
}

.contract-doc__letterhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.contract-doc__logo {
    height: 56px;
    width: auto;
}

.contract-doc__contact {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.6;
}

.contract-doc__company {
    text-align: right;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.contract-doc__company-name {
    font-size: 15px;
    font-weight: 700;
    color: #0C447C;
}

.contract-doc__company-sub {
    font-weight: 700;
    color: #555;
}

.contract-doc__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #0C447C;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.contract-doc__title {
    font-size: 20px;
    font-weight: 700;
    color: #0C447C;
}

.contract-doc__brand {
    font-size: 13px;
    color: #555;
}

.contract-doc__sections {
    column-count: 2;
    column-gap: 24px;
}

.contract-doc__section {
    margin-bottom: 16px;
    break-inside: avoid;
}

.contract-doc__section--full {
    column-span: all;
}

.contract-doc__section-title {
    background-color: #0C447C;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    margin-bottom: 6px;
}

.contract-doc__fields {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.contract-doc__fields tr {
    border-bottom: 1px solid #eef0f3;
}

.contract-doc__label {
    padding: 5px 10px;
    color: #555;
    width: 45%;
}

.contract-doc__value {
    padding: 5px 10px;
    font-weight: 600;
}

.contract-doc__totals {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.contract-doc__totals td {
    padding: 5px 10px;
}

.contract-doc__totals td:last-child {
    text-align: right;
    font-weight: 600;
}

.contract-doc__grand td {
    font-size: 15px;
    font-weight: 700;
    color: #0C447C;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}

.contract-doc__notes {
    font-size: 13px;
    white-space: pre-wrap;
    padding: 6px 10px;
}

.contract-doc__signature-img {
    display: block;
    max-width: 320px;
    max-height: 120px;
    border-bottom: 1px solid #555;
}

.contract-doc__footer {
    text-align: center;
    font-size: 13px;
    color: #555;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
}

@media print {
    .print-toolbar,
    .daily-returns-actions {
        display: none;
    }

    .contract-doc {
        max-width: none;
        padding: 0;
    }

    /* Printing a tab (e.g. Επιστροφές Ημέρας's "Εκτύπωση" button, or any
       future page that calls window.print()) should only output that tab's
       content, not the app chrome around it - the sidebar and the tab strip
       are part of the MDI shell, not the document being printed. */
    .app-sidebar,
    .tab-strip {
        display: none !important;
    }

    .app-content,
    main,
    .content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* Daily returns report, grouped by Τόπος Παραλαβής */

.daily-returns-group {
    margin-bottom: 20px;
}

.daily-returns-group__header {
    background-color: #0C447C;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px 6px 0 0;
}

.daily-returns-group__header span {
    font-weight: 500;
    opacity: 0.8;
    margin-left: 6px;
}

.daily-returns-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border: 1px solid #E5E9F0;
    border-top: none;
}

.daily-returns-table th {
    white-space: normal;
}

.daily-returns-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-returns-table th {
    text-align: left;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    border-bottom: 1px solid #E5E9F0;
}

.daily-returns-table td {
    padding: 8px 14px;
    border-bottom: 1px solid #EEF0F3;
}

.daily-returns-table tbody tr {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.daily-returns-table tbody tr:hover {
    background-color: #F5F8FC;
}

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

.daily-returns-table .col-num,
.daily-returns-table .col-time {
    width: 80px;
}

.daily-returns-table .col-balance {
    width: 130px;
}

.daily-returns-table .col-customer {
    width: 27%;
}

.daily-returns-table .col-vehicle {
    width: 25%;
}

.daily-returns-table .col-phone {
    width: 15%;
}

.daily-returns-table .col-plate {
    width: 25%;
}

.daily-returns-table .col-brand {
    width: 45%;
}

.daily-returns-table .col-branch {
    width: 30%;
}

/* Post-save dialog (Print / Send Mail / Not Print) */

.post-save-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(20, 24, 30, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-save-dialog {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    min-width: 360px;
    max-width: 420px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.post-save-dialog h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1b1b1b;
}

.post-save-dialog p {
    margin: 0 0 18px;
    font-size: 13px;
    color: #555;
}

.post-save-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-save-actions .btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.post-save-email {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 1px 2px rgba(16, 24, 40, 0.03);
}

.dashboard-card__icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E6F1FB;
    color: #0C447C;
}

.dashboard-card--warn .dashboard-card__icon {
    background: #FBF0E2;
    color: #B45309;
}

.dashboard-card__icon .dashboard-icon {
    width: 22px;
    height: 22px;
}

.dashboard-card__body {
    text-align: left;
}

.dashboard-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #0C447C;
    line-height: 1.15;
}

.dashboard-card__label {
    margin-top: 2px;
    font-size: 13px;
    color: #6b7580;
}

.dashboard-card--warn .dashboard-card__value {
    color: #B45309;
}

.dashboard-grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-grid--charts {
    grid-template-columns: repeat(2, 1fr);
}

.dashboard-grid--tables {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .dashboard-grid--charts,
    .dashboard-grid--tables {
        grid-template-columns: 1fr;
    }
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 1px 2px rgba(16, 24, 40, 0.03);
}

.dashboard-panel__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #33404d;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.dashboard-panel__title .dashboard-icon {
    width: 16px;
    height: 16px;
    color: #0C447C;
    flex: none;
}

.dashboard-icon {
    width: 18px;
    height: 18px;
}

.dashboard-grid-table {
    font-size: 13px;
}

.dashboard-grid-table tbody tr {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 6px;
}

.badge--ok {
    background: #E7F3E2;
    color: #3B6D11;
}

.badge--warn {
    background: #FBF0E2;
    color: #B45309;
}

.badge--danger {
    background: #FBE4E4;
    color: #B42318;
}

.post-save-email input {
    font-family: inherit;
    font-size: 13px;
    padding: 7px 9px;
    border: 1px solid #d5d8dd;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
}