/* Custom overrides */

body,
.form-control,
.form-select,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2C2A2A;
}

/* Adjust Select2 to match regular form control sizes */
.select2-container--default .select2-selection--single {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + .5rem);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    right: .75rem;
}

.select2-container--default .select2-selection--multiple {
    min-height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
}

/* Dashboard shell styles */
.widget-shell {
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.skeleton {
    position: relative;
    display: block;
    width: 100%;
    height: 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, rgba(230,233,239,0.9) 25%, rgba(245,247,250,0.9) 37%, rgba(230,233,239,0.9) 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton.skeleton-title {
    height: 0.75rem;
}

.skeleton.skeleton-value {
    height: 1.5rem;
}

.skeleton.skeleton-chart {
    height: 260px;
}

.skeleton.skeleton-chart--sm {
    height: 180px;
}

.skeleton.skeleton-list-item {
    height: 48px;
    margin-bottom: 0.75rem;
}

.skeleton.skeleton-table-row {
    height: 56px;
    margin-bottom: 0.5rem;
}

@keyframes skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.widget-shell.is-hydrated .skeleton,
.widget-shell.is-hydrated .dashboard-widget__skeleton-list,
.widget-shell.is-hydrated .dashboard-widget__skeleton-table {
    display: none !important;
}

[data-dashboard-widget].is-hydrated .skeleton,
[data-dashboard-widget].is-hydrated .dashboard-widget__skeleton-list,
[data-dashboard-widget].is-hydrated .dashboard-widget__skeleton-table {
    display: none !important;
}

.dashboard-widget__content[hidden] {
    display: none !important;
}

.dashboard-widget__error {
    margin-top: 0.75rem;
}

.dashboard-widget__error .btn {
    font-size: 0.75rem;
}

.dashboard-timeline__item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-timeline__item:last-child {
    border-bottom: none;
}

.dashboard-timeline__time {
    font-size: 0.75rem;
    color: #6c757d;
}

.dashboard-timeline__title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dashboard-timeline__subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

.dashboard-notification__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dashboard-notification__item:last-child {
    border-bottom: none;
}

.dashboard-notification__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #495057;
}

.dashboard-notification__body h6 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dashboard-notification__body small {
    color: #6c757d;
}

.dashboard-widget__pagination button {
    min-width: 96px;
}

.dashboard-widget__meta {
    font-size: 0.85rem;
    color: #6c757d;
}


.sig-wrap {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

#sig-canvas {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    touch-action: none;
    background-color: #fff;
    border: 2px dotted #000000;
    border-radius: 15px;
    cursor: crosshair;
}

#sig-canvas2 {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    touch-action: none;
    background-color: #fff;
    border: 2px dotted #000000;
    border-radius: 15px;
    cursor: crosshair;
}
