/* Bayi Portal */
.login-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.login-card {
    padding: 34px;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-logo img {
    height: 44px;
}

.login-title {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.6px;
}

.login-help {
    color: var(--muted);
    margin: 6px 0 0;
}

.form-row {
    display: grid;
    gap: 7px;
}

.form-row label {
    font-weight: 800;
    font-size: 14px;
}

.login-message {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    margin-top: 14px;
}

.login-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.login-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.portal-shell {
    background: #f7fafc;
}

.portal-bar {
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.portal-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.portal-user {
    text-align: right;
    color: var(--muted);
    font-size: 14px;
}

.portal-user b {
    display: block;
    color: var(--dark);
    font-size: 16px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.portal-tile {
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
    transition: .16s ease;
}

.portal-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(17, 24, 39, .10);
}

.portal-tile .icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef7ff;
    color: var(--blue);
    font-size: 22px;
    margin-bottom: 14px;
}

.portal-tile h3 {
    margin: 0 0 6px;
}

.portal-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media(max-width:900px) {
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-bar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-user {
        text-align: left;
    }
}

@media(max-width:580px) {
    .login-card {
        padding: 24px;
    }

    .login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}
.portal-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.portal-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.portal-table th,
.portal-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 14px;
}

.portal-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

.portal-table tr:hover td {
    background: #f9fbff;
}

.btn.mini {
    padding: 8px 12px;
    font-size: 13px;
}

.portal-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.portal-filters label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.portal-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.portal-table th[data-sort]::after {
    content: " ↕";
    font-size: 12px;
    color: #94a3b8;
}

.portal-table th.sort-asc::after {
    content: " ↑";
    color: #0284c7;
}

.portal-table th.sort-desc::after {
    content: " ↓";
    color: #0284c7;
}

@media (max-width: 768px) {
    .portal-filters {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
    margin-bottom: 28px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.detail-header h2 {
    margin: 0 0 6px;
    color: #0f172a;
}

.detail-header p {
    margin: 0;
    color: #64748b;
}

.detail-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    padding: 8px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.detail-grid div {
    background: #f8fafc;
    border-radius: 14px;
    padding: 13px;
}

.detail-grid b {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.detail-grid span {
    font-weight: 700;
    color: #0f172a;
}

.detail-note {
    margin-top: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 14px;
}

.detail-note p {
    margin: 8px 0 0;
}

.portal-section-title {
    font-size: 24px;
    margin: 0 0 16px;
}

.timeline-list {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}

.timeline-date {
    color: #0369a1;
    font-weight: 800;
}

.timeline-title {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.timeline-title span {
    color: #64748b;
    font-weight: 700;
    margin-left: 8px;
}

.timeline-sub {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 8px;
}

.timeline-content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.belge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.belge-chip {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.empty-box {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 22px;
    color: #64748b;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
    }
}

.hareket-menu{
    position:absolute;
    top:10px;
    right:10px;
}

.timeline-content{
    position:relative;
}

.hareket-menu-btn{
    border:none;
    background:none;
    font-size:20px;
    cursor:pointer;
    color:#777;
    padding:6px 10px;
}

.hareket-menu-btn:hover{
    color:#0b84d8;
}

.hareket-menu-list{

    display:none;

    position:absolute;
    right:0;
    top:34px;

    width:240px;

    background:#fff;

    border:1px solid #ddd;
    border-radius:10px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    overflow:hidden;

    z-index:999;
}

.hareket-menu-list a{

    display:block;

    padding:12px 16px;

    text-decoration:none;

    color:#333;
}

.hareket-menu-list a:hover{

    background:#f5f7fb;
}

/* Bayi giriş kartı */
.login-card {
    background-color: #2b2b2b !important;
    border-color: #444 !important;
    color: #fff;
}

/* Başlık ve etiketler */
.login-card .login-title,
.login-card label {
    color: #fff !important;
}

/* Ana sayfaya dön butonu */
.login-card .btn.ghost {
    color: #fff !important;
    border-color: #666;
    background-color: #3a3a3a;
}

.login-card .btn.ghost:hover {
    background-color: #4a4a4a;
}