/* RESTOM_UST_NOTLAR_V1: üst çubuk Notlar, Rezervasyon ve hesap menüsü */
.rs-ust-on .top-bar .top-actions .user-profile { display: none !important; }
.rs-ust { position: relative; display: flex; align-items: center; gap: 8px; }
.rs-ust button, .rs-ust-alarm button { font-family: inherit; cursor: pointer; min-width: 0; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.2; }
.rs-ust .rs-ust-btn { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid #dbe6df; background: #fff; color: #26372d; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rs-ust-btn.on { background: #0e9a60; border-color: #0e9a60; color: #fff; }
.rs-ust-n { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #eb9b0c; color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.rs-ust-n[hidden] { display: none; }
.rs-ust-btn.on .rs-ust-n { background: #fff; color: #0e9a60; }
.rs-ust .rs-ust-av { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #0e9a60; color: #fff; font-size: 16px; font-weight: 800; display: grid; place-items: center; }
.rs-ust-av.on { box-shadow: 0 0 0 3px rgba(14, 154, 96, .25); }
.rs-ust-pan { position: absolute; top: calc(100% + 10px); right: 0; width: 400px; max-height: min(70vh, 560px); overflow: auto; background: #fff; color: #17231d; border: 1px solid #e1e9e4; border-radius: 16px; box-shadow: 0 18px 40px rgba(20, 40, 30, .18); padding: 14px; z-index: 4000; text-align: left; }
.rs-ust-pan[hidden] { display: none; }
.rs-ust-pan-me { width: 220px; }
.rs-ust-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; }
.rs-ust-head small { font-size: 11px; color: #7c8e83; font-weight: 600; }
.rs-ust-tabs, .rs-ust-opts, .rs-ust-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rs-ust-tab { padding: 6px 10px; border-radius: 8px; border: 0; background: #f2f6f3; color: #26372d; font-size: 12px; font-weight: 700; }
.rs-ust-tab.on { background: #17231d; color: #fff; }
.rs-ust-add { display: flex; gap: 6px; margin-bottom: 8px; }
.rs-ust-add input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid #0e9a60; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: #17231d; outline: none; }
.rs-ust-add button { padding: 0 14px; border: 0; border-radius: 10px; background: #0e9a60; color: #fff; font-weight: 800; font-size: 13px; }
.rs-ust-add button:disabled { opacity: .6; }
.rs-ust-chip { padding: 5px 9px; border-radius: 8px; border: 1px solid transparent; background: #f2f6f3; color: #46584e; font-size: 12px; font-weight: 700; }
.rs-ust-chip.on { background: #e8f3ed; border-color: #0e9a60; color: #0b7a4b; }
.rs-ust-sel, .rs-ust-time input { padding: 8px 10px; border: 1px solid #dbe6df; border-radius: 9px; font: inherit; font-size: 13px; background: #fff; color: #17231d; }
.rs-ust-sel { width: 100%; margin-bottom: 10px; }
.rs-ust-time { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: #46584e; }
.rs-ust-it { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 11px; background: #f7faf8; margin-bottom: 7px; font-size: 13px; }
.rs-ust .rs-ust-c { width: 20px; height: 20px; min-width: 20px; min-height: 20px; flex: none; margin-top: 1px; border-radius: 6px; border: 2px solid #b9c9bf; background: #fff; padding: 0; }
.rs-ust-it.done { opacity: .55; }
.rs-ust-it.done .rs-ust-c { background: #0e9a60; border-color: #0e9a60; }
.rs-ust-it.done p { text-decoration: line-through; }
.rs-ust-body { flex: 1; min-width: 0; }
.rs-ust-body p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rs-ust-body small { display: block; margin-top: 3px; color: #7c8e83; font-size: 11px; }
.rs-ust-del { border: 0; background: none; color: #9aaba1; font-size: 18px; line-height: 1; padding: 0 2px; }
.rs-ust-pill { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 800; margin-right: 5px; vertical-align: 1px; }
.rs-ust-pill.p1 { background: #fff1e0; color: #a55b00; }
.rs-ust-pill.p2 { background: #e8f3ed; color: #0b7a4b; }
.rs-ust-pill.p3 { background: #fdecec; color: #b42318; }
.rs-ust-pill.p4 { background: #eef0f3; color: #46584e; }
.rs-ust-empty { padding: 14px; text-align: center; color: #7c8e83; font-size: 13px; }
.rs-ust-rz { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; background: #f7faf8; margin-bottom: 7px; }
.rs-ust-t { width: 54px; flex: none; padding: 6px 0; border-radius: 9px; background: #f3efff; color: #5b3fd0; text-align: center; font-weight: 800; font-size: 13px; }
.rs-ust-rz p { margin: 0; font-size: 13px; font-weight: 700; }
.rs-ust-rz small { color: #7c8e83; font-size: 11px; }
.rs-ust-rz > div { flex: 1; min-width: 0; }
.rs-ust-rzb { display: flex; gap: 6px; }
.rs-ust-rzb button, .rs-ust-alarm button { padding: 6px 10px; border-radius: 8px; border: 1px solid #dbe6df; background: #fff; color: #26372d; font-size: 12px; font-weight: 700; }
.rs-ust-rzb button.pri, .rs-ust-alarm button.pri { background: #0e9a60; border-color: #0e9a60; color: #fff; }
.rs-ust-big { display: block; width: 100%; margin-top: 4px; padding: 11px; border: 0; border-radius: 11px; background: #7c5ce6; color: #fff; font-weight: 800; font-size: 13px; }
.rs-ust-link { border: 0; background: none; color: #0b7a4b; font-weight: 700; font-size: 13px; }
.rs-ust-me { display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 10px; border-bottom: 1px solid #e1e9e4; margin-bottom: 8px; }
.rs-ust-me small { color: #7c8e83; font-size: 12px; }
.rs-ust-menu { width: 100%; padding: 10px; border: 0; border-radius: 10px; background: #fdecec; color: #b42318; font-weight: 800; font-size: 13px; text-align: left; }
.rs-ust-masa { position: absolute; top: 8px; left: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); display: grid; place-items: center; font-size: 14px; cursor: help; }
.rs-ust-alarm { position: fixed; right: 16px; bottom: 16px; z-index: 6000; width: min(340px, calc(100vw - 32px)); padding: 14px; border-radius: 14px; background: #fff8e6; border: 1.5px solid #eb9b0c; color: #5c3a00; box-shadow: 0 16px 36px rgba(0, 0, 0, .2); }
.rs-ust-alarm p { margin: 6px 0 10px; font-weight: 600; overflow-wrap: anywhere; }
.rs-ust-alarm span { display: flex; justify-content: flex-end; gap: 8px; }

/* RESTOM_UST_REZERVASYON_V2 */
.rs-ust-pan-rez { width: 430px; }
.rs-ust-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.rs-ust-date { margin-left: auto; padding: 5px 8px; border: 1px solid #dbe6df; border-radius: 8px; font: inherit; font-size: 12px; background: #fff; color: #17231d; }
.rs-ust-sub { margin: 10px 0 6px; font-size: 11px; font-weight: 800; color: #7c8e83; text-transform: uppercase; letter-spacing: .4px; }
.rs-ust-rz.dim { opacity: .55; }
.rs-ust-rz.open { margin-bottom: 0; border-radius: 11px 11px 0 0; }
.rs-ust-t.late { background: #fdecec; color: #b42318; }
.rs-ust-ppl { font-size: 11px; color: #0b7a4b; background: #e8f3ed; padding: 1px 6px; border-radius: 5px; margin-left: 2px; }
.rs-ust-rz small { display: block; overflow-wrap: anywhere; }
.rs-ust .rs-ust-rzb .more { width: 30px; padding: 6px 0; font-size: 15px; line-height: 1; }
.rs-ust-st { padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rs-ust-st.st-geldi { background: #e8f3ed; color: #0b7a4b; }
.rs-ust-st.st-gelmedi { background: #fff1e0; color: #a55b00; }
.rs-ust-st.st-iptal { background: #eef0f3; color: #46584e; }
.rs-ust-rzx { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; margin-bottom: 7px; border-radius: 0 0 11px 11px; background: #eef5f1; }
.rs-ust-rzx button, .rs-ust-act { padding: 6px 10px; border-radius: 8px; border: 1px solid #dbe6df; background: #fff; color: #26372d; font-size: 12px; font-weight: 700; text-decoration: none; }
.rs-ust-rzx button.red { color: #b42318; border-color: #f3c4c4; }
.rs-ust-rzx small { flex-basis: 100%; color: #7c8e83; font-size: 11px; }
.rs-ust-rzf label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #46584e; }
.rs-ust-rzf input, .rs-ust-rzf select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #dbe6df; border-radius: 9px; font: inherit; font-size: 14px; background: #fff; color: #17231d; box-sizing: border-box; }
.rs-ust-rzf input:focus, .rs-ust-rzf select:focus { outline: none; border-color: #0e9a60; box-shadow: 0 0 0 3px rgba(14, 154, 96, .15); }
.rs-ust-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-ust-rzf .rs-ust-opts { margin-top: -2px; }
.rs-ust-warn { margin: 4px 0 8px; padding: 8px 10px; border-radius: 9px; background: #fff8e6; border: 1px solid #f2c15c; color: #8a5100; font-size: 12px; font-weight: 700; }
.rs-ust .rs-ust-big.green { background: #0e9a60; }
.rs-ust-big:disabled { opacity: .6; }

/* Masa kartındaki "… dakikadır yeni sipariş yok" uyarısı her ekranda iki satıra kadar tam okunur. */
#tablesGrid.modern-grid-layout .table-card .restom-order-idle-note {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    white-space: normal; text-overflow: clip; border-radius: 10px !important; font-weight: 700; line-height: 1.25 !important;
}

/* Üst çubuk solu: menü · Restom logosu · işletme adı · arama */
.rs-ust-brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; margin: 0 16px 0 -12px; }
@media (min-width: 769px) {
    .rs-ust-on .top-bar { padding-left: 12px !important; }
    .rs-ust-on .top-bar .sidebar-toggle-btn { margin-right: 0 !important; }
}
.rs-ust-brand img { height: 26px; width: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .08)); }
.rs-ust-rest { padding-left: 10px; border-left: 1px solid rgba(0, 0, 0, .12); font-size: 14px; font-weight: 600; line-height: 18px; color: var(--text-muted, #64748b);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.rs-ust-rest[hidden] { display: none; }
.rs-ust-on .top-bar .search-bar { flex: 1 1 auto; max-width: none !important; margin-right: 14px; }
body.dark-mode .rs-ust-rest { border-left-color: rgba(255, 255, 255, .15); }
@media (max-width: 1100px) { .rs-ust-rest { max-width: 130px; } }

/* Masalar ekranı (bilgisayar/tablet): üst çubuk ve alan sekmeleri tek parça, aşağı inerken sabit kalır. */
@media (min-width: 769px) {
    .rs-ust-dash .top-bar { position: sticky !important; top: 0 !important; margin-bottom: 0 !important;
        border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; box-shadow: none !important; }
    .rs-ust-dash .rs-ust-tabs-row { position: sticky; top: var(--rs-ust-bar-h, 72px); z-index: 89;
        margin: 0 0 16px !important; padding: 0 14px 12px; background: var(--sidebar-bg, #fff);
        border: 1px solid var(--glass-border, #e5ece8); border-top: 1px solid rgba(0, 0, 0, .06);
        border-radius: 0 0 var(--radius-md, 16px) var(--radius-md, 16px); box-shadow: 0 8px 18px rgba(16, 60, 38, .07); }
    .rs-ust-dash .top-bar { background: var(--sidebar-bg, #fff) !important; backdrop-filter: none !important; }
    .rs-ust-dash .rs-ust-tabs-row #tableFilters { flex: 1 1 auto; border: 0 !important; box-shadow: none !important;
        background: transparent !important; padding: 10px 0 0 !important; }
    .rs-ust-dash body.dark-mode .rs-ust-tabs-row { border-top-color: rgba(255, 255, 255, .08); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
}

/* Giriş sayfası: RESTOM yazısı yerine logo */
#loginOverlay .rs-ust-login-logo { display: block; height: 52px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .08)); }

/* Masa kartları: resimlerdeki iç etiket (ve dolu masadaki kırmızı çizgi) kaldırıldı; ad etiketi tek ve net.
   Masa, sandalyeler, tabaklar ve süsler aynı kalır. */
html body #tablesGrid .table-card .table-graphic-container {
    --rs-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 184 152' width='184' height='152'%3E%3Cdefs%3E%3ClinearGradient id='oak' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ecd2a6'/%3E%3Cstop offset='.55' stop-color='%23dfbb8a'/%3E%3Cstop offset='1' stop-color='%23d0a774'/%3E%3C/linearGradient%3E%3ClinearGradient id='edge' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23b98a55'/%3E%3Cstop offset='1' stop-color='%2394683a'/%3E%3C/linearGradient%3E%3ClinearGradient id='bk' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2379a290'/%3E%3Cstop offset='1' stop-color='%2357826f'/%3E%3C/linearGradient%3E%3ClinearGradient id='st' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238db6a2'/%3E%3Cstop offset='1' stop-color='%236a9683'/%3E%3C/linearGradient%3E%3Cfilter id='b1' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3C/filter%3E%3Cfilter id='b2' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='.8'/%3E%3C/filter%3E%3Cfilter id='b6' x='-20%25' y='-30%25' width='140%25' height='170%25'%3E%3CfeGaussianBlur stdDeviation='5.5'/%3E%3C/filter%3E%3Cfilter id='grain' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014 .5' numOctaves='4' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .40 0 0 0 0 .24 0 0 0 0 .10 1.9 0 0 0 -.62'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Cfilter id='grain2' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05 .9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 1.4 0 0 0 -.72'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Cg id='c'%3E%3Crect x='1.5' y='3.2' width='28' height='22' rx='6' fill='%2310241a' opacity='.24' filter='url(%23b1)'/%3E%3Crect x='0' y='0' width='30' height='8.6' rx='4.3' fill='url(%23bk)' stroke='%2343705e' stroke-width='.6'/%3E%3Crect x='3' y='1.4' width='24' height='2' rx='1' fill='%23fff' opacity='.2'/%3E%3Crect x='1.5' y='6.6' width='27' height='17' rx='6' fill='url(%23st)' stroke='%234b7866' stroke-width='.7'/%3E%3Cellipse cx='15' cy='13.6' rx='9.5' ry='5' fill='%23fff' opacity='.15'/%3E%3Crect x='4.5' y='9.3' width='21' height='11.4' rx='4' fill='none' stroke='%23fff' stroke-opacity='.3' stroke-width='.6' stroke-dasharray='1.3 1.6'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23c' transform='translate(61.0 26.5) rotate(0) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(123.0 26.5) rotate(0) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(61.0 125.5) rotate(180) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(123.0 125.5) rotate(180) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(24.5 76.0) rotate(-90) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(159.5 76.0) rotate(90) translate(-15 -12)'/%3E%3Crect x='33' y='45' width='124' height='88' rx='15' fill='%230f2418' opacity='.26' filter='url(%23b6)'/%3E%3Crect x='30' y='37' width='124' height='88' rx='13' fill='url(%23edge)'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='url(%23oak)'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='%23000' filter='url(%23grain)' opacity='.55'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='%23000' filter='url(%23grain2)' opacity='.5'/%3E%3Crect x='30.6' y='32.6' width='122.8' height='86.8' rx='12.4' fill='none' stroke='%23fff' stroke-opacity='.55' stroke-width='1.2'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='none' stroke='%23a37844' stroke-width='.9'/%3E%3Crect x='32' y='117.4' width='120' height='1.6' rx='.8' fill='%237a5228' opacity='.28'/%3E%3Ccircle cx='51.6' cy='72.7' r='3' fill='%23000' opacity='.2' filter='url(%23b2)'/%3E%3Ccircle cx='51.0' cy='71.5' r='2.9' fill='%23fbfbf7' stroke='%23c9c9c0' stroke-width='.5'/%3E%3Ccircle cx='51.0' cy='71.5' r='1.1' fill='%239aa2aa'/%3E%3Ccircle cx='51.6' cy='82.7' r='3' fill='%23000' opacity='.2' filter='url(%23b2)'/%3E%3Ccircle cx='51.0' cy='81.5' r='2.9' fill='%234a4038' stroke='%23c9c9c0' stroke-width='.5'/%3E%3Ccircle cx='51.0' cy='81.5' r='1.1' fill='%23cfc7bc'/%3E%3Crect x='128.6' y='71.6' width='9' height='13' rx='1.8' fill='%23000' opacity='.2' filter='url(%23b2)'/%3E%3Crect x='128.0' y='70.0' width='9' height='13' rx='1.8' fill='%23d4dad6' stroke='%23b4bdb8' stroke-width='.5'/%3E%3Crect x='129.4' y='71.4' width='6.2' height='10.2' rx='1' fill='%23fbfaf5'/%3E%3Cpath d='M129.4 74.6H135.6M129.4 77.6H135.6' stroke='%23e6e1d2' stroke-width='.5'/%3E%3C/svg%3E");
}
html body #tablesGrid .table-card.occupied .table-graphic-container,
html body #tablesGrid .table-card.warning .table-graphic-container {
    --rs-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 184 152' width='184' height='152'%3E%3Cdefs%3E%3ClinearGradient id='oak' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ecd2a6'/%3E%3Cstop offset='.55' stop-color='%23dfbb8a'/%3E%3Cstop offset='1' stop-color='%23d0a774'/%3E%3C/linearGradient%3E%3ClinearGradient id='edge' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23b98a55'/%3E%3Cstop offset='1' stop-color='%2394683a'/%3E%3C/linearGradient%3E%3ClinearGradient id='bk' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2379a290'/%3E%3Cstop offset='1' stop-color='%2357826f'/%3E%3C/linearGradient%3E%3ClinearGradient id='st' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238db6a2'/%3E%3Cstop offset='1' stop-color='%236a9683'/%3E%3C/linearGradient%3E%3CradialGradient id='pw' cx='.4' cy='.35' r='.8'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23ebebe4'/%3E%3C/radialGradient%3E%3Cfilter id='b1' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3C/filter%3E%3Cfilter id='b2' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='.8'/%3E%3C/filter%3E%3Cfilter id='b6' x='-20%25' y='-30%25' width='140%25' height='170%25'%3E%3CfeGaussianBlur stdDeviation='5.5'/%3E%3C/filter%3E%3Cfilter id='grain' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014 .5' numOctaves='4' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .40 0 0 0 0 .24 0 0 0 0 .10 1.9 0 0 0 -.62'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Cfilter id='grain2' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05 .9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 1.4 0 0 0 -.72'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Cg id='c'%3E%3Crect x='1.5' y='3.2' width='28' height='22' rx='6' fill='%2310241a' opacity='.24' filter='url(%23b1)'/%3E%3Crect x='0' y='0' width='30' height='8.6' rx='4.3' fill='url(%23bk)' stroke='%2343705e' stroke-width='.6'/%3E%3Crect x='3' y='1.4' width='24' height='2' rx='1' fill='%23fff' opacity='.2'/%3E%3Crect x='1.5' y='6.6' width='27' height='17' rx='6' fill='url(%23st)' stroke='%234b7866' stroke-width='.7'/%3E%3Cellipse cx='15' cy='13.6' rx='9.5' ry='5' fill='%23fff' opacity='.15'/%3E%3C/g%3E%3Cg id='man1'%3E%3Cellipse cx='0' cy='2' rx='12.5' ry='6.2' fill='%23283e56' stroke='%2319293a' stroke-width='.6'/%3E%3Ccircle cx='0' cy='-1' r='5' fill='%23fcd7b8'/%3E%3Ccircle cx='0' cy='-1.2' r='4.8' fill='%232b241e'/%3E%3C/g%3E%3Cg id='man2'%3E%3Cellipse cx='0' cy='2' rx='12.5' ry='6.2' fill='%233a4c40' stroke='%23243129' stroke-width='.6'/%3E%3Ccircle cx='0' cy='-1' r='5' fill='%23f9cfab'/%3E%3Ccircle cx='0' cy='-1.2' r='4.8' fill='%23563821'/%3E%3C/g%3E%3Cg id='woman1'%3E%3Cellipse cx='0' cy='2' rx='11' ry='5.6' fill='%23703d4d' stroke='%234d2633' stroke-width='.6'/%3E%3Ccircle cx='0' cy='-0.8' r='4.8' fill='%23fde1c9'/%3E%3Cellipse cx='0' cy='-1.5' rx='4.7' ry='4.3' fill='%234a2e1b'/%3E%3Ccircle cx='0' cy='3.6' r='2.8' fill='%234a2e1b'/%3E%3C/g%3E%3Cg id='woman2'%3E%3Cellipse cx='0' cy='2' rx='11' ry='5.6' fill='%239e8052' stroke='%236e5733' stroke-width='.6'/%3E%3Ccircle cx='0' cy='-0.8' r='4.8' fill='%23fde1c9'/%3E%3Cellipse cx='0' cy='-1.5' rx='4.7' ry='4.3' fill='%23b88944'/%3E%3Ccircle cx='0' cy='3.6' r='2.8' fill='%23b88944'/%3E%3C/g%3E%3Cg id='meal'%3E%3Ccircle cx='.8' cy='1.7' r='9.3' fill='%23000' opacity='.18' filter='url(%23b2)'/%3E%3Ccircle r='9' fill='%23fbfbf7' stroke='%23d3d3ca' stroke-width='.6'/%3E%3Ccircle r='6.5' fill='url(%23pw)' stroke='%23deded6' stroke-width='.5'/%3E%3Crect x='11.5' y='-5.8' width='1.5' height='11.6' rx='.7' fill='%23b4bcc6'/%3E%3Crect x='-13' y='-5.8' width='1.8' height='11.6' rx='.8' fill='%23b4bcc6'/%3E%3Crect x='-4' y='-3.2' width='8' height='6.4' rx='1' fill='%23f8f6ed' stroke='%23ded7c6' stroke-width='.4'/%3E%3Ccircle cx='-14' cy='10.5' r='2.8' fill='%23bfe4f6' fill-opacity='.65' stroke='%2389bad1' stroke-width='.5'/%3E%3Ccircle cx='-14.7' cy='9.7' r='.7' fill='%23fff' opacity='.9'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23c' transform='translate(61.0 26.5) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(123.0 26.5) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(61.0 125.5) rotate(180) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(123.0 125.5) rotate(180) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(24.5 76.0) rotate(-90) translate(-15 -12)'/%3E%3Cuse href='%23c' transform='translate(159.5 76.0) rotate(90) translate(-15 -12)'/%3E%3Cuse href='%23man1' transform='translate(61.0 25.5)'/%3E%3Cuse href='%23woman1' transform='translate(123.0 25.5)'/%3E%3Cuse href='%23woman2' transform='translate(61.0 126.5) rotate(180)'/%3E%3Cuse href='%23man2' transform='translate(123.0 126.5) rotate(180)'/%3E%3Cuse href='%23man1' transform='translate(23.5 76.0) rotate(-90)'/%3E%3Cuse href='%23woman2' transform='translate(160.5 76.0) rotate(90)'/%3E%3Crect x='33' y='45' width='124' height='88' rx='15' fill='%230f2418' opacity='.26' filter='url(%23b6)'/%3E%3Crect x='30' y='37' width='124' height='88' rx='13' fill='url(%23edge)'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='url(%23oak)'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='%23000' filter='url(%23grain)' opacity='.55'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='%23000' filter='url(%23grain2)' opacity='.5'/%3E%3Crect x='30.6' y='32.6' width='122.8' height='86.8' rx='12.4' fill='none' stroke='%23fff' stroke-opacity='.55' stroke-width='1.2'/%3E%3Crect x='30' y='32' width='124' height='88' rx='13' fill='none' stroke='%23a37844' stroke-width='.9'/%3E%3Crect x='32' y='117.4' width='120' height='1.6' rx='.8' fill='%237a5228' opacity='.28'/%3E%3Cuse href='%23meal' transform='translate(61 43)'/%3E%3Cuse href='%23meal' transform='translate(123 43)'/%3E%3Cuse href='%23meal' transform='translate(61 109) rotate(180)'/%3E%3Cuse href='%23meal' transform='translate(123 109) rotate(180)'/%3E%3Cuse href='%23meal' transform='translate(42 76.0) rotate(-90)'/%3E%3Cuse href='%23meal' transform='translate(142 76.0) rotate(90)'/%3E%3C/svg%3E");
}
/* Masa adı: ortalı; etiket masadaki tuzluk/biberlik ile peçetelik arasında kalır (her bölgede aynı görünüm). */
html body #tablesGrid .table-card .m-table-surface .t-name {
    display: inline-block !important; flex: 0 0 auto !important;
    width: 72px !important; max-width: 72px !important; min-width: 72px !important; box-sizing: border-box; padding: 6px 4px !important; overflow: hidden !important; text-overflow: clip !important; white-space: nowrap !important;
    background: #fffdf7; border: .8px solid #e3d8c2; border-radius: 7px; box-shadow: 0 2px 4px rgba(59, 42, 20, .28);
    font-size: 12px !important; line-height: 1.2 !important; font-weight: 800 !important; letter-spacing: 0;
    text-align: center; color: #1f2d25 !important;
}
@media (max-width: 600px) {
    /* Telefonda durum etiketi (Müsait/Dolu) masanın üstüne binmesin: masa 16px aşağı, etiket küçük. */
    html body #tablesGrid .table-card .table-graphic-container { background-position: 50% 30px, 50% 50%, 0% 0%, 0px 0px, 0px 0px, 0% 0% !important; }
    html body #tablesGrid .table-card .table-graphic-container .m-table-graphic { transform: translateY(16px); }
    html body #tablesGrid .table-card .m-status-badge { top: 5px !important; right: 5px !important; padding: 3px 7px !important; font-size: 9.5px !important; line-height: 1.2 !important; }
    html body #tablesGrid .table-card .m-table-surface .t-name { width: 62px !important; max-width: 62px !important; min-width: 62px !important; padding: 4px 3px !important; font-size: 10.5px !important; }
}
html #tablesGrid .rs-ust-cal { display: inline-flex; align-items: center; justify-content: center; color: #46584e; }
body.dark-mode #tablesGrid .rs-ust-cal { color: #cbd5e1; }

/* Masa İşlemleri penceresi daha kompakt: tüm işlemler kaydırmadan görünür. Yalnız görünüm. */
html body .islemler-modal .modal-content { padding: 16px 18px !important; max-width: 620px !important; }
html body .islemler-modal .modal-content > div:first-child { margin-bottom: 12px !important; }
html body .islemler-modal .rundo-modal-grid { gap: 8px !important; }
html body .islemler-modal .rundo-modal-grid > button,
html body .islemler-modal .rundo-tile > button:first-child { min-height: 62px !important; padding: 8px 6px !important; gap: 4px !important;
    font-size: 12px !important; border-radius: 13px !important; }
html body .islemler-modal .rundo-modal-grid svg { width: 19px !important; height: 19px !important; }
html body .islemler-modal .rundo-tile { gap: 5px !important; }
html body .islemler-modal .rundo-tile-action { min-height: 26px !important; padding: 3px 4px !important; font-size: 11px !important; border-radius: 9px !important; }

/* Koyu tema: uygulamanın kendi koyu renkleri (lacivert-gri) ile uyumlu */
body.dark-mode .rs-ust .rs-ust-btn { background: #334155; border-color: rgba(255, 255, 255, .1); color: #f8fafc; }
body.dark-mode .rs-ust .rs-ust-btn.on { background: #0e9a60; border-color: #0e9a60; color: #fff; }
body.dark-mode .rs-ust .rs-ust-av { background: #10b981; color: #0f172a; box-shadow: 0 0 0 2px #1e293b, 0 0 0 4px rgba(16, 185, 129, .35); }
body.dark-mode .rs-ust-pan { background: #1e293b; color: #f8fafc; border-color: #334155; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
body.dark-mode .rs-ust-head small, body.dark-mode .rs-ust-body small, body.dark-mode .rs-ust-rz small, body.dark-mode .rs-ust-me small,
body.dark-mode .rs-ust-empty, body.dark-mode .rs-ust-sub, body.dark-mode .rs-ust-rzx small { color: #94a3b8; }
body.dark-mode .rs-ust-me { border-bottom-color: #334155; }
body.dark-mode .rs-ust-it, body.dark-mode .rs-ust-rz { background: #0f172a; }
body.dark-mode .rs-ust-rzx { background: #172033; }
body.dark-mode .rs-ust .rs-ust-tab, body.dark-mode .rs-ust .rs-ust-chip { background: #334155; color: #cbd5e1; }
body.dark-mode .rs-ust .rs-ust-tab.on { background: #f8fafc; color: #0f172a; }
body.dark-mode .rs-ust .rs-ust-chip.on { background: rgba(16, 185, 129, .18); border-color: #10b981; color: #6ee7b7; }
body.dark-mode .rs-ust-add input, body.dark-mode .rs-ust-sel, body.dark-mode .rs-ust-time input, body.dark-mode .rs-ust-rzf input,
body.dark-mode .rs-ust-rzf select, body.dark-mode .rs-ust-date { background: #0f172a; color: #f8fafc; border-color: #334155; color-scheme: dark; }
body.dark-mode .rs-ust-add input { border-color: #10b981; }
body.dark-mode .rs-ust-rzf label, body.dark-mode .rs-ust-time { color: #cbd5e1; }
body.dark-mode .rs-ust .rs-ust-c { background: #0f172a; border-color: #475569; }
body.dark-mode .rs-ust .rs-ust-it.done .rs-ust-c { background: #10b981; border-color: #10b981; }
body.dark-mode .rs-ust-del { color: #64748b; }
body.dark-mode .rs-ust-rzb button, body.dark-mode .rs-ust-rzx button, body.dark-mode .rs-ust-act, body.dark-mode .rs-ust-alarm button { background: #334155; color: #f8fafc; border-color: rgba(255, 255, 255, .1); }
body.dark-mode .rs-ust-rzb button.pri, body.dark-mode .rs-ust-alarm button.pri { background: #0e9a60; border-color: #0e9a60; color: #fff; }
body.dark-mode .rs-ust-rzx button.red { color: #fca5a5; border-color: rgba(248, 113, 113, .4); }
body.dark-mode .rs-ust-t { background: rgba(124, 92, 230, .22); color: #c4b5fd; }
body.dark-mode .rs-ust-t.late { background: rgba(239, 68, 68, .2); color: #fca5a5; }
body.dark-mode .rs-ust-ppl, body.dark-mode .rs-ust-pill.p2, body.dark-mode .rs-ust-st.st-geldi { background: rgba(16, 185, 129, .18); color: #6ee7b7; }
body.dark-mode .rs-ust-pill.p1, body.dark-mode .rs-ust-st.st-gelmedi { background: rgba(245, 158, 11, .18); color: #fcd34d; }
body.dark-mode .rs-ust-pill.p3 { background: rgba(239, 68, 68, .2); color: #fca5a5; }
body.dark-mode .rs-ust-pill.p4, body.dark-mode .rs-ust-st.st-iptal { background: #334155; color: #cbd5e1; }
body.dark-mode .rs-ust-warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); color: #fcd34d; }
body.dark-mode .rs-ust-menu { background: rgba(239, 68, 68, .15); color: #fca5a5; }
body.dark-mode .rs-ust-link { color: #34d399; }
body.dark-mode .rs-ust-masa { background: #1e293b; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
body.dark-mode .rs-ust-alarm { background: #1e293b; border-color: #f59e0b; color: #fde68a; box-shadow: 0 16px 36px rgba(0, 0, 0, .5); }

@media (max-width: 768px) {
    /* Telefonda karanlık mod düğmesi gizlenir; arama kutusuna yer kalır. */
    .rs-ust-brand { display: none; }
    .rs-ust-on .top-bar .search-bar { flex: 1 1 auto; max-width: none; margin-right: 0; }
    .rs-ust-on .top-bar .top-actions > button.icon-btn[onclick*="toggleDarkMode"] { display: none !important; }
    .rs-ust { gap: 5px; }
    .rs-ust-tx { display: none; }
    .rs-ust .rs-ust-btn { position: relative; width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 16px; }
    .rs-ust-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; font-size: 10px; }
    .rs-ust .rs-ust-av { width: 36px; height: 36px; font-size: 15px; }
    .rs-ust-pan { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; max-height: calc(100vh - 80px); }
    .rs-ust-pan-me { left: auto; width: 220px; }
    .rs-ust-add input, .rs-ust-rzf input, .rs-ust-rzf select { font-size: 16px; }
    .rs-ust-pan-rez { width: auto; }
}


/* ===================== RESTOM_UST_PRO_V1: Notlar & Rezervasyon gorunum yenilemesi ===================== */
.rs-ust .rs-i { display: block; flex: none; }
.rs-ust .rs-ust-btn { height: 42px; padding: 0 14px 0 8px; gap: 8px; border-radius: 13px; border: 1px solid #e2ebe5; background: linear-gradient(180deg, #fff, #f8fbf9);
    color: #1d3127; box-shadow: 0 1px 2px rgba(16, 60, 38, .06); transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.rs-ust .rs-ust-btn:hover { border-color: #b7dcc7; box-shadow: 0 6px 16px rgba(16, 60, 38, .10); transform: translateY(-1px); }
.rs-ust-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #e9f6ef; color: #0b8a55; }
.rs-ust-btn[data-p="rez"] .rs-ust-ic { background: #efeafe; color: #6a4bd6; }
.rs-ust .rs-ust-btn.on { background: linear-gradient(110deg, #16b96b, #078c52); border-color: #078c52; color: #fff; box-shadow: 0 8px 20px rgba(7, 140, 82, .28); }
.rs-ust-btn.on .rs-ust-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.rs-ust-n { box-shadow: 0 0 0 2px #fff; }

.rs-ust-pan { width: 420px; padding: 0 0 14px; border-radius: 20px; border: 1px solid #e3ece6; box-shadow: 0 24px 60px rgba(12, 40, 26, .20), 0 2px 6px rgba(12, 40, 26, .06);
    animation: rsUstIn .16s ease-out; scrollbar-width: thin; }
@keyframes rsUstIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.rs-ust-pan { overflow-x: hidden; }
.rs-ust-pan > *:not(.rs-ust-head) { margin-left: 14px; margin-right: 14px; }
.rs-ust-pan > .rs-ust-big, .rs-ust-pan > .rs-ust-sel { width: auto; }
.rs-ust-rzf .rs-ust-big { width: 100%; }
.rs-ust-pan-me { width: 240px; padding: 12px; }
.rs-ust-pan-me > * { margin-left: 0 !important; margin-right: 0 !important; }
.rs-ust-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 14px 16px;
    background: linear-gradient(180deg, #fbfdfc, #f4f9f6); border-bottom: 1px solid #e8f0eb; border-radius: 20px 20px 0 0; }
.rs-ust-hi { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #16b96b, #057449); box-shadow: 0 6px 14px rgba(7, 140, 82, .25); }
.rs-ust-hi.rz { background: linear-gradient(140deg, #8a6cf0, #5b3fd0); box-shadow: 0 6px 14px rgba(91, 63, 208, .25); }
.rs-ust-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rs-ust-ht b { font-size: 15.5px; letter-spacing: -.01em; color: #10241a; }
.rs-ust-head .rs-ust-ht small { font-size: 12px; color: #6f8478; font-weight: 600; }
.rs-ust-hc { flex: none; padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid #e2ebe5; font-size: 12px; font-weight: 800; color: #24392e; }
.rs-ust-head .rs-ust-link { flex: none; padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid #e2ebe5; }

.rs-ust-tabs { gap: 4px; padding: 4px; border-radius: 12px; background: #f1f6f3; }
.rs-ust-tab { flex: 1; padding: 7px 8px; border-radius: 9px; background: transparent; color: #4b6155; text-align: center; }
.rs-ust-tab.on { background: #fff; color: #0b6e44; box-shadow: 0 2px 6px rgba(16, 60, 38, .12); }

.rs-ust-add { position: relative; gap: 8px; }
.rs-ust-add input { height: 44px; padding: 0 14px; border: 1.5px solid #dbe7e0; border-radius: 12px; background: #fbfdfc; transition: border-color .15s, box-shadow .15s; }
.rs-ust-add input:focus { border-color: #11af66; background: #fff; box-shadow: 0 0 0 4px rgba(17, 175, 102, .14); }
.rs-ust-add button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 12px; background: linear-gradient(110deg, #16b96b, #078c52); box-shadow: 0 6px 14px rgba(7, 140, 82, .24); }

.rs-ust-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 99px; border: 1px solid #e2ebe5; background: #fff; color: #3e5448; transition: .15s; }
.rs-ust-chip:hover { border-color: #b7dcc7; }
.rs-ust-chip.on { background: #e9f6ef; border-color: #11af66; color: #076b41; }
.rs-ust-chip .rs-i { opacity: .85; }

.rs-ust-it { position: relative; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e7efea; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.rs-ust-it::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: #11af66; }
.rs-ust-it:hover { border-color: #cfe5d8; box-shadow: 0 6px 16px rgba(16, 60, 38, .07); }
.rs-ust-it.done::before { background: #c9d6ce; }
.rs-ust .rs-ust-c { width: 22px; height: 22px; min-width: 22px; border-radius: 7px; border: 2px solid #b7c9be; transition: .15s; }
.rs-ust .rs-ust-c:hover { border-color: #11af66; }
.rs-ust-it.done .rs-ust-c { background: #11af66 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; border-color: #11af66; }
.rs-ust-body p { font-size: 13.5px; line-height: 1.4; color: #15291f; }
.rs-ust-body small { font-size: 11.5px; color: #7a8f83; }
.rs-ust-del { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #9fb1a6; transition: .15s; }
.rs-ust-del:hover { background: #fdecec; color: #c0392b; }
.rs-ust-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; font-size: 10.5px; }
.rs-ust-pill .rs-i { width: 11px; height: 11px; }

.rs-ust-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; margin-top: 4px; border: 1.5px dashed #dbe7e0; border-radius: 16px; background: #fafcfb; }
.rs-ust-empty span { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #eef7f2; color: #0b8a55; margin-bottom: 4px; }
.rs-ust-pan-rez .rs-ust-empty span { background: #f1edfe; color: #6a4bd6; }
.rs-ust-empty b { font-size: 14px; color: #1d3127; }
.rs-ust-empty small { font-size: 12.5px; color: #7a8f83; max-width: 260px; line-height: 1.4; }

.rs-ust-pan-rez { width: 450px; }
.rs-ust-days { gap: 6px; }
.rs-ust-date { height: 34px; padding: 0 10px; border-radius: 99px; border: 1px solid #e2ebe5; }
.rs-ust-rz { gap: 12px; padding: 10px 10px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid #e7efea; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.rs-ust-rz:hover { border-color: #d9d0fb; box-shadow: 0 6px 16px rgba(60, 40, 140, .07); }
.rs-ust-t { width: 58px; padding: 8px 0; border-radius: 12px; background: linear-gradient(160deg, #f3efff, #e9e2ff); color: #4d32c2; font-size: 14px; letter-spacing: -.01em; }
.rs-ust-t.late { background: linear-gradient(160deg, #fdeeee, #fbdede); color: #b42318; }
.rs-ust-rz p { font-size: 13.5px; color: #15291f; }
.rs-ust-rz small { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; }
.rs-ust-rz small .rs-i { width: 12px; height: 12px; }
.rs-ust-ppl { padding: 2px 7px; border-radius: 99px; }
.rs-ust-rzb button { height: 32px; padding: 0 12px; border-radius: 10px; }
.rs-ust .rs-ust-rzb .more { width: 32px; padding: 0; }
.rs-ust-rzb button.pri { background: linear-gradient(110deg, #16b96b, #078c52); border-color: #078c52; }
.rs-ust-rz.open { border-color: #d9d0fb; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rs-ust-rzx { border: 1px solid #d9d0fb; border-top: 0; background: #f8f6ff; }
.rs-ust-rzx button, .rs-ust-act { display: inline-flex; align-items: center; gap: 5px; border-radius: 9px; }
.rs-ust-sub { margin: 14px 0 8px; letter-spacing: .08em; }

.rs-ust-big { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0; margin-top: 10px; border-radius: 13px;
    background: linear-gradient(110deg, #8a6cf0, #5b3fd0); box-shadow: 0 8px 20px rgba(91, 63, 208, .26); }
.rs-ust .rs-ust-big.green { background: linear-gradient(110deg, #16b96b, #078c52); box-shadow: 0 8px 20px rgba(7, 140, 82, .26); }
.rs-ust-rzf label { font-size: 12px; color: #4b6155; }
.rs-ust-rzf input, .rs-ust-rzf select { height: 42px; border-radius: 11px; border: 1.5px solid #dbe7e0; background: #fbfdfc; }
.rs-ust-warn { display: flex; align-items: center; gap: 6px; border-radius: 11px; }

.rs-ust-me { padding: 4px 4px 12px; }
.rs-ust-me b { font-size: 15px; }
.rs-ust-menu { border-radius: 11px; }

/* Karanlik mod */
body.dark-mode .rs-ust .rs-ust-btn { background: #1b2620; border-color: #2c3a33; color: #e6efe9; box-shadow: none; }
body.dark-mode .rs-ust-ic { background: rgba(17, 175, 102, .16); color: #6fe0a6; }
body.dark-mode .rs-ust-btn[data-p="rez"] .rs-ust-ic { background: rgba(138, 108, 240, .18); color: #b9a6ff; }
body.dark-mode .rs-ust-n { box-shadow: 0 0 0 2px #1b2620; }
body.dark-mode .rs-ust-pan { background: #141c18; color: #e6efe9; border-color: #26332c; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
body.dark-mode .rs-ust-head { background: linear-gradient(180deg, #19231e, #161f1a); border-bottom-color: #26332c; }
body.dark-mode .rs-ust-ht b, body.dark-mode .rs-ust-empty b, body.dark-mode .rs-ust-body p, body.dark-mode .rs-ust-rz p { color: #eef5f0; }
body.dark-mode .rs-ust-hc, body.dark-mode .rs-ust-head .rs-ust-link { background: #1b2620; border-color: #2c3a33; color: #dbe7e0; }
body.dark-mode .rs-ust-tabs { background: #1b2620; }
body.dark-mode .rs-ust-tab { color: #a9bdb1; }
body.dark-mode .rs-ust-tab.on { background: #26352d; color: #7ef0b2; box-shadow: none; }
body.dark-mode .rs-ust-add input, body.dark-mode .rs-ust-rzf input, body.dark-mode .rs-ust-rzf select, body.dark-mode .rs-ust-sel, body.dark-mode .rs-ust-date, body.dark-mode .rs-ust-time input { background: #1b2620; border-color: #2c3a33; color: #eef5f0; }
body.dark-mode .rs-ust-chip, body.dark-mode .rs-ust-rzb button, body.dark-mode .rs-ust-rzx button, body.dark-mode .rs-ust-act { background: #1b2620; border-color: #2c3a33; color: #dbe7e0; }
body.dark-mode .rs-ust-chip.on { background: rgba(17, 175, 102, .16); border-color: #11af66; color: #7ef0b2; }
body.dark-mode .rs-ust-it, body.dark-mode .rs-ust-rz { background: #19231e; border-color: #26332c; }
body.dark-mode .rs-ust-rzx { background: #1d1a2e; border-color: #3a3166; }
body.dark-mode .rs-ust-empty { background: #17201b; border-color: #2c3a33; }
body.dark-mode .rs-ust-t { background: rgba(138, 108, 240, .18); color: #c9bbff; }

/* Sag kose sadelestirme: gece modu dugmesi gizli (Ayarlar > Karanlik Mod duruyor) */
.rs-ust-on .top-bar .top-actions > .icon-btn[onclick*="toggleDarkMode"] { display: none !important; }
.rs-ust-on .top-bar .top-actions { gap: 8px; }
/* Profil dugmesi */
.rs-ust .rs-ust-av { width: auto; height: 42px; padding: 0 10px 0 6px; gap: 9px; display: flex; align-items: center; border-radius: 13px; border: 1px solid #e2ebe5;
    background: linear-gradient(180deg, #fff, #f8fbf9); color: #1d3127; font-size: 13px; font-weight: 700; box-shadow: 0 1px 2px rgba(16, 60, 38, .06); transition: .15s; }
.rs-ust .rs-ust-av:hover { border-color: #b7dcc7; box-shadow: 0 6px 16px rgba(16, 60, 38, .10); }
.rs-ust .rs-ust-av.on { border-color: #11af66; box-shadow: 0 0 0 3px rgba(17, 175, 102, .16); }
.rs-ust-avi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #16b96b, #057449); }
.rs-ust-avt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; max-width: 150px; }
.rs-ust-avt b { font-size: 13px; color: #10241a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rs-ust-avt small { font-size: 11px; font-weight: 600; color: #6f8478; white-space: nowrap; }
.rs-ust-avc { color: #7a8f83; display: grid; place-items: center; transition: transform .15s; }
.rs-ust-av.on .rs-ust-avc { transform: rotate(180deg); }
.rs-ust-pan-me { width: 260px; padding: 12px; }
.rs-ust-me { flex-direction: row; align-items: center; gap: 10px; padding: 4px 4px 12px; }
.rs-ust-mei { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #16b96b, #057449); }
.rs-ust-met { display: flex; flex-direction: column; min-width: 0; }
.rs-ust-met b { font-size: 14.5px; color: #10241a; }
.rs-ust-met small { font-size: 12px; color: #6f8478; font-weight: 600; }
.rs-ust-mer { display: flex; align-items: center; gap: 7px; padding: 9px 10px; margin-bottom: 8px; border-radius: 11px; background: #f4f9f6; font-size: 12.5px; font-weight: 700; color: #3e5448; }
.rs-ust .rs-ust-menu { display: flex; align-items: center; gap: 8px; }
body.dark-mode .rs-ust .rs-ust-av { background: #1b2620; border-color: #2c3a33; color: #e6efe9; box-shadow: none; }
body.dark-mode .rs-ust-avt b, body.dark-mode .rs-ust-met b { color: #eef5f0; }
body.dark-mode .rs-ust-mer { background: #1b2620; color: #c4d6cb; }

/* Doviz kuru (RESTOM_KUR_V1) */
.rs-ust-btn[data-p="kur"] .rs-ust-ic { background: #fff4e2; color: #b4730f; }
.rs-ust-kurt { font-variant-numeric: tabular-nums; }
.rs-ust-kurt b { color: #b4730f; font-weight: 800; }
.rs-ust-kurt i { display: inline-block; width: 1px; height: 12px; background: #d6e2db; vertical-align: -1px; margin: 0 2px; }
.rs-ust-btn.on .rs-ust-kurt b { color: #fff; }
.rs-ust-hi.kur { background: linear-gradient(140deg, #f5b544, #d98a0b); box-shadow: 0 6px 14px rgba(217, 138, 11, .25); }
.rs-ust-pan-kur { width: 380px; }
.rs-kur-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rs-kur-card { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #e7efea; }
.rs-kur-sym { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #fff4e2; color: #b4730f; font-weight: 800; font-size: 17px; }
.rs-kur-card small { display: block; font-size: 11px; font-weight: 700; color: #7a8f83; }
.rs-kur-card b { display: block; font-size: 17px; letter-spacing: -.01em; color: #10241a; font-variant-numeric: tabular-nums; }
.rs-kur-card em { display: block; font-style: normal; font-size: 11px; color: #9aaba1; font-variant-numeric: tabular-nums; }
.rs-kur-box { display: flex; gap: 8px; margin-bottom: 10px; }
.rs-kur-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; border: 1.5px solid #dbe7e0; border-radius: 14px; background: #fbfdfc; transition: .15s; }
.rs-kur-in:focus-within { border-color: #11af66; background: #fff; box-shadow: 0 0 0 4px rgba(17, 175, 102, .14); }
.rs-kur-in span { font-size: 20px; font-weight: 800; color: #057449; }
.rs-kur-in input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 20px; font-weight: 700; color: #10241a; font-variant-numeric: tabular-nums; }
.rs-ust .rs-kur-swap { width: 50px; height: 50px; flex: none; border-radius: 14px; border: 1px solid #e2ebe5; background: #fff; color: #057449; display: grid; place-items: center; }
.rs-ust .rs-kur-swap:hover { border-color: #11af66; }
.rs-kur-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #f1f6f3; margin-bottom: 10px; }
.rs-ust .rs-kur-seg { padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: #4b6155; font-size: 12.5px; font-weight: 800; }
.rs-ust .rs-kur-seg.on { background: #fff; color: #0b6e44; box-shadow: 0 2px 6px rgba(16, 60, 38, .12); }
.rs-kur-res { display: flex; flex-direction: column; gap: 8px; }
.rs-kur-out { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 14px; background: linear-gradient(135deg, #eaf8f0, #f7fcf9); border: 1px solid #d3ecdd; }
.rs-kur-out span { font-size: 12.5px; font-weight: 700; color: #3e5448; }
.rs-kur-out b { font-size: 18px; color: #057449; font-variant-numeric: tabular-nums; }
.rs-kur-err { padding: 12px; border-radius: 12px; background: #fff8e6; border: 1px solid #f2c15c; color: #8a5100; font-size: 12.5px; font-weight: 700; }
.rs-kur-note { margin-top: 10px; font-size: 11px; color: #9aaba1; text-align: center; }
body.dark-mode .rs-kur-card, body.dark-mode .rs-ust .rs-kur-swap { background: #19231e; border-color: #26332c; }
body.dark-mode .rs-kur-card b, body.dark-mode .rs-kur-in input { color: #eef5f0; }
body.dark-mode .rs-kur-in { background: #1b2620; border-color: #2c3a33; }
body.dark-mode .rs-kur-segs { background: #1b2620; }
body.dark-mode .rs-ust .rs-kur-seg.on { background: #26352d; color: #7ef0b2; box-shadow: none; }
body.dark-mode .rs-kur-out { background: rgba(17, 175, 102, .1); border-color: #26332c; }
body.dark-mode .rs-kur-out span { color: #c4d6cb; }
body.dark-mode .rs-kur-out b { color: #7ef0b2; }
@media (max-width: 1280px) { .rs-ust-kurt { display: none; } .rs-ust .rs-ust-kurb { padding-right: 8px; } }

@media (max-width: 700px) {
    .rs-ust-avt, .rs-ust-avc { display: none; }
    .rs-ust .rs-ust-av { padding: 0 6px; }
    .rs-ust .rs-ust-btn { padding: 0 6px; }
    .rs-ust-pan, .rs-ust-pan-rez { width: min(440px, calc(100vw - 20px)); }
}
