:root {
    --bs-primary: #EC0084;
    --bs-danger: #3B3939;
    --bs-success: #EC0084;
    --bs-warning: #7D7878;
}

.app-brand-link img{
    width: 130px;
    margin-top: 5px;
}

.bg-label-primary {
    background-color: transparent !important;
}

.project_img {
    height: 150px;
    width: auto;
}

.hidden-element {
    display: none;
}

.project_img_fed {
    height: 70px;
    width: auto;
    margin-top: 30px;
    margin-bottom: 50px;
}

.table th {
    font-size: 0.7125rem;
}

.right-text {
    text-align: right;
}

.subheader_box {
    background-color: #eee;
    border: 1px solid #ddd;
    padding-top: 8px;
    padding-bottom: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.table {
    font-size: 0.8rem;
}

.has-error input, .has-error select, .has-error textarea {
    border-color: red;
}

.form_box {
    margin: 0px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 15px;
}

.form_card {
    background-color: #f8f7fa;
}

.form_card .card-header {
    padding-bottom: 0px;
}

.waves-button-input {
        --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: 0.4812rem;
    --bs-btn-font-size: 0.9375rem;
    --bs-btn-font-weight: 500;
    --bs-btn-line-height: 1.375;
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: var(--bs-border-width);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: var(--bs-border-radius);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-box-shadow: none;
    --bs-btn-disabled-opacity: 0.45;
    --bs-btn-focus-box-shadow: 0 0 0 0.05rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: all 0.2s ease-in-out;
    padding: 0px 1em;
}

.profile_photo img{
    width:150px;
}

#change_avatar_button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    top: -65px;
    right: 20px;
}

.profile_photo {
    position: relative;
}

.nav-item .active {
    color: var(--bs-custom-link-color);
}

.modal-title {
    font-size: 1.25rem;
}

.symbol-50px img{
    width: 50px;
}

.col-kontrahent {
    width: 250px !important;
    max-width: 250px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-amount {
    text-align: right !important;
    width: 100px !important;
    max-width: 100px !important;
    white-space: nowrap;

    text-overflow: ellipsis;
}

@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1540px;
    }
}

.card-mini {
    margin-bottom: 10px;
}

.invoice-preview-card {
    padding: 15px;
}

.bg-primary
 {
    --bs-bg-opacity: 1;
    background-color: var(--bs-primary) !important;
}

label {
    padding-bottom: 5px;
    padding-top: 5px;
}

.timeline
 {
    --bs-timeline-point-indicator-bg: transparent;
}

.timeline .timeline-item .timeline-point
 {
    box-shadow: none; 
    inset-inline-start: -0.98rem;
}

.subtitle {
    font-size: .875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.drop-label {
    font-size: .95rem;
    color: #374151;
    font-weight: 500;
}

.drop-hint {
    font-size: .8rem;
    color: #9ca3af;
    margin-top: .4rem;
}

.file-name {
    margin-top: 1rem;
    font-size: .85rem;
    color: #4f46e5;
    font-weight: 500;
    display: none;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: .75rem;
}

.stat {
    text-align: center;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: .6rem .5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: .72rem;
    color: #6b7280;
    margin-top: .15rem;
}

.stat.ok .stat-value   { color: #16a34a; }
.stat.skip .stat-value { color: #d97706; }
.stat.err .stat-value  { color: #dc2626; }

/* Spinner */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hidden-element {
    display: none;
}

.invoice_link {
    cursor: pointer;
}

.kanban-text {
    cursor: not-allowed;
    font-size: 0.75rem;
}

.app-kanban .kanban-wrapper .kanban-container .kanban-board .kanban-board-header .kanban-title-board {
    font-size: 1rem;
    max-inline-size: 15rem;
}

.border-bottom {
    border-block-end: var(--bs-border-width) var(--bs-border-style) #2f3349 !important;
}

.mini_text {
    font-size: 0.55rem;
    color: #888;
}

 .kv-fileinput-caption {
    border-radius: 6px;
}

.file-caption-main {
    font-family: 'Georgia', serif;
}

.btn-file {
    background: var(--bs-btn-bg);
    border-color: var(--bs-btn-bg);
}

.file-zoom-detail .file-actions {
    margin-top: 0.5rem;
}

.progress-bar {
    background: var(--accent);
}

.uploaded-files {
    margin-top: 2rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-item i {
    font-size: 1.25rem;
    color: var(--accent);
}

.file-item span {
    font-size: 0.9rem;
    color: var(--text);
}