.tablet-setup-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.tablet-app-filters {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr);
    gap: 8px;
    padding: 6px 14px;
    border-bottom: 1px solid #d9e2e8;
    background: #f5f8fa;
}

.tablet-app-filters label {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #415866;
    font-size: 12px;
    font-weight: 700;
}

.tablet-app-filters select,
.tablet-setup-filters select {
    width: 100%;
    min-height: 42px;
    padding: 8px 34px 8px 11px;
    border: 1px solid #bdcbd4;
    border-radius: 7px;
    background: #fff;
    color: #173746;
}

.tablet-app-filters select{min-height:34px;padding:5px 30px 5px 9px;border-radius:6px;font-size:12px}

.tablet-job-filter-title {
    margin: 2px 0 7px;
    color: #667d89;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.job-scope {
    margin-left: 8px;
    color: #637b88;
    font-size: 11px;
    font-weight: 600;
}

.tracking-button {
    border-color: rgba(255, 255, 255, .32) !important;
    background: rgba(255, 255, 255, .1) !important;
    color: #fff !important;
    font-weight: 800;
}

.tablet-chat-button{position:relative;min-width:42px!important;width:42px;padding:0!important;border-color:rgba(255,255,255,.32)!important;background:rgba(255,255,255,.1)!important;color:#fff!important;font-size:19px!important}
.tablet-chat-button b{position:absolute;top:-7px;right:-7px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#ef5350;color:#fff;font-size:10px;line-height:19px;text-align:center;box-sizing:border-box;box-shadow:0 0 0 2px #173746}
.tablet-chat-layout{display:grid;grid-template-columns:280px minmax(0,1fr);height:100%;min-height:0;border:1px solid #d7e0e5;border-radius:8px;overflow:hidden}
.tablet-chat-people{overflow:auto;background:#f5f8fa;border-right:1px solid #d7e0e5}
.tablet-chat-person{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:10px;border:0;border-bottom:1px solid #e1e8ec;background:transparent;color:#274451;text-align:left;cursor:pointer}
.tablet-chat-person.selected{background:#e5f2f5}.tablet-chat-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#176b7d;color:#fff;font-weight:900}.tablet-chat-person span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tablet-chat-person small{display:block;color:#728690;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tablet-chat-unread{min-width:21px;padding:3px 6px;border-radius:11px;background:#e64a4a;color:#fff;font-size:10px;text-align:center}
.tablet-chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.tablet-chat-title{padding:10px 12px;border-bottom:1px solid #e0e7eb;font-weight:800;color:#244754}.tablet-chat-messages{flex:1;min-height:0;overflow:auto;padding:12px;background:#f7fafb}.tablet-chat-bubble{max-width:78%;margin:0 0 8px;padding:8px 10px;border-radius:10px;background:#e8eef2;color:#29434e;white-space:pre-wrap;overflow-wrap:anywhere}.tablet-chat-bubble.mine{margin-left:auto;background:#d8f1ea}.tablet-chat-bubble time{display:block;margin-top:4px;color:#758891;font-size:9px;text-align:right}.tablet-chat-write{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:9px;border-top:1px solid #e0e7eb}.tablet-chat-write textarea{min-height:46px;max-height:100px;resize:vertical;padding:9px;border:1px solid #bdcbd4;border-radius:7px;font:inherit}.tablet-chat-empty{padding:22px;color:#70858f;text-align:center}
@media(max-width:720px){.tablet-chat-layout{grid-template-columns:120px minmax(0,1fr)}.tablet-chat-person{grid-template-columns:30px minmax(0,1fr);padding:8px}.tablet-chat-avatar{width:30px;height:30px}.tablet-chat-person small,.tablet-chat-unread{display:none}.tablet-chat-bubble{max-width:92%}}

.tablet-tracking-popup .dx-popup-content {
    padding: 12px;
}

.tablet-tracking-popup .dx-treelist {
    height: 100%;
}

.tablet-tracking-popup .dx-toolbar .dx-button {
    border-radius: 7px;
}

.tablet-tracking-popup .tracking-hide-done-active .dx-button-content {
    background: #e8f2f5;
    color: #0d6171;
}

.tablet-tracking-cost {
    white-space: normal;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.tablet-tracking-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf2f4;
    color: #294754;
    font-size: 11px;
    font-weight: 800;
}

.tablet-tracking-status.running { background: #daf4e6; color: #12643b; }
.tablet-tracking-status.paused { background: #fff0cf; color: #805700; }
.tablet-tracking-status.done { background: #e2e8eb; color: #52666f; }

.tablet-tracking-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tablet-tracking-action {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #b9c8cf;
    border-radius: 6px;
    background: #fff;
    color: #244754;
    cursor: pointer;
    font-weight: 900;
}

.tablet-tracking-action.start { color: #087249; border-color: #83cbb0; }
.tablet-tracking-action.pause { color: #8a5b00; border-color: #e3bf69; }
.tablet-tracking-action.finish { color: #0d6171; border-color: #76b9c5; }
.tablet-tracking-action.add { color: #315f9b; border-color: #91afd2; }
.tablet-tracking-action.edit { color: #5b4778; border-color: #ad9ac4; }
.tablet-tracking-action.purchase { color: #8b5900; border-color: #d9bc79; font-size: 16px; }
.job-actions .tablet-purchase-quick-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:1px solid #d9bc79;border-radius:8px;background:#fff8e9;color:#8b5900;font-size:20px;line-height:1;}
.tablet-tracking-action.detail { color: #17677b; border-color: #91bdc9; font-size: 18px; }
.tablet-tracking-action:disabled { opacity: .38; cursor: not-allowed; }
.tablet-tracking-complete { color: #18724d; font-size: 18px; font-weight: 900; }
.tablet-tracking-title { max-width: 100%; padding: 2px 3px; border: 0; background: transparent; color: #174f68; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.tablet-tracking-title:hover, .tablet-tracking-title:focus { color: #08758a; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.tablet-track-edit { display: grid; gap: 12px; }
.tablet-track-edit label { display: grid; gap: 5px; color: #38515d; font-weight: 700; }
.tablet-track-edit input, .tablet-track-edit textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #bdcbd4; border-radius: 7px; background: #fff; color: #173746; font: inherit; }
.tablet-track-edit textarea { min-height: 110px; resize: vertical; }

.tablet-purchase-popup .dx-popup-content { padding: 0; }
.tablet-purchase-panel { height: 100%; overflow: auto; padding: 16px; box-sizing: border-box; color: #223f4d; background: #f7fafb; }
.tablet-purchase-context { padding: 10px 12px; border-left: 3px solid #17788c; border-radius: 5px; background: #eaf3f6; font-weight: 800; overflow-wrap: anywhere; }
.tablet-purchase-tabs { display:flex; gap:6px; margin:12px 0 4px; padding-bottom:7px; border-bottom:1px solid #d5e0e6; }
.tablet-purchase-tabs button { flex:1; min-height:42px; padding:8px 10px; border:1px solid #c8d8df; border-radius:7px; background:#fff; color:#355768; font:inherit; font-weight:700; cursor:pointer; }
.tablet-purchase-tabs button.selected { border-color:#17788c; background:#e8f4f6; color:#0b5c6d; }
.tablet-purchase-tabs button:disabled { opacity:.5; cursor:not-allowed; }
.tablet-purchase-count { white-space:nowrap; font-weight:700; color:#315e73; }
.tablet-new-job-assignment { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; padding:12px; border:1px solid #c8dce2; border-radius:9px; background:#f0f7f8; }
.tablet-new-job-assignment strong { grid-column:1/-1; color:#164d5b; }
.tablet-new-job-assignment label { display:grid; gap:5px; min-width:0; font-weight:700; }
.tablet-new-job-assignment select { width:100%; min-height:42px; box-sizing:border-box; padding:8px 10px; border:1px solid #aebfc7; border-radius:7px; background:#fff; color:#173746; font:inherit; }
@media(max-width:560px){.tablet-new-job-assignment { grid-template-columns:1fr; }}
.tablet-purchase-status { min-height: 19px; margin: 10px 0; color: #315c69; font-size: 13px; }
.tablet-purchase-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 13px; border: 1px solid #d8e3e8; border-radius: 9px; background: #fff; }
.tablet-purchase-form label { display: grid; gap: 5px; margin: 0; color: #415d69; font-size: 12px; font-weight: 800; }
.tablet-purchase-form .wide { grid-column: 1 / -1; }
.tablet-purchase-form input, .tablet-purchase-form textarea { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 10px; border: 1px solid #bacbd2; border-radius: 6px; background: #fff; color: #183745; font: inherit; font-size: 14px; }
.tablet-purchase-form textarea { min-height: 65px; resize: vertical; }
.tablet-purchase-form button { justify-self: start; }
.tablet-purchase-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; gap: 12px; }
.tablet-purchase-list-heading button { padding: 5px 10px; border: 1px solid #b9cbd2; border-radius: 6px; background: #fff; color: #315564; cursor: pointer; }
.tablet-purchase-list { display: grid; gap: 8px; }
.tablet-purchase-empty { margin: 0; padding: 18px; border: 1px dashed #c8d5da; border-radius: 7px; color: #657d88; text-align: center; }
.tablet-purchase-item { padding: 10px 12px; border: 1px solid #d8e3e8; border-radius: 8px; background: #fff; }
.tablet-purchase-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.tablet-purchase-item-top span { padding: 3px 7px; border-radius: 12px; background: #e7f1f3; color: #0d5e70; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tablet-purchase-item p { margin: 6px 0 0; overflow-wrap: anywhere; }
.tablet-purchase-item small { color: #6c8089; }
.tablet-purchase-decision { color: #315e73; font-weight: 700; }
.tablet-job-detail-popup .dx-popup-content { padding: 0; }
.tablet-job-detail { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #f7fafb; }
.tablet-job-detail-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid #d5e0e6; background: #fff; }
.tablet-job-detail-tabs button { min-height: 40px; padding: 7px 12px; border-radius: 7px 7px 0 0; border-bottom: 0; background: #f2f6f8; font-size: 13px; }
.tablet-job-detail-tabs button.selected { background: #176d7e; border-color: #176d7e; color: #fff; }
.tablet-job-detail-body { flex: 1; overflow: auto; padding: 18px; }
.tablet-job-detail-body h2 { margin: 0 0 6px; font-size: 21px; overflow-wrap: anywhere; }
.tablet-job-detail-body p { line-height: 1.5; }
.tablet-job-detail-scope { margin-top: 0; color: #5f7884; font-weight: 700; }
.tablet-job-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.tablet-job-detail-facts>div { display: grid; gap: 5px; padding: 10px; border: 1px solid #d9e4e9; border-radius: 7px; background: #fff; }
.tablet-job-detail-facts span { color: #6a818b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tablet-job-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tablet-job-detail-purchase { flex: 1; min-height: 0; overflow: hidden; }
@media(max-width:560px) { .tablet-purchase-form { grid-template-columns: 1fr; } .tablet-purchase-form .wide { grid-column: auto; } .tablet-purchase-item-top { flex-wrap: wrap; } }
@media(max-width:560px) { .tablet-job-detail-facts { grid-template-columns: 1fr 1fr; } .tablet-job-detail-tabs button { flex: 1; } }

@media (max-width: 900px) {
    .tablet-tracking-popup .dx-datagrid-search-panel { width: 150px !important; }
    .tablet-tracking-popup .dx-toolbar-item-content .dx-button-text { display: none; }
}

@media (max-width: 760px) {
    .tablet-app-filters {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 5px 9px;
    }

    .tablet-app-filters label {
        grid-template-columns: 1fr;
    }
    .tablet-app-filters label>span{display:none}
}

@media (max-width: 460px) {
    .tablet-app-filters{grid-template-columns:1fr 1fr}
    .tablet-app-filters label {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Üst butonlar ve iş durumu filtreleri: tek satır, yatay kaydırmalı, aynı hizada */
#tabletApp .top-right{flex:1 1 auto;min-width:0;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:9px 8px 4px 4px;margin-top:-5px;margin-bottom:-4px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
#tabletApp .top-right::-webkit-scrollbar{display:none}
#tabletApp .top-right>*{flex:0 0 auto;scroll-snap-align:end}
#tabletApp .top-right>*:first-child{margin-left:auto}
#tabletApp .tablet-heading{flex:0 0 auto}
.status-filters{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.status-filters::-webkit-scrollbar{display:none}
.status-filters button{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start}
/* Kart eylem satırındaki ikon düğmeleri (dosya, satın alma, hatırlatma) aynı boyutta */
.job-actions .job-file-quick-icon,.job-actions .tablet-purchase-quick-icon,.job-actions .hatirlatma-simge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:9px;font-size:20px;line-height:1}
.job-actions .hatirlatma-simge:not(.aktif){border:1px solid #cbd8dd;background:#fff}
.job-actions .hatirlatma-simge svg{width:22px;height:22px}
.job-actions .job-file-quick-actions{gap:6px}

/* Ana menu (m.aspx) ev simgesi */
.topbar-ev{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border-radius:9px;border:1px solid rgba(255,255,255,.32);background:rgba(255,255,255,.1);color:#fff;text-decoration:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box}
.topbar-ev:hover,.topbar-ev:focus-visible{background:rgba(255,255,255,.22);outline:none}
.topbar-ev svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.setup-ev{position:absolute;top:10px;left:10px;z-index:5;background:rgba(18,43,59,.55)}
@media(max-width:760px){.topbar-ev{width:36px;height:36px}}

/* Tablet: ust menu kapaliyken de gorunen ev sekmesi */
#tabletApp .tablet-ev-sabit{position:absolute;top:0;left:10px;width:46px;height:28px;border:0;border-radius:0 0 10px 10px;background:var(--navy);box-shadow:0 5px 13px rgba(18,43,59,.22);z-index:2}
#tabletApp .tablet-ev-sabit svg{width:18px;height:18px}
#tabletApp .tablet-elevator:not(.is-collapsed) .tablet-ev-sabit{display:none}
