/* Esnafhan Kasa'ya özel stiller. Ortak kabuk: _content/PersonelTakip.Mobile.Shared/pts-mobile.css */

#app { min-height: 100dvh; }

/* ---- Açılış (WASM iniyor) ---- */
.ptm-splash {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    color: #0F766E;
}

.ptm-splash img { width: 72px; height: 72px; border-radius: 18px; }
.ptm-splash-name { font-weight: 700; font-size: 1.1rem; }

.ptm-splash-bar {
    position: relative;
    width: 140px;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: #CCE7E4;
}

/* Blazor yükleme yüzdesini --blazor-load-percentage değişkeniyle verir. */
.ptm-splash-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--blazor-load-percentage, 10%);
    background: #0F766E;
    transition: width .2s;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    padding: .7rem 2.5rem .8rem 1.25rem;
    background: #FEF3C7;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
}

#blazor-error-ui .dismiss { position: absolute; top: .6rem; right: .9rem; cursor: pointer; }

/* ---- Ana sayfa özeti ---- */
.ptm-summary-balance { margin: 4px 0 12px; font-size: 1.6rem; font-weight: 700; }
.ptm-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ---- Yeni hareket ---- */
.ptm-direction { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

.ptm-dir {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--mud-palette-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    color: var(--mud-palette-text-secondary);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.ptm-dir.out.active { border-color: var(--mud-palette-error); background: #FEF2F2; color: var(--mud-palette-error); }
.ptm-dir.in.active { border-color: var(--mud-palette-success); background: #F0FDF4; color: var(--mud-palette-success); }

.ptm-amount-field input { font-size: 1.5rem !important; font-weight: 700 !important; }

.ptm-center-text { text-align: center; }

/* ---- Hareket listesi ---- */
.ptm-tx-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ptm-tx-icon.in { background: #DCFCE7; color: var(--mud-palette-success); }
.ptm-tx-icon.out { background: #FEE2E2; color: var(--mud-palette-error); }

.ptm-cancelled { opacity: .55; }
.ptm-cancelled .ptm-strong { text-decoration: line-through; }
.ptm-tag-cancel { color: var(--mud-palette-error); font-size: .7rem; font-weight: 600; }

/* ---- Profil ---- */
.ptm-perm { padding: 6px 0; }
