/* ================================================================
   VETERİNER KLİNİK TAKİP — Admin CSS v2.2
   ================================================================ */

/* ── 1. LAYOUT: Tam genişlik, responsive ── */
#wpcontent          { padding-left: 0 !important; }
#wpbody-content     { padding-bottom: 0 !important; }
.wrap.vkt-wrap      { margin: 0 !important; max-width: none !important; box-sizing: border-box !important; width: 100% !important; }

.vkt-wrap {
    padding: 0;
    min-height: auto;
    background: transparent;
    font-size: 14px;
    color: #1a2540;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}
/* Dashboard gibi sayfalarda padding gerek */
.vkt-wrap > .vkt-card,
.vkt-wrap > .vkt-header,
.vkt-wrap > .vkt-stat-grid,
.vkt-wrap > .vkt-quick-links,
.vkt-wrap > .sv-bar,
.vkt-wrap > .sv-top-grid,
.vkt-wrap > .notice { width: 100%; box-sizing: border-box; }

/* Sidebar küçükken de genişlik korunsun */
.folded #wpcontent  { padding-left: 0 !important; }

/* ── 2. HEADER ── */
.vkt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.vkt-title {
    margin: 0 0 4px !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
}
.vkt-subtitle { margin: 0; color: #6b7a99; font-size: 14px; }
.vkt-header > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── 3. BUTONLAR ── */
.vkt-wrap .button,
.vkt-wrap button.button {
    height: 38px !important;
    line-height: 36px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
    text-decoration: none !important;
}
.vkt-wrap .button-primary {
    background: #1f3c88 !important;
    border-color: #1f3c88 !important;
    color: #fff !important;
}
.vkt-wrap .button-primary:hover { background: #162e6e !important; border-color: #162e6e !important; }
.vkt-wrap .button-secondary {
    background: #fff !important;
    border-color: #d1d9ef !important;
    color: #374151 !important;
}
.vkt-wrap .button-secondary:hover { border-color: #1f3c88 !important; color: #1f3c88 !important; }
.vkt-wrap .button.button-small {
    height: 30px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
}
.vkt-btn-danger {
    color: #b42318 !important;
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
}
.vkt-btn-danger:hover { background: #fee2e2 !important; border-color: #b42318 !important; }

/* ── 4. KARTLAR ── */
.vkt-card {
    background: #fff;
    border: 1px solid #e2e8f5;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 8px rgba(31,60,136,.05);
    margin-bottom: 16px;
}
.vkt-card:last-child { margin-bottom: 0; }
.vkt-section-title {
    margin: 0 0 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a2540 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f0f4fb !important;
    display: flex; align-items: center; gap: 6px;
}

/* ── 5. GRID ── */
.vkt-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.vkt-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.vkt-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ── 6. FORMLAR ── */
.vkt-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px 20px; }
.vkt-col-2 { grid-column: span 2; }

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.vkt-wrap input[type="text"],
.vkt-wrap input[type="number"],
.vkt-wrap input[type="date"],
.vkt-wrap input[type="email"],
.vkt-wrap input[type="password"],
.vkt-wrap select,
.vkt-wrap textarea {
    width: 100%;
    border: 1.5px solid #d1d9ef;
    border-radius: 8px;
    padding: 9px 12px;
    min-height: 40px;
    font-size: 14px;
    color: #1a2540;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}
.vkt-wrap input:focus,
.vkt-wrap select:focus,
.vkt-wrap textarea:focus {
    border-color: #1f3c88;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31,60,136,.10);
}
.vkt-wrap textarea { min-height: 90px; resize: vertical; }
.vkt-form-actions { margin-top: 20px; display: flex; gap: 8px; align-items: center; }

.vkt-check-line {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    font-weight: 500 !important;
    color: #6b7a99 !important;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.vkt-check-line input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    min-height: auto !important;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── 7. TAHSİLAT FORMU (kritik — satır kaymasını önle) ── */
.vkt-payment-grid {
    display: grid;
    grid-template-columns: 180px 180px 180px 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}
@media (max-width: 1100px) {
    .vkt-payment-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 8. TABLO ── */
.vkt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}
.vkt-table th {
    background: #f8fafd;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b7a99;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f5;
    white-space: nowrap;
}
.vkt-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f4fb;
    vertical-align: middle;
    color: #1a2540;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 0;          /* Flexbox-like: td genişler ama taşmaz */
}
/* Beyaz-space gerektiren özel td'ler */
.vkt-table td.nowrap { white-space: nowrap; max-width: none; overflow: visible; }
.vkt-table tr:last-child td { border-bottom: none; }
.vkt-table tbody tr:hover td { background: #f8fafd; }
.vkt-row-cancelled { opacity: .5; }

/* ── 9. BİLGİ TABLOSU (info-table — "Müşteri & Hayvan") ── */
.vkt-info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;   /* İçeriğe göre genişlik */
}
.vkt-info-table th {
    width: 1%;            /* Minimum: içerik kadar */
    white-space: nowrap;  /* Etiket satırı bozulmasın */
    text-align: left;
    padding: 9px 14px 9px 0;
    color: #6b7a99;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #f0f4fb;
    vertical-align: top;
}
.vkt-info-table td {
    padding: 9px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f4fb;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.vkt-info-table tr:last-child th,
.vkt-info-table tr:last-child td { border-bottom: none; }

/* ── 10. MALİ DURUM SATIRLARI ── */
.vkt-totals { border-top: 2px solid #f0f4fb; margin-top: 12px; padding-top: 12px; }
.vkt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 7px;
    margin-bottom: 3px;
    white-space: nowrap;
    gap: 8px;
}
.vkt-total-row:nth-child(odd) { background: #f8fafd; }
.vkt-total-row span { overflow: hidden; text-overflow: ellipsis; }
.vkt-grand-total {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1a2540 !important;
    background: #eef2ff !important;
    border-radius: 9px !important;
    padding: 10px 14px !important;
    margin-top: 4px;
    white-space: nowrap;
}

/* ── 11. SATIŞ MAVI HEADER BAR ── */
.vkt-sale-bar {
    background: linear-gradient(135deg, #1f3c88, #3461e0);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.vkt-sale-bar h1 {
    color: #fff !important;
    margin: 0 0 6px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}
.vkt-sale-bar p { color: rgba(255,255,255,.8); margin: 0; font-size: 13px; }
.vkt-sale-bar .vkt-actions .button { white-space: nowrap !important; flex-shrink: 0; }
.vkt-actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }

/* Mavi bar içindeki buton renkleri */
.vkt-sale-bar .button {
    background: rgba(255,255,255,.18) !important;
    border-color: rgba(255,255,255,.35) !important;
    color: #fff !important;
}
.vkt-sale-bar .button:hover {
    background: rgba(255,255,255,.30) !important;
    color: #fff !important;
}
.vkt-sale-bar .button-primary {
    background: #fff !important;
    color: #1f3c88 !important;
    border-color: #fff !important;
}
.vkt-sale-bar .button-primary:hover { background: #eef2ff !important; }
.vkt-sale-bar .vkt-btn-danger {
    background: rgba(254,226,226,.9) !important;
    border-color: #fca5a5 !important;
    color: #b42318 !important;
}

/* ── 12. BİLDİRİM / NOTICE ── */
.vkt-notice {
    margin: 0 0 16px !important;
    border-radius: 9px !important;
    padding: 12px 16px !important;
}
.vkt-notice p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #1a2540 !important;
}
/* Bildirim türüne göre metin rengi */
.notice-success.vkt-notice p { color: #065f46 !important; }
.notice-error.vkt-notice p   { color: #7f1d1d !important; }
.notice-warning.vkt-notice p { color: #92400e !important; }
.notice-info.vkt-notice p    { color: #1e3a8a !important; }
/* Inline style'lı özel bildirimlerin linkleri */
.vkt-notice a { font-weight:700 !important; }

/* ── 13. BADGE / STATUS ── */
.vkt-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e7f0ff;
    color: #1f3c88;
    white-space: nowrap;
}
.vkt-badge.cat-ilac    { background: #fef9e7; color: #92400e; border: 1px solid #fde68a; }
.vkt-badge.cat-asi     { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.vkt-badge.cat-hizmet  { background: #f5f3ff; color: #5b21b6; border: 1px solid #c4b5fd; }
.vkt-badge.cat-medikal { background: #fff1f2; color: #9f1239; border: 1px solid #fda4af; }

.vkt-status {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.vkt-status.active  { background: #d1fae5; color: #065f46; }
.vkt-status.passive { background: #fee2e2; color: #b42318; }
.vkt-status.warning { background: #fef3c7; color: #92400e; }
.vkt-status.partial { background: #ffedd5; color: #9a3412; }

/* ── 14. AUTOCOMPLETE ── */
.vkt-autocomplete-wrap { position: relative; }
.vkt-ac-dropdown {
    position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 9999;
    background: #fff; border: 1.5px solid #1f3c88; border-radius: 8px;
    max-height: 200px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(31,60,136,.15); display: none;
}
.vkt-ac-item {
    padding: 9px 13px; cursor: pointer; font-size: 13px;
    border-bottom: 1px solid #f0f4fb; color: #1a2540;
}
.vkt-ac-item:hover, .vkt-ac-item.active { background: #eef2ff; color: #1f3c88; font-weight: 600; }
.vkt-ac-item:last-child { border-bottom: none; }
.vkt-ac-empty { padding: 9px 13px; color: #9aabbd; font-style: italic; font-size: 12px; }

/* ── 15. İLAÇ SATIRLARI ── */
.dis-med-row {
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 7px; padding: 7px 10px;
    background: #f8fafd; border-radius: 8px; border: 1px solid #e2e8f5;
}
.dis-med-row input { flex: 1; background: #fff !important; }
.dis-med-icon { font-size: 16px; flex-shrink: 0; }

/* ── 16. ACCORDION ── */
.vkt-history-row td { border-top: none !important; padding: 0 !important; }
.vkt-history-panel { padding: 14px 16px; background: #f8fafd; }
.vkt-history-tabs { display: flex; gap: 7px; margin-bottom: 12px; }
.vkt-history-tab {
    padding: 6px 16px; border-radius: 999px; border: 1.5px solid #d1d9ef;
    background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; color: #6b7a99;
}
.vkt-history-tab.active { background: #1f3c88; color: #fff; border-color: #1f3c88; }
.vkt-history-section { display: none; }
.vkt-history-section.active { display: block; }
.vkt-toggle-history.open { background: #1f3c88 !important; color: #fff !important; border-color: #1f3c88 !important; }

/* ── 17. KULLANICI ROL BADGE ── */
.vkt-role-badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid;
    white-space: nowrap;
}
.vkt-role-yonetici  { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.vkt-role-veteriner { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.vkt-role-sekreter  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.vkt-role-tahsilat  { background: #fff1f2; color: #9f1239; border-color: #fda4af; }

/* ── 18. METİN ── */
.vkt-text-danger  { color: #b42318 !important; font-weight: 700; }
.vkt-text-success { color: #065f46 !important; font-weight: 700; }
.vkt-muted        { color: #9aabbd; font-size: 12px; }

/* ── 19. QUICK LINKS ── */
.vkt-link-box {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    background: #fff; border: 1.5px solid #e2e8f5; border-radius: 12px;
    padding: 16px 18px; color: #1a2540; transition: all .2s;
}
.vkt-link-box:hover { border-color: #1f3c88; box-shadow: 0 6px 18px rgba(31,60,136,.1); transform: translateY(-1px); color: #1f3c88; }
.vkt-link-icon { font-size: 22px; flex-shrink: 0; }
.vkt-link-box strong { display: block; font-size: 14px; font-weight: 700; }
.vkt-link-box span { color: #6b7a99; font-size: 12px; display: block; margin-top: 2px; }

/* ── 20. FİLTRE BARI ── */
.vkt-filter-bar {
    display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px;
}
.vkt-filter-bar > div { display: flex; flex-direction: column; gap: 4px; }
.vkt-filter-bar > div:first-child { flex: 1; min-width: 180px; }

/* ── 21. RESPONSIVE ── */
@media (max-width: 1400px) {
    .vkt-stat-grid   { grid-template-columns: repeat(3,1fr); }
    .vkt-quick-links { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1100px) {
    .vkt-stat-grid   { grid-template-columns: repeat(2,1fr); }
    .vkt-quick-links  { grid-template-columns: repeat(2,1fr); }
    .vkt-payment-grid { grid-template-columns: 1fr 1fr; }
    .vkt-grid-2col    { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .vkt-form-grid    { grid-template-columns: 1fr; }
    .vkt-col-2        { grid-column: span 1; }
    .vkt-payment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .vkt-page-content { padding: 12px 12px 48px !important; }
    .vkt-title        { font-size: 18px !important; }
    .vkt-stat-grid, .vkt-quick-links { grid-template-columns: 1fr 1fr; }
    .vkt-header       { flex-direction: column; align-items: flex-start; gap: 8px; }
    .vkt-table th, .vkt-table td { padding: 7px 8px; font-size: 12px; }
    /* Navbar mobilde küçük */
    .vkt-navbar-brand span { display: none; }
    .vkt-nav-item { padding: 0 7px; font-size: 11px; }
    .vkt-nav-user { display: none; }
}
@media (max-width: 480px) {
    .vkt-stat-grid, .vkt-quick-links { grid-template-columns: 1fr; }
}

/* ══ SIDEBAR COLLAPSE — İçeriği tam genişlik yap ══ */
body.wp-admin #wpcontent { margin-left: 36px !important; }
body.wp-admin.folded #wpcontent { margin-left: 36px !important; }
/* Tablolar için sabit kolon desteği */
.vkt-table colgroup col { box-sizing: border-box; }
/* Müşteri/hayvan bilgi grid */
.vkt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.vkt-info-cell {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f4fb;
}
.vkt-info-cell:nth-child(even) { border-left: 1px solid #f0f4fb; }
.vkt-info-label { font-size: 11px; font-weight: 600; color: #9aabbd; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.vkt-info-value { font-size: 14px; color: #1a2540; font-weight: 600; }
/* Tahsilat form grid */
.vkt-pay-grid {
    display: grid;
    grid-template-columns: 160px 180px auto 1fr;
    gap: 14px;
    align-items: end;
    margin-bottom: 12px;
}
@media (max-width: 900px) {
    .vkt-pay-grid { grid-template-columns: 1fr 1fr; }
    body.wp-admin #wpcontent { margin-left: 36px !important; }
}

/* ── TAHSİLAT FORM GRİD (sales-view) ── */
.vkt-pay-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}
.vkt-pay-form-grid label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.vkt-pay-form-grid input,
.vkt-pay-form-grid select {
    width: 100%;
    border: 1.5px solid #d1d9ef;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
    min-height: 40px;
}

/* ── SATIŞ GÖRÜNTÜLEMESİ: Üst 2 kolon ── */
.vkt-sv-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 900px) {
    .vkt-sv-grid { grid-template-columns: 1fr; }
}
/* ══ SATIŞ DETAY: 3'lü üst grid ══ */
.vkt-sv-top-grid {
    display: grid;
    grid-template-columns: 240px 220px 1fr;   /* Müşteri | Mali | Kalemler */
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}
/* Mali durum: sayılar tek satırda kalsın */
.vkt-sv-top-grid .vkt-card div[style*="justify-content:space-between"] {
    flex-wrap: nowrap !important;
}
@media (max-width: 1200px) {
    .vkt-sv-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Satış kalemleri altta tam genişlik */
    .vkt-sv-top-grid > .vkt-card:nth-child(3) {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    .vkt-sv-top-grid { grid-template-columns: 1fr; }
    .vkt-sv-top-grid > .vkt-card:nth-child(3) { grid-column: auto; }
}


/* ══ MALİ DURUM SATIRLARI ══ */
.vkt-mali-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;          /* Asla alt satıra geçme */
    padding: 8px 0;
    gap: 12px;
    font-size: 13px;
}
.vkt-mali-lbl {
    color: #6b7a99;
    white-space: nowrap;
    flex-shrink: 0;
}
.vkt-mali-val {
    font-weight: 700;
    white-space: nowrap;        /* Para birimi + rakam aynı satırda */
    text-align: right;
}
.vkt-mali-total {
    padding: 10px 12px;
    margin: 6px 0;
    background: #eef2ff;
    border-radius: 9px;
}
.vkt-mali-bakiye {
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 9px;
}
.vkt-mali-big {
    font-size: 18px !important;
    font-weight: 800 !important;
}

/* ══ MÜŞTERİ & HAYVAN: nowrap ══ */
.vkt-info-table td strong,
.vkt-info-table td {
    white-space: nowrap;
}
.vkt-info-table td:last-child {
    white-space: normal;        /* Not gibi uzun alanlar wrap olabilir */
}


/* ===== Frontend panel shell ===== */
.vkt-frontend-shell{width:100%;min-height:100vh;background:linear-gradient(180deg,#eef4ff 0%,#f8fbff 100%);margin:0;box-sizing:border-box;}
.vkt-page-content{padding:24px;min-height:calc(100vh - 64px);}
.vkt-navbar{position:sticky;top:0;z-index:999;background:#132a63;display:flex;align-items:center;gap:8px;padding:10px 14px;min-height:64px;box-shadow:0 10px 30px rgba(15,23,42,.12);overflow-x:auto;scrollbar-width:none;}
.vkt-navbar::-webkit-scrollbar{display:none;}
.vkt-navbar-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:16px;text-decoration:none;white-space:nowrap;padding-right:14px;margin-right:6px;border-right:1px solid rgba(255,255,255,.12);}
.vkt-nav-item{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 14px;border-radius:12px;color:rgba(255,255,255,.82);text-decoration:none;font-weight:600;white-space:nowrap;border:1px solid transparent;transition:.18s ease;}
.vkt-nav-item:hover,.vkt-nav-item.active{background:rgba(255,255,255,.11);color:#fff;border-color:rgba(255,255,255,.08);}
.vkt-nav-right{margin-left:auto;display:flex;align-items:center;gap:10px;padding-left:12px;}
.vkt-nav-user{display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,.86);font-size:12px;font-weight:700;}
.vkt-nav-logout{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 14px;border-radius:12px;background:#fff;color:#0f172a;text-decoration:none;font-weight:700;border:none;}
.vkt-login-card{max-width:460px;margin:10vh auto;background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:34px;box-shadow:0 24px 60px rgba(15,23,42,.12);text-align:center;}
.vkt-login-card h2{margin:0 0 10px;color:#0f172a;font-size:30px;line-height:1.15;}
.vkt-login-card p{margin:0 0 20px;color:#475569;font-size:15px;}
.vkt-login-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:14px;background:#2563eb;color:#fff!important;text-decoration:none;font-weight:800;box-shadow:0 10px 22px rgba(37,99,235,.25);}

.vkt-page-content .wrap,.vkt-page-content .wrap.vkt-wrap{width:100%;max-width:none;margin:0;padding:0;box-sizing:border-box;}
.vkt-page-content .postbox,.vkt-page-content .card,.vkt-page-content .notice,.vkt-page-content .vkt-card,.vkt-page-content .vkt-stats,.vkt-page-content .vkt-table-wrap{border-radius:18px;}
.vkt-page-content .form-table th{width:220px;}
.vkt-page-content table.widefat{border-radius:18px;overflow:hidden;}
.vkt-page-content .button,.vkt-page-content button,.vkt-page-content input[type=submit]{border-radius:12px!important;min-height:40px;}
.vkt-page-content input[type=text],.vkt-page-content input[type=date],.vkt-page-content input[type=number],.vkt-page-content input[type=email],.vkt-page-content input[type=tel],.vkt-page-content select,.vkt-page-content textarea{border-radius:12px!important;min-height:42px;padding:8px 12px;}

@media (max-width: 1024px){
  .vkt-navbar{flex-wrap:wrap;align-items:flex-start;}
  .vkt-navbar-brand{border-right:none;margin-right:auto;padding-right:0;}
  .vkt-nav-right{width:100%;margin-left:0;padding-left:0;justify-content:space-between;}
  .vkt-page-content{padding:18px 14px 26px;}
}
@media (max-width: 640px){
  .vkt-navbar{padding:10px 10px 12px;gap:8px;}
  .vkt-navbar-brand{width:100%;justify-content:center;font-size:17px;padding-bottom:4px;}
  .vkt-nav-item{height:38px;padding:0 12px;font-size:12px;}
  .vkt-nav-right{gap:8px;align-items:center;}
  .vkt-nav-user{font-size:11px;max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .vkt-nav-logout{height:36px;padding:0 10px;font-size:12px;}
  .vkt-login-card{margin:6vh 12px;padding:26px 20px;}
  .vkt-login-card h2{font-size:24px;}
  .vkt-page-content{padding:12px;}
  .vkt-page-content .form-table th,.vkt-page-content .form-table td{display:block;width:100%;padding-left:0;padding-right:0;}
}


.vkt-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.vkt-table-responsive table,
.vkt-table-responsive .vkt-table,
.vkt-table-responsive .widefat {
    min-width: 100%;
}
.vkt-sales-actions-cell .button,
.vkt-sales-actions-cell button.button {
    margin: 2px;
}
@media (max-width: 1200px) {
    .vkt-sales-actions-cell { min-width: 320px; }
}
@media (max-width: 980px) {
    .vkt-header-actions {
        width: 100%;
        justify-content: flex-start !important;
    }
}
@media (max-width: 680px) {
    .vkt-table-responsive table,
    .vkt-table-responsive .vkt-table,
    .vkt-table-responsive .widefat {
        min-width: 760px;
    }
}


.vkt-header > div:first-child { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.vkt-stock-inline-form { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.vkt-sales-actions-cell .button { margin:2px 3px; }


.vkt-form-heading{display:flex;flex-direction:column;justify-content:center;gap:4px;}
.vkt-form-heading .vkt-title,.vkt-form-heading .vkt-subtitle{display:block;}
.vkt-live-search-wrap{position:relative;}
.vkt-live-search-drop{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid #d1d9ef;border-radius:10px;box-shadow:0 10px 24px rgba(31,60,136,.12);display:none;max-height:260px;overflow:auto;}
.vkt-live-search-item{padding:10px 12px;cursor:pointer;border-bottom:1px solid #eef2ff;font-size:13px;line-height:1.35;}
.vkt-live-search-item:last-child{border-bottom:none;}
.vkt-live-search-item:hover{background:#f8fbff;}
.vkt-live-search-meta{display:block;color:#6b7a99;font-size:11px;margin-top:3px;}
.vkt-animals-table th,.vkt-animals-table td{vertical-align:middle !important;text-align:left;}
.vkt-animals-table td{max-width:none;overflow:visible;word-break:normal;overflow-wrap:break-word;}
.vkt-animals-table td .button{vertical-align:middle;}
