/* Web/masaustu ortak davranis katmani. */
.oto380-five-column-dashboard {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.dashboard-wrap > .workflow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.dashboard-wrap > .workflow-grid > .workflow-column {
    width: auto;
    min-width: 0;
}

.workflow-grid .flow-card .badge {
    position: relative;
    cursor: pointer;
    transition: filter .14s ease, box-shadow .14s ease, transform .14s ease;
}

.workflow-grid .flow-card .badge:hover {
    z-index: 2;
    filter: brightness(1.08) saturate(1.18);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, .92),
        0 0 0 4px rgba(0, 159, 181, .28),
        0 0 13px rgba(0, 159, 181, .52);
    transform: translateY(-1px);
}

.workflow-grid .flow-card:has(.badge:hover) {
    box-shadow: none !important;
    transform: none !important;
}

.summary-strip .date-tools > .eyebrow {
    display: none !important;
}

.summary-strip .date-tools {
    gap: 0;
}

.oto380-finance-column {
    min-width: 0;
    overflow: hidden;
}

.oto380-finance-column .oto380-finance-body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    height: 100%;
    padding: 10px;
    background:
        linear-gradient(180deg, rgba(226, 246, 247, .82), rgba(235, 243, 250, .92));
}

.oto380-finance-section-title {
    color: #61768f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.oto380-finance-cards {
    display: grid;
    gap: 8px;
    align-content: start;
}

.oto380-finance-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 66px;
    padding: 9px 10px;
    border: 1px solid #bed6e7;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 9px rgba(23, 65, 91, .06);
}

.oto380-finance-card.cash {
    border-left: 4px solid #13a57a;
}

.oto380-finance-card.sales {
    border-left: 4px solid #66a844;
}

.oto380-finance-card.purchase {
    border-left: 4px solid #d28a3a;
}

.oto380-finance-card.bank {
    border-left: 4px solid #2378cb;
}

.oto380-finance-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #e2f4f1;
    color: #087b60;
    font-size: 17px;
    font-weight: 900;
}

.oto380-finance-card.bank .oto380-finance-icon {
    background: #e5f0fb;
    color: #1766b0;
}

.oto380-finance-card.sales .oto380-finance-icon {
    background: #e5f2dc;
    color: #397a20;
}

.oto380-finance-card.purchase .oto380-finance-icon {
    background: #f8e5cf;
    color: #a45c19;
}

.oto380-finance-label {
    color: #61768f;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.oto380-finance-value {
    margin-top: 2px;
    color: #09243e;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.oto380-finance-general {
    display: grid;
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid #bdd6e6;
}

.oto380-account-balance {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 58px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    max-width: calc(100% - 250px);
    padding: 7px 12px;
    border: 1px solid #69b9d1;
    border-radius: 10px;
    background: #edfaff;
    color: #075b77;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(15, 76, 102, .08);
}

.oto380-account-balance strong {
    color: #082b48;
    font-size: 14px;
}

@media (max-width: 1280px) {
    .oto380-five-column-dashboard {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {
    .dashboard-wrap > .workflow-grid {
        grid-template-columns: repeat(5, minmax(220px, 1fr)) !important;
        overflow-x: auto;
    }
}

@media (max-width: 820px) {
    .oto380-five-column-dashboard {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .oto380-account-balance {
        position: static;
        max-width: none;
        margin: 12px 16px 0;
    }
}
