body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    color: #333;
    font-size: 16px;
}

h1, h2, h3 {
    color: #cc0000;
    text-align: center;
    text-transform: uppercase;
}
h4, h5, h6 {
    color: #cc0000;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
a {
    text-decoration: none;
    color: #cc0000;
}
p {
    margin: 15px;
}
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4em;
}
textarea:focus {
    border-color: #cc0000;
}
button[type] {
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    padding: 6px 10px;
    cursor: pointer;
}
button[type]:hover {
    background: #a40000; 
}
input[type="checkbox"] {
    accent-color: #cc0000;
}
input,
select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
}

/* Jadval dizayni */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
}
th, td {
    white-space: nowrap;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    color: #000;
    background-color: #fff;
}
th {
    background-color: #cb3837;
    color: white;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr:hover {
    background-color: #ddd;
}

.table-wrapper {
    /*width: 100%;*/
    max-height: 900px;
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* HEADER (yuqori panel) */
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    height: 60px;
    border-bottom: 1px solid #dedede;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10000;
}
.header .logo {
    font-size: 20px;
    font-weight: bold;
    color: #cc0000;
    text-decoration: none;
}

/* BARCHASI: logo o‘ng tomonida */
.barchasi-container {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    margin-right: 15px;
    position: relative;
    padding-right: 15px;
}
.barchasi-container:hover .barchasi-dropdown {
    display: block;
}
.barchasi-btn {
    display: inline-block;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}
.barchasi-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}
.barchasi-btn:hover {
    background-color: #f2f2f2;
    color: #cc0000;
}

/* Drop-down (chaproqqa siljitilgan) */
.barchasi-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    margin-top: 0;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    padding: 10px;
    z-index: 99999;
}
.barchasi-dropdown:hover {
    display: block;
}
.barchasi-grid {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 10px;
    min-width: 300px;
}
.barchasi-grid a {
    white-space: nowrap;
    text-decoration: none;
    color: #444;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: background-color 0.2s;
}
.barchasi-grid a:nth-of-type(odd) {
    background-color: #fff;
}
.barchasi-grid a:nth-of-type(even) {
    background-color: #f2f2f2;
}
.barchasi-grid a:hover {
    background-color: #f2f2f2;
    color: #cc0000;
}

/* NAV LINKLAR (chapdan o‘ngga scroll) */
.axcw-nav-links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
}
.axcw-nav-links::-webkit-scrollbar {
    height: 6px;
}
.axcw-nav-links::-webkit-scrollbar-thumb {
    background: #cc0000;
    border-radius: 4px;
}
.axcw-nav-links a {
    text-decoration: none;
    color: #444;
    font-size: 16px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.axcw-nav-links a:nth-of-type(odd) {
    background-color: #fff;
}
.axcw-nav-links a:nth-of-type(even) {
    background-color: #f2f2f2;
}
.axcw-nav-links a:hover {
    background-color: #f2f2f2;
    color: #cc0000;
}

/* foydalanuvchi dropdown */
.user-dropdown {
    position: relative;
    margin-left: 20px;
    display: inline-block;
}
.user-label {
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.user-label:hover {
    background-color: #f0f0f0;
}
.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    min-width: 220px;
    padding: 10px;
    z-index: 10001;
}
.user-dropdown:hover .user-dropdown-content {
    display: block;
}
.user-dropdown-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
}
.user-dropdown-content img {
    display: block;
    max-width: 100px;
    margin: 0 auto 5px auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.logout-link {
    display: inline-block;
    color: #cc0000;
    text-decoration: none;
    border: 1px solid #cc0000;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.2s;
}
.logout-link:hover {
    background: #cc0000;
    color: #fff;
}

/* ====== CHAT WIDGET: FAB TUGMALAR STYLES (faqat style.css) ====== */
.axcw-theme-toggle{
  position:fixed;
  bottom:10px;
  right:20px;
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:50%;
  background:#f0f0f0;
  color:#111;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  z-index:2147483647;
  transition:transform .2s;
}
.axcw-theme-toggle:hover{transform:scale(1.1)}
.axcw-fab{
  position:fixed;
  bottom:10px;
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:50%;
  background:#f0f0f0;
  color:#111;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  z-index:2147483647;
  transition:transform .2s;
}
.axcw-fab:hover{transform:scale(1.1)}

.axcw-fab--txm { white-space: nowrap; }

.axcw-badge{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:12px;
  --b-h:20px;
  height:var(--b-h);
  border-radius:10px;
  padding:0 4px;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ff0000;
  color:#fff;
  line-height:1;
}
.axcw-badge--pulse{isolation:isolate}
.axcw-badge--pulse::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  height:var(--b-h);
  aspect-ratio:1/1;
  border-radius:50%;
  pointer-events:none;
  z-index:-1;
  box-shadow:0 0 0 0 rgba(255,0,0,.6);
  animation:axcw-badge-pulse 2s ease-out infinite;
}
@keyframes axcw-badge-pulse{
  0%{transform:translate(-50%,-50%) scale(1);opacity:.8;box-shadow:0 0 0 0 rgba(255,0,0,.6)}
  70%{transform:translate(-50%,-50%) scale(2.2);opacity:0;box-shadow:0 0 0 24px rgba(255,0,0,0)}
  100%{transform:translate(-50%,-50%) scale(2.2);opacity:0;box-shadow:0 0 0 24px rgba(255,0,0,0)}
}

/* Buyurtmalar 0/0/0 ko‘rsatkichi */
.axcw-orders{
  align-items:center;
  font-weight:700;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",Arial,sans-serif;
  font-size:15px;
  line-height:1;
}
.axcw-orders .o{display:inline-block;text-align:center}
.axcw-orders .o-s{color:#e53935}
.axcw-orders .o-y{color:#ffb300}
.axcw-orders .o-t{color:#00c853}
.axcw-orders .o-sl{color:#7a7a7a}



/* CHAT PANELI (chap tomonda) */
#chat-container {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    background: #fff;
    box-sizing: border-box;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    border-right: none;
}
.chat-image{
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.img-box{
    width: 400px;
    height: 400px;
    display: inline-block;
    overflow: hidden;
    border-radius: 6px;
}
#chat-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
    border: none;
}
#chat-box {
    flex: 1 1 auto;
    border: 1px solid #ccc;
    background: #fafafa;
    border-radius: 4px;
    padding: 8px;
    overflow-y: auto;
    font-size: 14px;
    margin-bottom: 10px;
}
.chat-message {
    border-bottom: 1px dotted #ddd;
    padding-bottom: 4px;
    position: relative;
    font-size: 16px;
    margin-top: 5px;
}
.chat-user {
    font-weight: bold;
    color: #cc0000;
    cursor: pointer;
}
.chat-time {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}
.chat-text {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    line-height: 1.4em;
}
.chat-audio {
    margin: 5px;
    max-width: 100%;
}
.chat-audio audio {
    display: none;
}


.chat-audio:has(audio) {
    margin: 6px 0;
}
.mention {
    color: #cc0000;
    font-weight: bold;
}
.delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    color: #cc0000;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
}
.chat-message:hover .delete-btn {
    display: inline;
}
#chat-input-container {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.recipient-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.recipient-row label {
    font-size: 14px;
    color: #333;
}
#recipient {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
}
#chat-input {
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 12px);
    box-sizing: border-box;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}
#chat-send-btn {
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}
#chat-send-btn:hover {
    background: #a40000;
}

@media (max-width: 767px) {
    #chat-container {
        display: none;
    }
}

/* QARORLAR PANELI (o‘ng tomonda) */
#qarorlar-container {
    position: fixed;
    top: 60px;
    right: 0;
    width: 260px;
    height: calc(100vh - 60px);
    background: #fff;
    border-left: 1px solid #dedede;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}
#qarorlar-content {
    flex: 1 1 auto;
}
#qarorlar-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Umumiy content container */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 8px;
    padding: 0 20px 20px;
}
.qarorlarcontainer {
    width: 90%;
    max-width: 1200px;
    background: #fff;
    border: 1px solid #dedede;
    padding: 12px;
}
.page-title {
    margin-top: 0;
    color: #cc0000;
    text-align: center;
    margin-bottom: 30px;
}
.stats-box {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}
#oylikHisobHeader {
    position: relative;
    text-align: center;
}
#oylikHisobTitleRow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 34px;
}
#oylikHisobTitleRow h2 {
    margin: 0;
}
#salary_month_select {
    min-width: 180px;
    cursor: pointer;
}
#oylikHisobToggle {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    cursor: pointer;
}
#oylikHisobTable {
    margin-top: 10px;
}
.shtraf-details-container,
.avans-details-container {
    display:none;
    background:#fafafa;
    border:1px solid #ccc;
    margin:5px 0;
    padding:5px 10px;
}
.shtraf-details-container h4,
.avans-details-container h4 {
    margin:0 0 5px 0;
    font-size:14px;
}


/* QARORLAR.PHP (hujjat sahifasi) */
.doc-container {
    max-width: 800px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
}
.doc-container h2 {
    color: #cc0000;
    margin-top: 0;
}
.labels {
    margin-bottom: 8px;
}
.label {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    color: #fff;
    text-transform: uppercase;
}
.label-qaror  { background: #cc0000; }
.label-farmon { background: #666; }
.label-ochiq  { background: #cc0000; }
.label-maxfiy { background: #a40000; }
.deadline {
    color: #cc0000;
    margin-left: 10px;
    font-size: 14px;
}
.desc-box {
    border: 1px solid #eee;
    padding: 10px;
    background: #fafafa;
    margin-top: 10px;
    border-radius: 4px;
}
.footer-link {
    margin-top: 10px;
}
.footer-link a {
    color: #cc0000;
    text-decoration: none;
}
.footer-link a:hover {
    text-decoration: underline;
}

/* Ro'yxat sahifasi (doc-item) */
.header2 {
    background: #fff;
}
.header2 a.add-link {
    float: right;
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 3px;
}
.header2 a.add-link:hover {
    background: #a40000;
}
.doc-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: relative;
    margin-left: 6px;
}
.doc-item:last-child {
    border-bottom: none;
}
.doc-item h4 {
    margin: 0;
    font-size: 15px;
    color: #cc0000;
}
.doc-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}
.doc-shortdesc {
    margin-top: 5px;
    font-size: 14px;
}
.doc-shortdesc a {
    font-size: 15px;
    color: #17212b;
    text-decoration: none;
}
.doc-shortdesc a:hover {
    text-decoration: underline;
}
.doc-label {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 5px;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
}
.finish-form {
    position: absolute;
    top: 10px;
    right: 0;
}
.finish-form button {
    background: #991111;
    color: #fff;
    border: none;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}
.finish-form button:hover {
    background: #800f0f;
}
.deadline-timer {
    font-size: 12px;
    color: #fff;
    background: #cc0000;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 3px;
}
.finished-doc {
    opacity: 0.6;
}

td.clickable:hover {
    cursor:pointer;
}


.crm-container {
    padding: 20px;
}
.top-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar h1 {
    margin: 0;
    font-size: 22px;
    color: #cc0000;
}
.inbox-container {
    display: flex;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}
.conversation-list {
    width: 350px;
    height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}
.conversation-list h2 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

.conversation-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
}
.conversation-item:hover {
    background: #f0f0f0;
}
.conversation-item2 {
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
}
.conversation-item2.group-status-card {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 5px 0;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #333;
}
.group-status-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.group-status-title {
    font-size: 14px;
}
.group-status-text {
    font-size: 12px;
    opacity: 0.85;
}
.group-status-owner {
    font-size: 12px;
    color: #cc0000;
}
.group-status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.group-status-form {
    margin: 0;
}
.btn.group-delete-btn {
    background: #cc0000;
}
.btn.group-delete-btn:hover {
    background: #a40000;
}
@media (max-width: 768px) {
    .conversation-item2.group-status-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .group-status-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
.conversation-itemqidiruv{
    position: sticky;   
    top: 0;             
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background:#fff;    
    z-index:10;         
}
.conversation-search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.conversation-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 14px;
    border-radius: 20px !important;
    padding: 9px 14px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
}
.conversation-search-wrap .conversation-search-input {
    padding-right: 38px;
}
.conversation-search-input::placeholder {
    color: #333;
    opacity: 1;
}
.conversation-search-input:focus {
    border-color: #cc0000;
    outline: none;
}
.conversation-itemqidiruv .group-add-trigger {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #cc0000;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.conversation-itemqidiruv .group-add-trigger:hover {
    background: #e5e5e5;
}
.conversation-itemqidiruv .group-add-trigger:focus-visible {
    outline: 2px solid #cc0000;
    outline-offset: 2px;
}
.search-results-box {
    border-top: 1px solid #ddd;
}
.search-results-header {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    opacity: .85;
    color: #666;
}
.search-results-empty {
    padding: 10px;
    color: #666;
}
.conversation-item-body {
    flex: 1;
    min-width: 0;
}
.conversation-avatar {
    margin-right: 10px;
}
.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-noimage {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--tg-avatar-top, #5caffa) 0%, var(--tg-avatar-bottom, #408acf) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    font-weight: 600;
}
.conversation-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
    width: 100%;
    gap: 6px;
}
.conversation-title strong {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-pin-icon {
    flex: 0 0 auto;
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1;
}
.conversation-pin-icon[hidden] {
    display: none !important;
}
.badge {
    background-color: #cc0000;
    color: #fff;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
}
.chat-view {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    font-size: 14.5px;
}
.chat-messages {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
}
.tezkor-javob-editor-messages {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
}
.chat-messages.chat-messages-initializing {
    opacity: 1;
}
.chat-messages.chat-messages-ready {
    opacity: 1;
    transition: none;
}
.chat-file-drop-overlay {
    position: fixed;
    z-index: 10100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    pointer-events: none;
    box-sizing: border-box;
    background: var(--forward-modal-bg);
    color: var(--pinned-bar-accent);
    border: 2px dashed var(--pinned-bar-accent);
    box-shadow: inset 0 0 0 1px var(--forward-modal-border);
}
.chat-file-drop-overlay.is-visible {
    display: flex;
}
.chat-file-drop-overlay-inner {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    transform: translateY(-4px);
}
.chat-file-drop-overlay-icon {
    width: 66px;
    height: 78px;
    border-radius: 10px;
    background: var(--forward-item-bg);
    border: 1px solid var(--forward-modal-border);
    position: relative;
    box-shadow: 0 14px 30px var(--chat-menu-shadow);
}
.chat-file-drop-overlay-icon::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent var(--forward-item-hover-border) transparent;
}
.chat-file-drop-overlay-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border-left: 4px solid var(--pinned-bar-accent);
    border-bottom: 4px solid var(--pinned-bar-accent);
    transform: translate(-50%, -28%) rotate(-45deg);
}
.chat-file-drop-overlay-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}
.chat-file-drop-overlay-subtitle {
    font-size: 20px;
    line-height: 1.25;
    color: var(--forward-modal-muted);
}
body button.chat-jump-bottom-btn {
    position: fixed;
    z-index: 60;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 50% !important;
    background: #1f3043 !important;
    color: #d7e3f1 !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
body button.chat-jump-bottom-btn span {
    width: 13px;
    height: 13px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -2px);
}
body button.chat-jump-bottom-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
body button.chat-jump-bottom-btn:hover {
    background: #263a50 !important;
}
.message-form textarea {
    border-color: #f0f0f0;
    background-color: #f0f0f0;
    width: 100%;
    height: 23px;
    resize: none;
    outline: none;
    font-size: 16px;
    overflow: hidden;
    box-sizing: border-box;
}
.message-form {
    padding: 7px 12px 9px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background: var(--forward-modal-bg, #fff);
    border-top: 1px solid var(--chat-menu-border, #ddd);
}
.btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
}
.btn:hover {
    background-color: #7d0000;
}
.nav-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: background-color 0.3s;
}
.tab:hover {
    background-color: #cc0000;
    color: #fff;
}
.tab.active {
    background-color: #cc0000;
    color: #fff;
}
.conversation-item.selected {
    background: #cc0000;
    color: #fff !important;
}
.conversation-item.selected .snippet {
    color: #fff !important;
}
.attachment-icon {
    margin-left: 10px;
    font-size: 22px;
    cursor: pointer;
}
#imagePreviewModal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 10120;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}
#imagePreviewContent {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: min(400px, calc(100vw - 32px));
    max-width: 400px;
    max-height: calc(100vh - 32px);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#previewImage {
    max-width: 100%;
    margin-bottom: 10px;
}
#previewCaption {
    width: 100%;
    min-height: 60px;
    height: 72px;
    max-height: 160px;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 10px;
    font-size: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    flex: 0 0 auto;
}
.modal-buttons {
    display: flex;
    justify-content: space-between;
}
#recordButton {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 18px;
    cursor: pointer;
}
#messageForm {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    box-sizing: border-box;
    overflow: hidden;
}
#messageForm .attachment-icon,
#messageForm #shablonGapBtn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}
#messageForm .attachment-icon:hover,
#messageForm #shablonGapBtn:hover {
    background: rgba(120, 144, 166, 0.14);
}
#messageForm .attachment-icon:active,
#messageForm #shablonGapBtn:active {
    transform: scale(0.94);
}
#messageForm .attachment-icon img,
#messageForm #shablonGapBtn img,
#messageForm .voice-record-btn img {
    width: 24px !important;
    height: 24px !important;
    display: block;
    object-fit: contain;
}
#messageForm .voice-record-wrap {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}
#messageForm #shablonGapBtn {
    order: 4;
}
#messageForm #tezkorJavobBtn {
    order: 5;
    color: #111;
}
#messageForm .conversation-item2 {
    order: 6;
}
#messageForm.is-quick-reply-composer #locationPickerBtn,
#messageForm.is-quick-reply-composer #shablonGapBtn,
#messageForm.is-quick-reply-composer #tezkorJavobBtn {
    display: none !important;
}
#messageForm .voice-record-btn {
    width: 40px;
    height: 40px;
    color: inherit;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
}
.location-picker-btn {
    position: relative;
}
.composer-location-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}
.composer-location-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50% 50% 50% 0;
    background: #ff3f46;
    transform: rotate(-45deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.composer-location-icon::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 0 1px rgba(255, 63, 70, .32);
}
.location-picker-menu {
    position: fixed;
    z-index: 10020;
    display: none;
    min-width: 230px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 10px;
    background: #172230;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}
.location-picker-menu.is-open {
    display: block;
}
.location-picker-option {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #edf4fb;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.location-picker-option:hover,
.location-picker-option:focus-visible {
    background: rgba(255, 255, 255, .08);
    outline: none;
}
.location-picker-option-pin {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50% 50% 50% 0;
    background: #ff4f5f;
    transform: rotate(-45deg);
}
.location-picker-option-pin::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}
.location-picker-option-title {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
}
.location-picker-option-subtitle {
    display: block;
    margin-top: 2px;
    color: #9fb0c1;
    font-size: 12px;
    line-height: 1.2;
}
#messageForm .conversation-item2 {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 3px 6px;
    box-sizing: border-box;
    flex: 1 1 0%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    overflow: hidden;
}
.tezkor-javob-editor.is-open ~ button.chat-jump-bottom-btn,
.tezkor-javob-editor.is-open ~ .chat-jump-bottom-btn,
body:has(.tezkor-javob-editor.is-open) button.chat-jump-bottom-btn {
    display: none !important;
}
#tezkorJavobEditorForm .conversation-item2 {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 3px 6px;
    box-sizing: border-box;
    flex: 1 1 0%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    overflow: hidden;
}
#messageForm #replyBox {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 38px;
    max-height: 42px;
    margin: 0;
    padding: 4px 38px 4px 8px;
    flex: 0 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}
#messageForm .reply-box-head {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    overflow: hidden;
}
#messageForm .reply-box-title {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    line-height: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#messageForm .reply-preview-text {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    min-width: 0;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
}
#messageForm #replyCancelBtn {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    flex: 0 0 auto;
    transform: translateY(-50%);
}
#messageForm .tg-input-wrap {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
}
#tezkorJavobEditorForm .tg-input-wrap {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
}
#messageForm .tg-input-wrap textarea {
    min-height: 34px;
    padding-right: 48px !important;
    caret-color: #54a9eb;
}
#tezkorJavobEditorForm .tg-input-wrap textarea {
    min-height: 34px;
    padding-right: 48px !important;
    caret-color: #54a9eb;
}
#messageForm .composer-send-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(0.78);
    transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease, visibility 0.16s ease;
}
#tezkorJavobEditorForm .composer-send-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(0.78);
    transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease, visibility 0.16s ease;
}
#messageForm .composer-send-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}
#tezkorJavobEditorForm .composer-send-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}
#messageForm .composer-send-btn:hover {
    background: rgba(42, 171, 238, 0.14) !important;
}
#tezkorJavobEditorForm .composer-send-btn:hover {
    background: rgba(42, 171, 238, 0.14) !important;
}
#messageForm .composer-send-btn span {
    width: 22px;
    height: 18px;
    margin-left: 2px;
    background: #54a9eb;
    clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 58%, 22% 42%);
}
#tezkorJavobEditorForm .composer-send-btn span {
    width: 22px;
    height: 18px;
    margin-left: 2px;
    background: #54a9eb;
    clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 58%, 22% 42%);
}
#messageForm .voice-record-wrap .voice-locked-send-btn {
    right: 1px;
}
#messageForm .voice-record-wrap .voice-locked-send-btn:hover {
    background: rgba(217, 0, 0, 0.10) !important;
}
#messageForm .voice-record-wrap .voice-locked-send-btn span {
    background: #d90000;
}
#messageForm .voice-record-wrap.is-voice-locked #recordButton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.voice-record-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.voice-record-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.voice-record-btn img {
    pointer-events: none;
}
.voice-lock-track {
    --voice-lock-progress: 0;
    position: absolute;
    left: 50%;
    bottom: 46px;
    width: 38px;
    height: 82px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0 10px;
    box-sizing: border-box;
    border-radius: 20px;
    background: #eef3f8;
    color: #53606c;
    box-shadow: 0 8px 18px rgba(17,24,39,0.16);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 20;
}
.voice-lock-track.is-active {
    display: flex;
}
.voice-lock-track.is-armed,
.voice-lock-track.is-locked {
    transform: translateX(-50%) translateY(-5px);
}
.voice-lock-icon {
    position: relative;
    width: 15px;
    height: 12px;
    margin-top: 4px;
    border-radius: 3px;
    background: currentColor;
}
.voice-lock-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -8px;
    width: 9px;
    height: 9px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}
.voice-lock-arrow {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 1px;
    transform: translateY(calc(var(--voice-lock-progress) * -20px));
    transition: transform 0.08s linear, color 0.16s ease;
}
.recording-active {
    color: #d90000;
    animation: blink 1s infinite;
}
.voice-recorder-panel {
    position: relative;
    display: none;
    align-items: center;
    gap: 10px;
    width: min(620px, calc(100% - 18px));
    min-height: 48px;
    margin: 0 0 8px 48px;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(217,0,0,0.18);
    border-radius: 8px;
    background: #fff7f7;
    color: #202124;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
}
.voice-recording-now #messageForm {
    width: 100%;
    gap: 8px;
    margin-bottom: 0 !important;
    overflow: visible;
}
.voice-recording-now .message-form {
    overflow: visible;
}
.voice-recording-now #messageForm .conversation-item2 {
    display: none !important;
}
.voice-recording-now #voiceRecorderPanel {
    order: 6;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0 0 0 8px;
}
.voice-recorder-panel.is-active {
    display: flex;
}
.voice-recorder-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 9px;
}
.voice-rec-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #d90000;
    box-shadow: 0 0 0 0 rgba(217,0,0,0.42);
    animation: voicePulse 1.1s infinite;
}
.voice-rec-time {
    min-width: 44px;
    font: 600 13px/1.2 Arial, sans-serif;
    color: #b00020;
}
.voice-rec-wave {
    height: 26px;
    min-width: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 4px;
}
.voice-rec-wave span {
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: #e05252;
    animation: voiceWave 0.85s ease-in-out infinite;
}
.voice-rec-wave span:nth-child(2) { animation-delay: 0.08s; }
.voice-rec-wave span:nth-child(3) { animation-delay: 0.16s; }
.voice-rec-wave span:nth-child(4) { animation-delay: 0.24s; }
.voice-rec-wave span:nth-child(5) { animation-delay: 0.32s; }
.voice-rec-wave span:nth-child(6) { animation-delay: 0.40s; }
.voice-rec-wave span:nth-child(7) { animation-delay: 0.48s; }
.voice-rec-wave span:nth-child(8) { animation-delay: 0.56s; }
.voice-rec-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #444;
}
.voice-rec-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.voice-rec-actions:empty {
    display: none;
}
.voice-rec-cancel-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #cc0000;
    font: 600 13px/1.2 Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.voice-rec-cancel-link:hover {
    color: #a40000;
    text-decoration: underline;
}
.voice-rec-action {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    background: #fff;
    color: #2f3a45;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
}
.voice-rec-action:hover {
    transform: translateY(-1px);
    background: #f3f7fb;
}
.voice-rec-action:disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
}
#messageForm .voice-record-wrap .voice-lock-pause-btn {
    position: absolute;
    left: 50%;
    bottom: 50px;
    width: 40px;
    height: 40px;
    z-index: 21;
    border-color: rgba(217,0,0,0.10);
    background: #fff7f7;
    color: #d90000;
    box-shadow: 0 8px 18px rgba(17,24,39,0.16);
    transform: translateX(-50%);
}
#messageForm .voice-record-wrap .voice-lock-pause-btn:hover {
    background: #ffe9e9;
    transform: translateX(-50%) translateY(-1px);
}
#messageForm .voice-record-wrap .voice-lock-pause-btn.is-resume img {
    width: 24px !important;
    height: 24px !important;
    display: block;
    object-fit: contain;
    pointer-events: none;
}
.voice-recorder-panel.is-locked {
    border-color: rgba(37,99,235,0.24);
    background: #f3f7ff;
}
.voice-recorder-panel.is-paused .voice-rec-dot,
.voice-recorder-panel.is-paused .voice-rec-wave span {
    animation-play-state: paused;
    opacity: 0.46;
}
@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}
@keyframes voicePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217,0,0,0.42);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(217,0,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217,0,0,0);
    }
}
@keyframes voiceWave {
    0%, 100% {
        height: 8px;
    }
    50% {
        height: 24px;
    }
}
@media (max-width: 767px) {
    .voice-recorder-panel {
        width: calc(100% - 12px);
        margin-left: 6px;
        flex-wrap: wrap;
    }
    .voice-recorder-main {
        flex-basis: calc(100% - 156px);
    }
    .voice-rec-wave {
        min-width: 70px;
    }
}
.sticker-panel {
    width: 120px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    height: 90vh;
    overflow: auto;
}
.sticker-panel img {
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.sticker-panel img:hover {
    border-color: #cc0000;
}
#shablonGapBtn {
    margin-right: 10px;
    font-size: 18px;
    cursor: pointer;
}
.tezkor-javob-trigger {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #111;
    background: var(--quick-reply-elevated-bg);
    border: 1px solid var(--quick-reply-border);
}
.tezkor-javob-menu {
    position: fixed;
    display: none;
    width: min(420px, calc(100vw - 16px));
    max-height: min(420px, calc(100vh - 96px));
    overflow: hidden;
    z-index: 10050;
    background: var(--quick-reply-bg);
    color: var(--quick-reply-text);
    border: 1px solid var(--quick-reply-border);
    border-radius: 8px;
    box-shadow: 0 16px 46px var(--quick-reply-shadow);
}
.tezkor-javob-menu.is-open {
    display: block;
}
.tezkor-javob-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--quick-reply-border);
}
.tezkor-javob-manage,
.tezkor-javob-secondary {
    border: 1px solid var(--quick-reply-button-border);
    background: var(--quick-reply-button-bg);
    color: var(--quick-reply-accent);
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
}
.tezkor-javob-menu-list {
    overflow: auto;
    max-height: 342px;
}
.tezkor-javob-row {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--quick-reply-border);
    background: var(--quick-reply-bg);
    color: inherit;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}
.tezkor-javob-row:hover,
.tezkor-javob-edit:hover {
    background: var(--quick-reply-hover-bg);
}
.tezkor-javob-shortcut {
    color: var(--quick-reply-accent);
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tezkor-javob-row-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.tezkor-javob-title,
.tezkor-javob-preview {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tezkor-javob-preview,
.tezkor-javob-count {
    color: var(--quick-reply-muted);
    font-size: 12px;
}
.tezkor-javob-empty {
    padding: 14px;
    color: var(--quick-reply-muted);
}
.tezkor-javob-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10070;
    background: rgba(8, 16, 28, 0.42);
}
.tezkor-javob-modal.is-open {
    display: flex;
}
.tezkor-javob-dialog {
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    background: var(--quick-reply-elevated-bg);
    color: var(--quick-reply-text);
    border-radius: 8px;
    box-shadow: 0 20px 64px var(--quick-reply-shadow);
}
.tezkor-javob-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--quick-reply-border);
}
.tezkor-javob-head h3 {
    margin: 0;
    font-size: 18px;
}
.tezkor-javob-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--quick-reply-button-border) !important;
    border-radius: 6px;
    background: var(--quick-reply-button-bg) !important;
    color: var(--quick-reply-accent) !important;
    cursor: pointer;
}
.tezkor-javob-body {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr);
    gap: 0;
    min-height: 420px;
}
.tezkor-javob-list {
    border-right: 1px solid var(--quick-reply-border);
    overflow: auto;
    max-height: calc(100vh - 96px);
    background: var(--quick-reply-bg);
}
.tezkor-javob-manage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px 32px auto;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--quick-reply-border);
}
.tezkor-javob-edit {
    border: 0 !important;
    background: transparent !important;
    color: var(--quick-reply-text) !important;
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    text-align: left;
    cursor: pointer;
}
.tezkor-javob-move,
.tezkor-javob-delete {
    border: 1px solid var(--quick-reply-button-border) !important;
    background: var(--quick-reply-button-bg) !important;
    color: var(--quick-reply-text) !important;
    border-radius: 6px;
    min-height: 32px;
    cursor: pointer;
}
.tezkor-javob-delete {
    padding: 0 8px;
    color: var(--quick-reply-accent) !important;
}
.tezkor-javob-move:disabled {
    opacity: 0.45;
    cursor: default;
}
.tezkor-javob-form {
    padding: 14px;
    overflow: auto;
}
.tezkor-javob-form label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--quick-reply-text);
    font-size: 13px;
    font-weight: 600;
}
.tezkor-javob-form input,
.tezkor-javob-form textarea {
    width: 100%;
    border: 1px solid var(--quick-reply-border);
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
    color: var(--quick-reply-text);
    background: var(--quick-reply-input-bg);
}
.tezkor-javob-form textarea {
    min-height: 180px;
    resize: vertical;
}
.tezkor-javob-error {
    min-height: 20px;
    color: var(--quick-reply-accent);
    font-size: 13px;
}
.tezkor-javob-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}
.tezkor-javob-primary {
    background: var(--quick-reply-button-bg) !important;
    color: var(--quick-reply-accent) !important;
    border: 1px solid var(--quick-reply-button-border) !important;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
}
@media (max-width: 700px) {
    .tezkor-javob-editor-dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
    }
    .tezkor-javob-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .tezkor-javob-list {
        border-right: 0;
        border-bottom: 1px solid #e7edf3;
        max-height: 220px;
    }
    .tezkor-javob-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }
    .tezkor-javob-count {
        display: none;
    }
    .tezkor-javob-manage-row {
        grid-template-columns: minmax(0, 1fr) 30px 30px;
    }
    .tezkor-javob-delete {
        grid-column: 1 / -1;
        height: 32px;
    }
}
#shablonMenuContainer {
    position: absolute;
    left: 50px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
    max-width: 300px;
}
.shablon-folder {
    padding: 8px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.shablon-folder:hover {
    background-color: #f5f5f5;
}
.shablon-folder .folder-title {
    font-weight: bold;
    cursor: default;
}
.shablon-submenu {
    bottom: 0%;
    display: none;
    position: absolute;
    left: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    min-width: 200px;
}
.shablon-submenu .shablon-phrase {
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}
.shablon-submenu .shablon-phrase:hover {
    background-color: #f0f0f0;
}
.shablon-folder:hover .shablon-submenu {
    display: block;
}

#uploadProgress {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 999999;
}

.tg-input-wrap{
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.tg-input-wrap textarea{
    width: 100%;
    padding-left: 18px !important;
    caret-color: #54a9eb;
}

::-webkit-scrollbar-track:hover {
  background: #f5f5f7; 
}


::-webkit-scrollbar-thumb {
  background: #888888; 
}


::-webkit-scrollbar {
  width: 10px; 
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}
.chat-date-separator {
    clear: both;
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 12px 0 10px;
    line-height: 1;
}
.chat-date-separator-label {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid var(--chat-date-pill-border);
    background: var(--chat-date-pill-bg);
    color: var(--chat-date-pill-text);
}

.vakil-table-wrap {
    margin-top: 0;
}
.vakil-table {
    margin-top: 0;
}

 .vakil-table-wrap{
  overflow:auto;
}
.vakil-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.vakil-table th{
  text-align:left;
  padding:8px 10px;
  background:#cc0000;
  color:#fff;
  position:sticky;
  top:0;
  z-index:2;
}
.vakil-table td{
  padding:4px 10px;
}
body button.btn-copy{
  width:auto;
  height:auto;
  min-width:0;
  padding:0 !important;
  margin-left:6px;
  display:inline;
  background:transparent !important;
  color:inherit !important;
  border:none !important;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  vertical-align:middle;
}
body button.btn-copy:hover{
  background:transparent !important;
  color:#ff6b6b !important;
}

    .vakil-bar{
    margin: 6px 0 10px;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}
.vakil-bar-title{
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
}
.vakil-chips{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vakil-chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background: #f7f7f7;
    font-size: 13px;
}
.vakil-chip:hover{
    border-color: #cc0000;
}
.vakil-chip.active{
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
}
.vakil-chip .vakil-phone{
    font-size: 12px;
    opacity: 0.85;
}
.dashboard-title {
    text-align: center;
    background-color: #cc0000;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.client-details {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}
.client-info-header p {
    margin-top: 5px;
    color: #666;
}
.edit-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
}
.edit-btn:hover {
    background-color: #cc0000;
}
.nav-tabs-container {
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dashboard-row {
    display: flex;
    gap: 20px;
}
.dashboard-card-new {
    flex: 1;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.dashboard-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.dashboard-card-new h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}
.big-value {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: #333;
}
.balance-edit-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #999;
}
.balance-edit-icon:hover {
    color: #cc0000;
}
.chart-container {
    margin-top: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 10px;
    height: 400px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    --chart-text: #333;
    --chart-muted: #777;
    --chart-track: #eef1f5;
    --chart-track-border: #d9e0e8;
    --chart-bar-top: #ff6b6b;
    --chart-bar-bottom: #cc0000;
    --chart-shadow: rgba(204,0,0,0.28);
}
.css-chart-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 18px 14px;
}
.css-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    color: var(--chart-text);
}
.css-chart-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}
.css-chart-note {
    margin-top: 4px;
    color: var(--chart-muted);
    font-size: 12px;
    font-weight: 600;
}
.css-chart-total {
    color: var(--chart-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}
.css-monthly-chart {
    flex: 1;
    min-height: 0;
    min-width: 100%;
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 6px 4px 0;
}
.css-chart-item {
    width: auto;
    min-width: 72px;
    flex: 1 1 0;
    display: grid;
    grid-template-rows: 34px 1fr 22px;
    gap: 8px;
    text-align: center;
    color: var(--chart-text);
}
.css-chart-value {
    align-self: end;
    color: var(--chart-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}
.css-chart-bar-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--chart-track-border);
    border-radius: 7px 7px 4px 4px;
    background:
        linear-gradient(to top, transparent 24%, rgba(255,255,255,0.08) 25%, transparent 26%),
        linear-gradient(to top, transparent 49%, rgba(255,255,255,0.08) 50%, transparent 51%),
        linear-gradient(to top, transparent 74%, rgba(255,255,255,0.08) 75%, transparent 76%),
        var(--chart-track);
}
.css-chart-bar {
    width: 100%;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, var(--chart-bar-top), var(--chart-bar-bottom));
    box-shadow: 0 -8px 18px var(--chart-shadow);
}
.css-chart-label {
    align-self: start;
    color: var(--chart-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.css-chart-empty {
    flex: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chart-muted);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}
@media (max-width: 700px) {
    .css-chart-container {
        height: 360px;
        padding: 14px 12px 12px;
    }
    .css-chart-header {
        flex-direction: column;
        gap: 6px;
    }
    .css-chart-total {
        text-align: left;
    }
    .css-chart-item {
        min-width: 64px;
    }
}
.info-section {
    text-align: center;
}
.info-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}
.info-table-wrapper {
    display: flex;
    justify-content: center;
}
.info-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.info-table th {
    background-color: #cc0000;
    color: #fff;
    padding: 10px;
    width: 150px;
    text-align: left;
    font-weight: bold;
}
.info-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: #333;
    background-color: rgba(255,255,255,0.8);
    font-weight: bold;
}
.info-table tr:last-child td {
    border-bottom: none;
}
.info-buttons-container {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}
.edit-info-btn,
.save-info-btn {
    background-color: #cc0000;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.edit-info-btn:hover,
.save-info-btn:hover {
    background-color: #cc0000;
}
.wakils-container {
    margin-top: 10px;
    text-align: left;
}
.wakils-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.wakils-table th {
    background-color: #cc0000;
    padding: 10px;
    text-align: left;
}
.wakils-table td {
    border: 1px solid #ccc;
    padding: 8px;
    background-color: #fff;
}

.btn-wakil-edit,
.btn-wakil-delete {
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
    color: #fff;
}
.btn-wakil-edit {
    background-color: #28a745;
}
.btn-wakil-edit:hover {
    background-color: #218838;
}
.btn-wakil-delete {
    background-color: #cc0000;
}
.btn-wakil-delete:hover {
    background-color: #cc0000;
}


.add-wakil-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
}
.add-wakil-btn:hover {
    background-color: #cc0000;
}
.notes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.notes-subject-label,
.notes-textarea-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #444;
}
.notes-subject-input {
    width: 95%;
    max-width: 1000px;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.notes-subject-input:focus {
    border-color: #cc0000;
}
.notes-textarea {
    width: 95%;
    max-width: 1000px;
    height: 200px;
    border-radius: 10px;
    border: 2px dashed #ccc;
    padding: 10px;
    resize: vertical;
    font-size: 14px;
    outline: none;
    background-image: linear-gradient(45deg, rgba(204,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(204,0,0,0.03) 75%, rgba(204,0,0,0.03)),
                      linear-gradient(45deg, rgba(204,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(204,0,0,0.03) 75%, rgba(204,0,0,0.03));
}
.notes-save-btn {
    background: linear-gradient(45deg, #cc0000, #cc0000);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.notes-save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.tarix-section {
    margin-bottom: 20px;
}
.tarix-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.tarix-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
}
.tarix-search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.tarix-search {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}
.tarix-date {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}
.table-container {
    display: block;
    max-width: 100%;
    overflow: auto;
    justify-content: center;
}
.excel-export-btn {
    background-color: #f1c40f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
}
.excel-export-btn:hover {
    background-color: #d4ac0d;
}
.cards-section {
    text-align: center;
}
.chat-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-section h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
}
.chat-window {
    border: 1px solid #ccc;
    border-radius: 6px;
    height: 300px;
    overflow-y: auto;
    background-color: #fafafa;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-bubble {
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    max-width: 60%;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.from-them {
    align-self: flex-start;
    background-color: #3498db !important;
}
.from-me {
    align-self: flex-end;
    background-color: #e74c3c !important;
}
.chat-timestamp {
    font-size: 12px !important;
    color: #222 !important;
    position: absolute;
    bottom: -16px;
    right: 4px;
}
.from-them .chat-timestamp {
    left: 4px;
    right: auto;
}
.from-them::after,
.from-me::after {
    content: "";
    position: absolute;
    border-style: solid;
}
.from-them::after {
    left: -8px;
    top: 10px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #3498db transparent transparent;
}
.from-me::after {
    right: -8px;
    top: 10px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #e74c3c;
}
.chat-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.chat-file-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.file-label {
    background-color: #00a8ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}
.file-label:hover {
    background-color: #008ae6;
}
.chat-textarea {
    flex: 2;
    height: 40px;
    resize: none;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 8px;
    outline: none;
    font-size: 14px;
}
.chat-send-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.chat-send-btn:hover {
    background-color: #cc0000;
}
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
}
.close:hover {
    color: #000;
}
.modal-content h2 {
    margin-top: 0;
}
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.label-block {
    font-weight: bold;
    margin-bottom: 4px;
}
.input-block {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    outline: none;
}
.modal-content button[type="submit"] {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.modal-content button[type="submit"]:hover {
    background-color: #cc0000;
}
.confirm-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.confirm-btn:hover {
    background-color: #cc0000;
}
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}
.search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.search-container {
    flex: 1;
    position: relative;
}
.search-container input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #cc0000;
    outline: none;
}
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    margin: 10px;
}
.filters-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: bold;
}
.filters-row select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
}
.filter-submit-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.3s;
}
.filter-submit-btn:hover {
    background-color: #cc0000;
}
.create-new-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #cc0000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: width 0.3s, border-radius 0.3s;
    overflow: hidden;
}
.create-new-btn:hover {
    width: 200px;
    border-radius: 30px;
}
.create-new-btn:hover .icon-container {
    display: none;
}
.create-new-btn:hover::after {
    content: "Yangi mijoz qo‘shish";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
}
.icon-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    gap: 4px;
}
.icon-container .plus-icon {
    font-size: 26px;
    line-height: 60px;
}
.icon-container .user-icon {
    font-size: 24px;
    line-height: 60px;
}
.create-new-order-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #cc0000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: width 0.3s, border-radius 0.3s;
    overflow: hidden;
}
.create-new-order-btn:hover {
    width: 200px;
    border-radius: 30px;
}
.create-new-order-btn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    gap: 4px;
}
.create-new-order-btn .plus-icon {
    font-size: 26px;
    line-height: 60px;
}
.create-new-order-btn .box-icon {
    font-size: 24px;
    line-height: 60px;
}
.create-new-order-btn:hover .icon-container {
    display: none;
}
.create-new-order-btn:hover::after {
    content: "Yangi mahsulot qo‘shish";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
}
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-top: 20px;
}
.client-card {
    position: relative;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}
.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #cc0000;
}
.client-card h2 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}
.client-info {
    font-size: 14px;
    background-color: #fafafa;
    padding: 10px;
    border-radius: 6px;
    line-height: 1.5;
    word-wrap: break-word;
}
.client-info strong {
    display: inline-block;
    width: 110px;
    font-weight: normal;
    color: #555;
}
.category-label {
    position: absolute;
    top: 8px;
    right: 10px;
    border-radius: 4px;
    padding: 4px 8px;
    color: #fff;
    font-size: 12px;
}
.has-chat {
    background-color: #28a745;
    color: #fff;
}
.has-chat:hover {
    background-color: #28a745;
    color: #fff;
}
.cat-E {
    background-color: #ffe5e5;
    color: #000;
}
.cat-D {
    background-color: #ffcccc;
    color: #000;
}
.cat-C {
    background-color: #ff9999;
    color: #000;
}
.cat-B {
    background-color: #ff6666;
    color: #000;
}
.cat-A {
    background-color: #ff3333;
    color: #fff;
}
.cat-A1 {
    background-color: #ff0000;
    color: #fff;
}
.cat-A2 {
    background-color: #cc0000;
    color: #fff;
}
.cat-A3 {
    background-color: #990000;
    color: #fff;
}
.delete-order-btn,
.edit-order-btn {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 12px;
}
.delete-order-btn:hover,
.edit-order-btn:hover {
    background-color: #cc0000;
}
.drop-zone-edit {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 5px;
}
.drop-zone-edit.dragover {
    background-color: #eee;
}
.preview-edit {
    position: relative;
    display: inline-block;
    max-width: 100px;
    max-height: 100px;
    margin-top: 5px;
}
.preview-edit img {
    max-width: 100px;
    max-height: 100px;
}
.remove-preview-btn-edit {
    position: absolute;
    top: 0;
    right: 0;
    background: #fff;
    color: #f00;
    padding: 2px 6px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}



.info-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;            
}
.info-col--left  { order: 1; flex: 1 1 600px; min-width: 420px; }
.info-col--right { order: 2; flex: 0 0 360px; max-width: 420px; }
.info-col { flex:1; min-width:300px; }
.karusel-card {
  background:#fff; border-radius:10px; padding:16px;
  box-shadow:0 1px 4px rgba(0,0,0,0.1);
}
.karusel-card h3 { margin:0 0 10px; font-size:16px; color:#333; }
.karusel-status {
  display:inline-block; padding:6px 10px; border-radius:20px; font-weight:600;
}
.karusel-ok { 
  background:#e7f7ee !important; 
  color:#197a35 !important; 
}
.karusel-bad { 
  background:#ffe9e9 !important; 
  color:#a30000 !important; 
}
.karusel-none { 
  background:#f0f0f0 !important; 
  color:#555 !important; 
}
.btn-k-ok, 
.btn-k-bad {
  border:none !important; 
  border-radius:6px !important; 
  padding:8px 14px !important; 
  cursor:pointer !important; 
  font-weight:600 !important;
  margin:5px;
}

.btn-k-ok { 
  background:#28a745 !important; 
  color:#fff !important; 
}
.btn-k-ok:hover { 
  background:#218838 !important; 
}

.btn-k-bad { 
  background:#e74c3c !important; 
  color:#fff !important; 
  margin-left:8px !important; 
}
.btn-k-bad:hover { 
  background:#c0392b !important; 
}
.karusel-comment{
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
  background: rgba(0,0,0,0.04);
  border-radius: 6px;
  padding: 8px 10px;
}
.header-clients {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-messages-clients {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal-buttons-clients {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}
ul.timeline { list-style:none; padding:0; }
ul.timeline li { padding:12px; position:relative; }
.note-date { font-size:12px; color:#cc0000; font-weight:bold; }
.ai-btn, .del-btn, .reply-btn, .alarm-btn {
  position:absolute; top:12px; border:none; border-radius:4px; padding:5px 10px; font-size:12px; cursor:pointer; color:#fff;
}
.ai-btn{ right:0; background:#cc0000; } .ai-btn:hover{ background:#a40000; } .ai-btn.loading{ background:#9aaec4; cursor:default; }
.del-btn{ right:120px; } .del-btn:hover{ background:#cc0000; }
.reply-btn{ right:235px; background:#cc0000; } .reply-btn:hover{ background:#a40000; }
.alarm-btn{ right:175px; } .alarm-btn:hover{ background:#cc0000; }
.gpt-summary{ background:#f7f7ff; border:1px dashed #999; border-radius:8px; padding:15px; margin-top:12px; position:relative; }
.gpt-summary h4{ margin:0; font-size:14px; }
.toggle-full{ position:absolute; right:15px; top:15px; background:#cc0000; color:#fff; border:none; border-radius:4px; padding:3px 7px; font-size:11px; cursor:pointer; }
.toggle-full:hover{ background:#a40000; }
.gpt-full{ margin-top:8px; display:none; }
.reply-form{ margin-top:10px; display:none; }
.reply-form textarea{ height:80px; margin-top:0; }
.send-reply{ background:#cc0000; color:#fff; border:none; border-radius:6px; padding:5px 12px; font-size:12px; cursor:pointer; margin-top:5px; }
.send-reply:hover{ background:#a40000; }
.call-item{ background:#f9f9f9; border-left:4px solid #cc0000; padding-left:10px; }
.call-rec{ font-size:12px; margin-left:6px; }
.play-btn{ border:none; background:#cc0000; color:#fff; border-radius:4px; font-size:12px; padding:2px 6px; cursor:pointer; margin-left:6px; }
.play-btn:hover{ background:#a40000; }
.modal-chatgpt{ display:none; position:fixed; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:999; align-items:center; justify-content:center; }
.modal-box{ background:#fff; max-width:620px; width:92%; padding:20px; border-radius:8px; max-height:80%; overflow:auto; position:relative; }
.close-x{ position:absolute; right:15px; top:10px; font-size:22px; cursor:pointer; color:#888; }
pre{ white-space:pre-wrap; font-family:inherit; }
.alarm-section{ margin:20px; }
.alarm-row{ margin-bottom:6px; }
.alarm-row input[type=datetime-local]{ padding:4px 6px; border:1px solid #ccc; border-radius:4px; }
.add-alarm-btn{ background:#888; color:#fff; border:none; border-radius:4px; padding:4px 8px; font-size:12px; cursor:pointer; margin-bottom:6px; }
.add-alarm-btn:hover{ background:#555; }
.alarms{ font-size:12px; color:#444; margin-top:8px; }
#alarmModal{ display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:1000; align-items:center; justify-content:center; }
#alarmModal .alarm-modal-content{ background:#fff; padding:20px; position:relative; border-radius:6px; width:300px; }
#alarmModal .close-alarm{ position:absolute; right:10px; top:10px; font-size:18px; cursor:pointer; color:#888; }
#alarmModal input[type=text]{ width:100%; margin:10px 0; padding:8px; border:1px solid #ccc; border-radius:4px; }

.crm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    justify-content: flex-end;
}
.crm-header h1 {
    margin: 0;
    font-size: 24px;
    color: #cc0000;
}
.pipeline-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}
.stage-column {
    min-width: 300px;
    background-color: #fff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
    transition: background-color 0.2s;
}
.stage-column.dragover {
    background-color: #eee;
}
.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.stage-header h2 {
    font-size: 12px;
    margin: 0;
    color: #333;
    white-space: normal;
    max-width: none;    
    overflow: visible;  
    text-overflow: unset;
}
.stage-actions {
    display: flex;
    gap: 5px;
}
.stage-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.funnel-client-card {
    position: relative;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #ccc;
    cursor: move;
}
.funnel-client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.funnel-client-card h2 {
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    cursor: pointer;
}
.funnel-client-card .client-info-crm {
    font-size: 14px;
    background-color: #fafafa;
    padding: 6px;
    border-radius: 6px;
    line-height: 1.4;
    word-wrap: break-word;
}
.funnel-client-card .client-info-crm strong {
    display: inline-block;
    width: 85px;
    font-weight: normal;
    color: #555;
}
.btn2 {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px !important;
    padding: revert-layer !important;
}
.btn2:hover {
    background-color: #aa0000;
}
.rename-toggle-btn {
    padding: 3px 6px;
}
.rename-form {
    display: none;
    margin: 0;
    margin-bottom: 10px;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
}
.rename-form form {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0;
}
.rename-form input[type="text"] {
    width: 120px;
    font-size: 12px;
    padding: 3px;
}
.rename-form select {
    font-size: 12px;
    padding: 3px;
}
.widget-list {
    margin: 5px 0;
    padding: 8px;
    background-color: #fafafa;
    border-radius: 6px;
}
.widget-list ul {
    margin: 0;
    padding-left: 18px;
}
.widget-list li {
    font-size: 13px;
    margin-bottom: 3px;
}
.widget-list .widget-delete-btn {
    background-color: #666;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 8px;
    cursor: pointer;
}
.widget-list .widget-delete-btn:hover {
    background-color: #444;
}
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.modal-backdrop.active {
    display: flex;
}
.modal-container {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    width: 600px;
    max-width: 90%;
}
.widget-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.widget-card {
    width: 150px;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}
.widget-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.widget-card .widget-title {
    font-weight: bold;
    margin-bottom: 6px;
}
.widget-card.facebook {
    background-color: #1877f2;
    color: #fff;
    border-color: #1877f2;
}
.widget-card.instagram {
    background-color: #e1306c;
    color: #fff;
    border-color: #e1306c;
}
.fb-detail-step {
    margin-top: 15px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}
.close-btn {
    float: right;
    margin-top: -10px;
    margin-right: -10px;
    background: #aaa;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.setup-box {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}
.mass-box {
    position: absolute;
    top: 10px;
    left: 10px;
    transform: scale(1.2);
}
.top-bar__filters select {
    margin-right: 10px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.top-bar__actions form input[type="text"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.top-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-bar__actions form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}
.stage-select-controls{
    display:flex;
    align-items:center;
    gap:4px;
}
.stage-select-count{
    font-size:12px;
    padding:3px;
}
.sort-btn{
    width:26px !important;
    height:22px !important;
    padding:0 !important;
    border:1px solid #ccc;
    border-radius:4px !important;
    background:#fafafa;
    cursor:pointer !important;
    font-size:12px !important;
    color:#333;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    text-align:center !important;
}
.sort-btn:hover{
    background:#eaeaea;
}
.sort-btn.active{
    background:#cc0000;
    color:#fff;
    border-color:#cc0000;
}
.stage-filter{
display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.move-menu{
    position:fixed;
    background:#ffffff;
    border:1px solid #ccc;
    list-style:none;
    padding:4px 0;
    margin:0;
    z-index:10000;
    max-height:60vh;
    overflow-y:auto;
    font-size:14px;
}
.move-menu li{
    padding:6px 16px;
    cursor:pointer;
}
.move-menu li:hover{
    background:#f6f6f6;
}
.fullscreen-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 6px 14px;
            font-size: 14px;
            cursor: pointer;
            background-color: #4CAF50;
            color: #fff;
            border: none;
            border-radius: 4px;
        }
        .fullscreen-btn:hover {
            background-color: #45a049;
        }
.action-button {
            margin: 5px;
            padding: 5px 10px;
            font-size: 14px;
            cursor: pointer;
            border: none;
            border-radius: 4px;
            color: #ffffff;
        }
.mark-paid {
            background: #4CAF50;
        }
        .mark-unpaid {
            background: #f44336;
        }
        .close-debt {
            background: #2196F3;
        }
        .logout {
            display: inline-block;
            background: #f44336;
            color: #fff;
            padding: 10px;
            border-radius: 4px;
            text-decoration: none;
            margin-top: 20px;
        }
        .file-input {
            margin-top: 5px;
        }
        .view-check {
            color:#2196F3;
            text-decoration:underline;
            cursor:pointer;
        }
        .view-check:hover {
            text-decoration:none;
        }
        #checkModalBody img{
            width:90%;
            max-width:600px;
            height:auto;
            max-height:80vh;
            object-fit:contain;
            display:block;
            margin:auto;
        }

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0e1621;
        color: #fff;
    }
    h1, h2, h3, h4, h5, h6 {
        color: #ff4d4d;
    }
    a {
        color: #ff4d4d;
    }
    textarea {
        border: 1px solid #17212b;
        background: #0e1621;
        color: #fff;
    }
    p { color: #fff; }
    .stats-box p { color: #fff; }
    .stats-box table thead tr th { color:#fff; }
    textarea:focus {
        border-color: #ff4d4d;
    }
    button[type] {
        background: #ff4d4d;
        color: #fff;
    }
    button[type]:hover {
        background: #cc0000;
    }
    input[type="checkbox"] {
        accent-color: #ff4d4d;
    }
    input, select {
        border: 1px solid #0e1621;
        background: #17212b;
        color: #fff;
    }
    table {
        background: #0e1621;
    }
    th, td {
        border: 1px solid #17212b;
        color: #fff;
        background: #0e1621;
    }
    th {
        background: #a40000;
        color: #fff;
    }
    tr:nth-child(even) {
        background: #17212b;
    }
    tr:hover {
        background: #444;
    }
    .table-wrapper {
        border: 1px solid #17212b;
    }
    .header {
        background: #0e1621;
        border-bottom: 1px solid #17212b;
    }
    .header .logo {
        color: #ff4d4d;
    }
    .barchasi-btn span {
        background: #fff;
    }
    .barchasi-btn:hover {
        background: #444;
        color: #ff4d4d;
    }
    .barchasi-dropdown {
        background: #0e1621;
        border: 1px solid #17212b;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .barchasi-grid a {
        color: #fff;
        border: 1px solid #17212b;
    }
    .barchasi-grid a:nth-of-type(odd) {
        background: #0e1621;
    }
    .barchasi-grid a:nth-of-type(even) {
        background: #17212b;
    }
    .barchasi-grid a:hover {
        background: #444;
        color: #ff4d4d;
    }
    .axcw-nav-links a {
        color: #fff;
    }
    .axcw-nav-links a:nth-of-type(odd) {
        background: #0e1621;
    }
    .axcw-nav-links a:nth-of-type(even) {
        background: #17212b;
    }
    .axcw-nav-links a:hover {
        background: #444;
        color: #ff4d4d;
    }
    .axcw-nav-links::-webkit-scrollbar-thumb {
        background: #ff4d4d;
    }
    .user-label {
        color: #fff;
        border: 1px solid #17212b;
    }
    .user-label:hover {
        background: #444;
    }
    .user-dropdown-content {
        background: #0e1621;
        border: 1px solid #17212b;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .user-dropdown-content p {
        color: #fff;
    }
    .user-dropdown-content img {
        border: 1px solid #17212b;
    }
    .logout-link {
        color: #ff4d4d;
        border: 1px solid #ff4d4d;
    }
    .logout-link:hover {
        background: #ff4d4d;
        color: #fff;
    }
    #chat-container {
        background: #0e1621;
        border-right: 1px solid #17212b;
    }
    #chat-content {
        border: 1px solid #17212b;
    }
    #chat-box {
        background: #17212b;
        border: 1px solid #17212b;
    }
    .chat-user {
        color: #ff4d4d;
    }
    .chat-time {
        color: #fff;
    }
    .mention {
        color: #ff4d4d;
    }
    .delete-btn {
        color: #ff4d4d;
    }
    .recipient-row label {
        color: #fff;
    }
    #recipient {
        border: 1px solid #17212b;
        background: #0e1621;
        color: #fff;
    }
    #chat-input {
        border: 1px solid #17212b;
        background: #0e1621;
        color: #fff;
    }
    #chat-send-btn {
        background: #ff4d4d;
    }
    #chat-send-btn:hover {
        background: #cc0000;
    }
    #qarorlar-container {
        background: #0e1621;
        border-left: 1px solid #17212b;
    }
    .container {
        background: #0e1621;
        border: 1px solid #17212b;
    }
    .qarorlarcontainer {
        background: #0e1621;
        border: 1px solid #17212b;
    }
    .stats-box {
        background: #0e1621;
        border: 1px solid #17212b;
    }
    #oylikHisobToggle {
        color: #fff;
    }
    .shtraf-details-container,
  .avans-details-container {
    background:#0e1621;
    border:1px solid #17212b;
    color:#fff;
  }
  .shtraf-details-container h4,
  .avans-details-container h4 {
    color:#fff;
  }
    .doc-container {
        background: #0e1621;
        border: 1px solid #17212b;
    }
    .doc-container h2 {
        color: #ff4d4d;
    }
    .label-qaror, .label-ochiq {
        background: #ff4d4d;
    }
    .label-farmon {
        background: #888;
    }
    .label-maxfiy {
        background: #cc0000;
    }
    .deadline {
        color: #ff4d4d;
    }
    .desc-box {
        background: #17212b;
        border: 1px solid #17212b;
    }
    .footer-link a {
        color: #ff4d4d;
    }
    .header2 {
        background: #0e1621;
    }
    .header2 a.add-link {
        background: #ff4d4d;
    }
    .header2 a.add-link:hover {
        background: #cc0000;
    }
    .doc-item {
        border-bottom: 1px solid #17212b;
    }
    .doc-item h4 {
        color: #ff4d4d;
    }
    .doc-meta {
        color: #fff;
    }
    .doc-shortdesc a {
        color: #fff;
    }
    .doc-label {
        color: #fff;
    }
    .finish-form button {
        background: #cc0000;
    }
    .finish-form button:hover {
        background: #a40000;
    }
    .deadline-timer {
        background: #ff4d4d;
    }
    .axcw-theme-toggle,
    .axcw-fab{
      background:#2a2a2a;
      color:#fff;
      box-shadow:0 2px 8px rgba(0,0,0,.45);
      border:1px solid #17212b;
    }
    .axcw-badge{
      background:#ff4d4d;
      color:#fff;
    }
    .top-bar {
        background: #0e1621;
    }
    .top-bar h1 {
        color: #ff4d4d;
    }
    .conversation-list {
        background: #0e1621;
        border: 1px solid #17212b;
    }
    .conversation-list h2 {
        color: #fff;
    }
    .conversation-item:hover {
        background: #444;
    }
    .conversation-item2 {
        background: #0e1621;
    }
    .conversation-itemqidiruv {
        background: #0e1621;
        color: #fff;
    }
    .conversation-item2.group-status-card {
        background: #17212b;
        border: 1px solid #555;
        color: #fff;
    }
    .group-status-owner {
        color: #ffb3b3;
    }
    .btn.group-delete-btn {
        background: #ff4d4d;
    }
    .btn.group-delete-btn:hover {
        background: #cc0000;
    }
    .conversation-search-input {
        background: #333;
        border: 1px solid #555;
        color: #fff;
    }
    .conversation-search-input::placeholder {
        color: #fff;
        opacity: 1;
    }
    .conversation-search-input:focus {
        border-color: #ff4d4d;
    }
    .conversation-itemqidiruv .group-add-trigger {
        background: #333;
        border: 1px solid #555;
        color: #ff4d4d;
    }
    .conversation-itemqidiruv .group-add-trigger:hover {
        background: #444;
    }
    .conversation-itemqidiruv .group-add-trigger:focus-visible {
        outline-color: #ff4d4d;
    }
    .search-results-box {
        border-top: 1px solid #555;
    }
    .search-results-header,
    .search-results-empty {
        color: #fff;
    }
    .avatar-noimage {
        background: linear-gradient(180deg, var(--tg-avatar-top, #5caffa) 0%, var(--tg-avatar-bottom, #408acf) 100%);
        color: #fff;
    }
    .conversation-title {
        color: #fff;
    }
    .conversation-pin-icon {
        color: #b8c4d4;
    }
    .badge {
        background: #ff4d4d;
    }
    .chat-view {
        background: #0e1621;
        border: 1px solid #17212b;
    }
    .message-form textarea {
        background: #17212b;
        border-color: #17212b;
        color: #fff;
    }
    .message-form {
        background: #0e1621;
        border-top-color: #17212b;
    }
    #messageForm .tg-input-wrap textarea {
        caret-color: #fff;
    }
    .btn {
        background: #ff4d4d;
    }
    .btn:hover {
        background: #cc0000;
    }
    .nav-tabs {
        background: #0e1621;
        box-shadow: 0 1px 4px #17212b;
    }
    .tab {
        color: #fff;
    }
    .tab:hover {
        background: #ff4d4d;
    }
    .tab.active {
        background: #ff4d4d;
    }
    .conversation-item.selected {
        background: #ff4d4d;
    }
    .attachment-icon {
        color: #fff;
    }
    #messageForm #tezkorJavobBtn {
        color: #fff;
    }
    #imagePreviewModal {
        background: rgba(0,0,0,0.7);
    }
    #imagePreviewContent {
        background: #0e1621;
        color: #fff;
    }
    #previewCaption {
        background: #17212b;
        border: 1px solid #17212b;
        color: #fff;
    }
    #recordButton {
        color: #fff;
    }
    .recording-active {
        color: #ff4d4d;
    }
    .voice-lock-track {
        background: #1f2b38;
        color: #c7d1dc;
        box-shadow: 0 8px 18px rgba(0,0,0,0.34);
    }
    .voice-recorder-panel {
        background: #17212b;
        border-color: rgba(255,77,77,0.22);
        color: #fff;
        box-shadow: 0 8px 22px rgba(0,0,0,0.34);
    }
    .voice-recorder-panel.is-locked {
        background: #142235;
        border-color: rgba(79,140,255,0.32);
    }
    .voice-rec-time {
        color: #ff7373;
    }
    .voice-rec-status {
        color: #e6edf3;
    }
    .voice-rec-cancel-link {
        color: #ff4d4d;
    }
    .voice-rec-cancel-link:hover {
        color: #cc0000;
    }
    .voice-rec-action {
        background: #0e1621;
        border-color: rgba(255,255,255,0.08);
        color: #dbe7f2;
    }
    .voice-rec-action:hover {
        background: #1c2b38;
    }
    #messageForm .voice-record-wrap .voice-lock-pause-btn {
        background: #17212b;
        border-color: rgba(255,77,77,0.22);
        color: #ff7373;
        box-shadow: 0 8px 18px rgba(0,0,0,0.34);
    }
    #messageForm .voice-record-wrap .voice-lock-pause-btn:hover {
        background: #1c2b38;
    }
    #messageForm .voice-record-wrap .voice-locked-send-btn:hover {
        background: rgba(255, 115, 115, 0.14) !important;
    }
    #messageForm .voice-record-wrap .voice-locked-send-btn span {
        background: #ff7373;
    }
    .sticker-panel {
        background: #0e1621;
        border: 1px solid #17212b;
    }
    .sticker-panel img {
        border: 1px solid #0e1621;
    }
    .sticker-panel img:hover {
        border-color: #ff4d4d;
    }
    #shablonGapBtn {
        color: #fff;
    }
    #shablonMenuContainer {
        background: #17212b;
        border: 1px solid #0e1621;
        box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }
    .shablon-folder {
        border-bottom: 1px solid #17212b;
        color: #fff;
    }
    .shablon-folder:hover {
        background-color: #444;
    }
    .shablon-folder .folder-title {
        color: #fff;
    }
    .shablon-submenu {
        background: #17212b;
        border: 1px solid #0e1621;
        box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }
    .shablon-submenu .shablon-phrase {
        border-bottom: 1px solid #17212b;
        color: #fff;
    }
    .shablon-submenu .shablon-phrase:hover {
        background: #444;
    }
    #uploadProgress {
        background: #17212b;
        border: 1px solid #0e1621;
        color: #fff;
    }
    .chat-messages,
    .tezkor-javob-editor-messages {
        background: #0e1621;
        border: 1px solid #17212b;
    }
::-webkit-scrollbar-track:hover {
  background: #17212b; }
    .dashboard-title {
        background: #ff4d4d;
    }
    .client-details {
        background: #0e1621;
    }
.client-info-header p {
        color: #fff;
    }
    .edit-btn {
        background: #ff4d4d;
    }
    .edit-btn:hover {
        background: #cc0000;
    }
    .nav-tabs-container {
        background: #2a2a2a;
        box-shadow: 0 1px 4px #17212b;
    }
     .tab {
        color: #fff;
    }
    .tab:hover {
        background: #ff4d4d;
    }
    .tab.active {
        background: #ff4d4d;
    }
    .dashboard-card-new {
        background: #17212b;
        box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }
    .dashboard-card-new:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .dashboard-card-new h3 {
        color: #fff;
    }
    .big-value {
        color: #fff;
    }
    .balance-edit-icon {
        color: #fff;
    }
    .balance-edit-icon:hover {
        color: #ff4d4d;
    }
    .chart-container {
        background: #17212b;
        --chart-text: #fff;
        --chart-muted: #9fb0c0;
        --chart-track: #0e1621;
        --chart-track-border: #263646;
        --chart-bar-top: #ff6b6b;
        --chart-bar-bottom: #ff3333;
        --chart-shadow: rgba(255,77,77,0.25);
    }
    .info-section h2 {
        color: #fff;
    }
    .info-table {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .info-table th {
        background: #ff4d4d;
    }
    .info-table td {
        background: #0e1621;
        color: #fff;
        border-bottom: 1px solid #0e1621;
    }
    .edit-info-btn,
    .save-info-btn {
        background: #ff4d4d;
    }
    .edit-info-btn:hover,
    .save-info-btn:hover {
        background: #cc0000;
    }
    .wakils-table {
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .wakils-table th {
        background: #ff4d4d;
    }
    .wakils-table td {
        border: 1px solid #555;
        color: #fff;
    }
    .btn-wakil-edit {
        background: #218838;
    }
    .btn-wakil-edit:hover {
        background: #1b6d2f;
    }
    .btn-wakil-delete {
        background: #ff4d4d;
    }
    .btn-wakil-delete:hover {
        background: #cc0000;
    }
    .add-wakil-btn {
        background: #ff4d4d;
    }
    .add-wakil-btn:hover {
        background: #cc0000;
    }
    .notes-section {
        background: #2a2a2a;
    }
    .notes-subject-label,
    .notes-textarea-label {
        color: #fff;
    }
    .notes-subject-input {
        background: #333;
        border: 2px solid #555;
        color: #fff;
    }
    .notes-subject-input:focus {
        border-color: #ff4d4d;
    }
    .notes-textarea {
        background: #333;
        border: 2px dashed #555;
        color: #fff;
        background-image: linear-gradient(45deg, rgba(255,77,77,0.03) 25%, transparent 25%, transparent 75%, rgba(255,77,77,0.03) 75%, rgba(255,77,77,0.03)),
                          linear-gradient(45deg, rgba(255,77,77,0.03) 25%, transparent 25%, transparent 75%, rgba(255,77,77,0.03) 75%, rgba(255,77,77,0.03));
    }
    .notes-save-btn {
        background: linear-gradient(45deg, #ff4d4d, #ff4d4d);
    }
    .tarix-search,
    .tarix-date {
        background: #333;
        border: 1px solid #555;
        color: #fff;
    }
    .excel-export-btn {
        background: #d4ac0d;
    }
    .excel-export-btn:hover {
        background: #b7950b;
    }
    .chat-section {
        background: #2a2a2a;
    }
    .chat-section h2 {
        color: #fff;
    }
    .chat-window {
        background: #333;
        border: 1px solid #555;
    }
    .from-them {
        background: #2980b9 !important;
    }
    .from-me {
        background: #c0392b !important;
    }
    .chat-timestamp {
        color: #fff !important;
    }
    .from-them::after {
        border-color: transparent #2980b9 transparent transparent;
    }
    .from-me::after {
        border-color: transparent transparent transparent #c0392b;
    }
    .file-label {
        background: #008ae6;
    }
    .file-label:hover {
        background: #006bb3;
    }
    .chat-textarea {
        background: #333;
        border: 1px solid #555;
        color: #fff;
    }
    .chat-send-btn {
        background: #ff4d4d;
    }
    .chat-send-btn:hover {
        background: #cc0000;
    }
    .modal {
        background: rgba(0,0,0,0.7);
    }
    .modal-content {
        background: #2a2a2a;
        color: #fff;
    }
    .close {
        color: #fff;
    }
    .close:hover {
        color: #fff;
    }
    .modal-content h2 {
        color: #fff;
    }
    .label-block {
        color: #fff;
    }
    .input-block {
        background: #333;
        border: 1px solid #555;
        color: #fff;
    }
    .modal-content button[type="submit"] {
        background: #ff4d4d;
    }
    .modal-content button[type="submit"]:hover {
        background: #cc0000;
    }
    .confirm-btn {
        background: #ff4d4d;
    }
    .confirm-btn:hover {
        background: #cc0000;
    }
    .search-container input {
        border: 2px solid #ff4d4d;
        color: #fff;
    }
    .filters-row label {
        color: #fff;
    }
    .filters-row select {
        border: 1px solid #17212b;
        color: #fff;
    }
    .filter-submit-btn {
        background: #ff4d4d;
    }
    .filter-submit-btn:hover {
        background: #cc0000;
    }
    .create-new-btn {
        background: #ff4d4d;
    }
    .create-new-order-btn {
        background: #ff4d4d;
    }
    .client-card {
        background: #0e1621;
        box-shadow: 0 1px 6px #17212b;
    }
    .client-card:hover {
        border-color: #ff4d4d;
    }
    .client-card h2 {
        color: #fff;
    }
    .client-info {
        background: #17212b;
        color: #fff;
    }
    .client-info strong {
        color: #fff;
    }
    .cat-E {
        background: #3a2a2a;
        color: #fff;
    }
    .cat-D {
        background: #3a2a2a;
        color: #fff;
    }
    .cat-C {
        background: #4a2a2a;
        color: #fff;
    }
    .cat-B {
        background: #5a2a2a;
        color: #fff;
    }
    .cat-A {
        background: #ff3333;
        color: #fff;
    }
    .cat-A1 {
        background: #ff0000;
        color: #fff;
    }
    .cat-A2 {
        background: #cc0000;
        color: #fff;
    }
    .cat-A3 {
        background: #990000;
        color: #fff;
    }
    .has-chat {
        background: #218838;
        color: #fff;
    }
    .has-chat:hover {
        background: #218838;
        color: #fff;
    }
    .delete-order-btn,
    .edit-order-btn {
        background: #ff4d4d;
    }
    .delete-order-btn:hover,
    .edit-order-btn:hover {
        background: #cc0000;
    }
    .drop-zone-edit {
        border: 2px dashed #555;
        color: #fff;
    }
    .drop-zone-edit.dragover {
        background: #444;
    }
    .preview-edit {
        background: #2a2a2a;
    }
    .remove-preview-btn-edit {
        background: #333;
        color: #ff6b6b;
    }
    .karusel-comment{
    color: #fff;
    background: rgba(255,255,255,0.06);
  }
   .karusel-card { background:#0e1621; box-shadow:0 1px 4px rgba(0,0,0,0.3); }
  .karusel-card h3 { color:#fff; }
 .karusel-none { 
  background:#444 !important;
  color: #fff !important;
}
.karusel-ok { 
  background:#274a33 !important;
  color:#9be3b5 !important;
}
.karusel-bad { 
  background:#5a2a2a !important;
  color:#ffb3b3 !important;
}
  .note-date{ color:#ff4d4d; }
  .ai-btn{ background:#ff4d4d; } .ai-btn:hover{ background:#cc0000; } .ai-btn.loading{ background:#66788e; }
  .del-btn{ background:#cc3333; } .del-btn:hover{ background:#ff4d4d; }
  .reply-btn{ background:#ff4d4d; } .reply-btn:hover{ background:#cc0000; }
  .alarm-btn{ background:#cc3333; } .alarm-btn:hover{ background:#ff4d4d; }
  .gpt-summary{ background:#2a2a3a; border:1px dashed #555; color:#fff; }
  .gpt-summary h4{ color:#fff; }
  .toggle-full{ background:#ff4d4d; } .toggle-full:hover{ background:#cc0000; }
  .send-reply{ background:#ff4d4d; } .send-reply:hover{ background:#cc0000; }
  .call-item{ background:#17212b; border-left:4px solid #ff4d4d; }
  .call-rec{ color: #fff; }
  .play-btn{ background:#ff4d4d; } .play-btn:hover{ background:#cc0000; }
  .modal-chatgpt{ background:rgba(0,0,0,0.7); }
  .modal-box{ background:#2a2a2a; color:#fff; }
  .close-x{ color: #fff; } .close-x:hover{ color:#fff; }
  #alarmModal{ background:rgba(0,0,0,0.7); }
  #alarmModal .alarm-modal-content{ background:#2a2a2a; color:#fff; }
  #alarmModal .close-alarm{ color: #fff; } #alarmModal .close-alarm:hover{ color:#fff; }
  #alarmModal input[type=text]{ background:#333; border:1px solid #555; color:#fff; }
  .crm-header h1 {
        color: #ff4d4d;
    }
     .stage-column {
        background-color: #0e1621;
        box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }
    .stage-column.dragover {
        background-color: #444;
    }
     .stage-header h2 {
        color: #fff;
    }
      .funnel-client-card {
       background: #0e1621;
        box-shadow: 0 1px 6px #17212b;
    }
    .funnel-client-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .funnel-client-card h2 {
        color: #fff;
    }
    .funnel-client-card .client-info-crm {
        background-color: #333;
        color: #fff;
    }
    .funnel-client-card .client-info-crm strong {
        color: #fff;
    }
    .btn2 {
        background-color: #ff4d4d;
    }
    .btn2:hover {
        background-color: #cc0000;
    }
    .rename-form input[type="text"],
    .rename-form select {
        background: #333;
        border: 1px solid #555;
        color: #fff;
    }
        .widget-list {
        background-color: #0e1621;
    }
    .widget-list li {
        color: #fff;
    }
    .widget-list .widget-delete-btn {
        background-color: #666;
    }
    .widget-list .widget-delete-btn:hover {
        background-color: #444;
    }
        .modal-backdrop {
        background: rgba(0,0,0,0.7);
    }
        .modal-container {
        background: #2a2a2a;
        color: #fff;
    }
        .fb-detail-step {
        border-top: 1px solid #555;
    }
        .close-btn {
        background: #666;
    }
        .setup-box {
        border: 1px solid #555;
        background: #333;
    }
    .top-bar__filters select,
    .top-bar__actions form input[type="text"] {
        border: 1px solid #17212b;
    }
    .widget-card {
        border: 2px solid #555;
    }
    .widget-card.facebook {
        background-color: #135ca8;
        border-color: #135ca8;
    }
    .widget-card.instagram {
        background-color: #a1224e;
        border-color: #a1224e;
    }
    .sort-btn{
        background:#333;
        border:1px solid #555;
        color:#fff;
    }
    .sort-btn:hover{
        background:#444;
    }
    .sort-btn.active{
        background:#ff4d4d;
        border-color:#ff4d4d;
        color:#fff;
    }
     .move-menu{
        background:#2a2a2a;
        border:1px solid #555;
        color:#fff;
    }
    .move-menu li{
        color:#fff;
    }
    .move-menu li:hover{
        background:#444;
    }
}


:root {
    --reply-accent: #2b7cff;
    --reply-trigger-border: #c7d7ff;
    --reply-trigger-bg: #ffffff;
    --reply-trigger-text: #2b5fab;
    --reply-quote-bg: #eef4ff;
    --reply-quote-text: #2b5fab;
    --reply-box-bg: #f5f8ff;
    --reply-flash-ring-0: rgba(203, 56, 55, 0.92);
    --reply-flash-ring-1: rgba(203, 56, 55, 0.62);
    --reply-flash-ring-2: rgba(203, 56, 55, 0.36);
    --reply-flash-glow-0: rgba(203, 56, 55, 0.48);
    --reply-flash-glow-1: rgba(203, 56, 55, 0.30);
    --reply-flash-glow-2: rgba(203, 56, 55, 0.16);
    --chat-date-pill-bg: #fff;
    --chat-date-pill-text: #000;
    --chat-date-pill-border: #d9d9d9;
    --forward-quote-text: #5f6f88;
    --forward-modal-bg: #ffffff;
    --forward-modal-border: #e8edf5;
    --forward-modal-text: #1d2a3d;
    --forward-modal-muted: #6f7c91;
    --forward-item-bg: #ffffff;
    --forward-item-border: #edf2f8;
    --forward-item-hover-bg: #f5f8fc;
    --forward-item-hover-border: #d9e5f4;
    --chat-menu-bg: #ffffff;
    --chat-menu-border: #d8e0eb;
    --chat-menu-shadow: rgba(0, 0, 0, 0.18);
    --chat-menu-text: #1f2f45;
    --chat-menu-hover-bg: #f2f6fb;
    --pinned-bar-bg: #ffffff;
    --pinned-bar-border: #d8e6f7;
    --pinned-bar-accent: #2b7cff;
    --pinned-bar-text: #182333;
    --pinned-bar-muted: #5c6c82;
    --pinned-bar-hover: #f4f8fd;
    --quick-reply-bg: var(--chat-menu-bg);
    --quick-reply-elevated-bg: var(--forward-modal-bg);
    --quick-reply-border: var(--chat-menu-border);
    --quick-reply-text: var(--chat-menu-text);
    --quick-reply-muted: var(--forward-modal-muted);
    --quick-reply-hover-bg: var(--chat-menu-hover-bg);
    --quick-reply-accent: #cc0000;
    --quick-reply-input-bg: var(--forward-item-bg);
    --quick-reply-shadow: var(--chat-menu-shadow);
    --quick-reply-button-bg: var(--forward-item-bg);
    --quick-reply-button-border: var(--forward-item-border);
    --quick-reply-thumb-bg: var(--forward-item-hover-bg);
}

@media (prefers-color-scheme: dark) {
    :root {
        --reply-accent: #5e9eff;
        --reply-trigger-border: #3b4f75;
        --reply-trigger-bg: #1f2a3a;
        --reply-trigger-text: #cddfff;
        --reply-quote-bg: #1b2638;
        --reply-quote-text: #d5e4ff;
        --reply-box-bg: #1a2333;
        --reply-flash-ring-0: rgba(130, 185, 255, 0.95);
        --reply-flash-ring-1: rgba(130, 185, 255, 0.66);
        --reply-flash-ring-2: rgba(130, 185, 255, 0.38);
        --reply-flash-glow-0: rgba(94, 158, 255, 0.56);
        --reply-flash-glow-1: rgba(94, 158, 255, 0.36);
        --reply-flash-glow-2: rgba(94, 158, 255, 0.18);
        --chat-date-pill-bg: #182533;
        --chat-date-pill-text: #fff;
        --chat-date-pill-border: #182533;
        --forward-quote-text: #9eb4cf;
        --forward-modal-bg: #17212b;
        --forward-modal-border: #223245;
        --forward-modal-text: #e2ecf8;
        --forward-modal-muted: #9db0c8;
        --forward-item-bg: #1a2734;
        --forward-item-border: #26384b;
        --forward-item-hover-bg: #223447;
        --forward-item-hover-border: #33506b;
        --chat-menu-bg: #182533;
        --chat-menu-border: #2a3c50;
        --chat-menu-shadow: rgba(0, 0, 0, 0.42);
        --chat-menu-text: #dce8f7;
        --chat-menu-hover-bg: #24374a;
        --pinned-bar-bg: #17212b;
        --pinned-bar-border: #2a3c50;
        --pinned-bar-accent: #5e9eff;
        --pinned-bar-text: #e2ecf8;
        --pinned-bar-muted: #9db0c8;
        --pinned-bar-hover: #203247;
        --quick-reply-bg: var(--chat-menu-bg);
        --quick-reply-elevated-bg: var(--forward-modal-bg);
        --quick-reply-border: var(--chat-menu-border);
        --quick-reply-text: var(--chat-menu-text);
        --quick-reply-muted: var(--forward-modal-muted);
        --quick-reply-hover-bg: var(--chat-menu-hover-bg);
        --quick-reply-accent: #ff4d4d;
        --quick-reply-input-bg: var(--forward-item-bg);
        --quick-reply-shadow: var(--chat-menu-shadow);
        --quick-reply-button-bg: var(--forward-item-bg);
        --quick-reply-button-border: var(--forward-item-border);
        --quick-reply-thumb-bg: var(--forward-item-hover-bg);
    }
}

.tezkor-javob-trigger {
    color: var(--quick-reply-accent);
    background: var(--quick-reply-elevated-bg);
    border-color: var(--quick-reply-border);
}
.tezkor-javob-menu button,
.tezkor-javob-dialog button,
.tezkor-javob-manage-dialog button,
.tezkor-javob-editor-head button,
.tezkor-javob-actions button,
.tezkor-javob-manage-row button,
.tezkor-javob-editor-delete {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    box-shadow: none !important;
    text-transform: none;
    background-image: none !important;
}
.tezkor-javob-menu {
    background: var(--quick-reply-bg);
    color: var(--quick-reply-text);
    border-color: var(--quick-reply-border);
    box-shadow: 0 16px 46px var(--quick-reply-shadow);
}
.tezkor-javob-menu-head {
    border-bottom-color: var(--quick-reply-border);
}
.tezkor-javob-manage,
.tezkor-javob-new,
.tezkor-javob-secondary {
    background: var(--quick-reply-button-bg) !important;
    color: var(--quick-reply-accent) !important;
    border: 1px solid var(--quick-reply-button-border) !important;
    border-radius: 7px;
}
.tezkor-javob-manage:hover,
.tezkor-javob-new:hover,
.tezkor-javob-secondary:hover,
.tezkor-javob-primary:hover,
.tezkor-javob-back:hover,
.tezkor-javob-edit-shortcut:hover {
    background: var(--quick-reply-hover-bg) !important;
}
.tezkor-javob-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tezkor-javob-new,
.tezkor-javob-manage {
    padding: 6px 8px;
    font-size: 13px;
}
.tezkor-javob-row {
    background: var(--quick-reply-bg) !important;
    color: var(--quick-reply-text) !important;
    border-bottom-color: var(--quick-reply-border) !important;
}
.tezkor-javob-row:hover,
.tezkor-javob-edit:hover {
    background: var(--quick-reply-hover-bg) !important;
}
.tezkor-javob-manage-row .tezkor-javob-edit,
.tezkor-javob-manage-row .tezkor-javob-move,
.tezkor-javob-manage-row .tezkor-javob-delete,
.tezkor-javob-actions .tezkor-javob-primary,
.tezkor-javob-icon-btn {
    box-shadow: none !important;
    text-shadow: none !important;
}
.tezkor-javob-shortcut {
    color: var(--quick-reply-accent);
}
.tezkor-javob-preview,
.tezkor-javob-count,
.tezkor-javob-empty {
    color: var(--quick-reply-muted);
}
.tezkor-javob-dialog {
    width: min(300px, calc(100vw - 24px));
    min-height: 0;
    background: var(--quick-reply-elevated-bg);
    color: var(--quick-reply-text);
    box-shadow: 0 20px 64px var(--quick-reply-shadow);
}
.tezkor-javob-manage-dialog {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    background: var(--quick-reply-elevated-bg);
    color: var(--quick-reply-text);
    border-radius: 8px;
    box-shadow: 0 20px 64px var(--quick-reply-shadow);
    display: flex;
    flex-direction: column;
}
.tezkor-javob-manage-dialog .tezkor-javob-list {
    max-height: min(56vh, 430px);
    overflow: auto;
    background: transparent;
    border: 0;
    flex: 1 1 auto;
    min-height: 0;
}
.tezkor-javob-manage-dialog > .tezkor-javob-actions {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 12px;
    border-top: 1px solid var(--quick-reply-border);
    background: var(--quick-reply-elevated-bg);
    justify-content: flex-end;
}
.tezkor-javob-head {
    padding: 12px 14px 6px;
    border-bottom: 0;
}
.tezkor-javob-head h3 {
    color: var(--quick-reply-text);
    text-align: left;
    text-transform: none;
    font-size: 16px;
}
.tezkor-javob-body {
    display: block;
    min-height: 0;
}
.tezkor-javob-form {
    padding: 0 14px 12px;
}
.tezkor-javob-form p {
    margin: 0 0 8px;
    color: var(--quick-reply-text);
    font-size: 13px;
}
.tezkor-javob-form input {
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--quick-reply-accent);
    border-radius: 0;
    color: var(--quick-reply-text);
    padding: 7px 0 6px;
}
.tezkor-javob-form input::placeholder {
    color: var(--quick-reply-muted);
}
.tezkor-javob-actions {
    margin-top: 8px;
    padding: 8px 14px 12px;
    border-top: 1px solid var(--quick-reply-border);
}
.tezkor-javob-primary {
    background: var(--quick-reply-button-bg) !important;
    color: var(--quick-reply-accent) !important;
    border: 1px solid var(--quick-reply-button-border) !important;
    padding: 7px 10px;
}
.tezkor-javob-editor {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 16, 28, 0.18);
}
.tezkor-javob-editor.is-open {
    display: flex;
}
.tezkor-javob-editor-dialog {
    width: min(80vw, 1120px);
    height: min(80vh, 720px);
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--quick-reply-elevated-bg);
    border: 1px solid var(--quick-reply-border);
    border-radius: 8px;
    color: var(--quick-reply-text);
    box-shadow: 0 18px 48px var(--quick-reply-shadow);
    overflow: hidden;
}
.tezkor-javob-editor-messages {
    min-height: 0;
}
.tezkor-javob-editor-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--quick-reply-border);
}
.tezkor-javob-editor-head strong {
    color: var(--quick-reply-text);
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tezkor-javob-editor-form {
    padding: 8px;
    background: var(--quick-reply-bg);
    border-top: 1px solid var(--quick-reply-border);
    flex: 0 0 auto;
}
.tezkor-javob-editor-dialog > .tezkor-javob-actions {
    display: none;
}
.tezkor-javob-editor-dialog > #tezkorJavobEditorError {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0 10px;
}
.tezkor-javob-editor-form #tezkorJavobEditorComposerMount,
.tezkor-javob-editor-form .conversation-item2 {
    width: 100%;
}
.tezkor-javob-editor-form #tezkorJavobEditorComposerMount {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.tezkor-javob-editor-form #messageForm {
    width: 100%;
}
.tezkor-javob-editor-form .tg-input-wrap {
    width: 100%;
}
#tezkorJavobEditorText {
    min-height: 24px;
    max-height: 160px;
}
#tezkorJavobEditorText::placeholder {
    color: var(--quick-reply-muted);
}
.tezkor-javob-editor-node {
    position: relative;
}
.tezkor-javob-editor-delete {
    all: unset;
    box-sizing: border-box;
    display: none;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 20;
    width: 22px;
    height: 22px;
    border: 1px solid var(--quick-reply-border);
    background: var(--quick-reply-bg);
    color: var(--quick-reply-accent);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.tezkor-javob-editor-node:hover .tezkor-javob-editor-delete {
    display: block;
}
.tezkor-javob-message-row {
    width: 100%;
    border: 0 !important;
    border-bottom: 1px solid var(--quick-reply-border) !important;
    background: var(--quick-reply-bg) !important;
    color: var(--quick-reply-text) !important;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
}
.tezkor-javob-message-row:hover {
    background: var(--quick-reply-hover-bg) !important;
}
.tezkor-javob-message-row.is-text {
    grid-template-columns: minmax(0, 1fr);
    min-height: 38px;
    padding: 9px 12px;
}
.tezkor-javob-message-row.is-text .tezkor-javob-message-title {
    line-height: 1.3;
}
.tezkor-javob-message-main,
.tezkor-javob-message-title,
.tezkor-javob-message-kind {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tezkor-javob-message-title {
    font-size: 14px;
    line-height: 1.25;
    color: var(--quick-reply-text);
}
.tezkor-javob-message-kind {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.2;
    color: var(--quick-reply-muted);
}
.tezkor-javob-message-thumb {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--quick-reply-thumb-bg);
    color: var(--quick-reply-accent);
    font-weight: 700;
    font-size: 12px;
}
.tezkor-javob-message-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tezkor-javob-message-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tezkor-javob-message-thumb.is-audio {
    background: var(--quick-reply-thumb-bg);
}
.tezkor-javob-message-thumb.is-document {
    background: var(--quick-reply-thumb-bg);
}
.tezkor-javob-message-thumb.is-location {
    background: var(--quick-reply-thumb-bg);
}
.tezkor-javob-back,
.tezkor-javob-edit-shortcut {
    border: 1px solid var(--quick-reply-button-border) !important;
    border-radius: 7px;
    background: var(--quick-reply-button-bg) !important;
    color: var(--quick-reply-accent) !important;
    padding: 6px 8px;
    cursor: pointer;
}

.avatar-saved {
    background: linear-gradient(180deg, #59a6ff 0%, #2b7ddf 100%);
    color: #fff;
}
.avatar-saved svg {
    display: block;
    margin: 0 auto;
}
.reply-quote {
    font-size: 12px;
    color: var(--reply-quote-text);
    background: var(--reply-quote-bg);
    border-left: 3px solid var(--reply-accent);
    padding: 4px 6px;
    margin: 4px 0 6px;
    border-radius: 3px;
    word-break: break-word;
    line-height: 1.25;
    max-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.reply-quote:hover {
    filter: brightness(0.96);
}
.forward-quote {
    font-size: 11px;
    color: var(--forward-quote-text);
    margin-bottom: 4px;
    opacity: 0.95;
}
.reply-target-flash {
    animation: replyTargetFlashFade 4s ease-out 1;
}
.reply-target-row-flash {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    animation: replyTargetRowFlashFade 4s ease-out 1;
}
.reply-target-media-flash {
    position: relative;
}
.reply-target-media-flash::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border-radius: inherit;
    animation: replyTargetMediaTileFlashFade 4s ease-out 1;
}
.pinned-message-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 46px;
    border-left: 2px solid var(--pinned-bar-accent);
    background: var(--pinned-bar-bg);
    color: var(--pinned-bar-text);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}
.pinned-message-bar[hidden] {
    display: none !important;
}
.pinned-message-main {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    cursor: pointer;
    text-align: left;
}
.pinned-message-bar .pinned-message-main,
.pinned-message-bar .pinned-message-unpin {
    background: transparent !important;
    color: inherit;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    font-family: inherit;
}
.pinned-message-bar .pinned-message-main {
    padding: 7px 10px;
    font-size: 14px;
}
.pinned-message-main:hover {
    background: var(--pinned-bar-hover);
}
.pinned-message-bar .pinned-message-main:hover,
.pinned-message-bar .pinned-message-unpin:hover {
    background: var(--pinned-bar-hover) !important;
}
.pinned-message-icon {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    font-size: 17px;
    line-height: 1;
}
.pinned-message-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.pinned-message-text strong {
    font-size: 13px;
    color: var(--pinned-bar-accent);
}
.pinned-message-text span {
    max-width: 100%;
    color: var(--pinned-bar-muted);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pinned-message-unpin {
    width: 42px;
    flex: 0 0 42px;
    border: 0;
    border-left: 1px solid var(--pinned-bar-border);
    background: transparent;
    color: var(--pinned-bar-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.pinned-message-bar .pinned-message-unpin {
    color: var(--pinned-bar-muted);
    border-left: 1px solid var(--pinned-bar-border) !important;
    padding: 0;
}
.pinned-message-unpin:hover {
    background: var(--pinned-bar-hover);
    color: var(--pinned-bar-text);
}
.pinned-message-bar .pinned-message-unpin:hover {
    color: var(--pinned-bar-text);
}
.pinned-target-flash {
    animation: pinnedTargetFlashFade 3.2s ease-out 1;
}

.chat-media-row {
    padding-top: 6px;
    padding-right: 0;
    overflow: visible;
}
.chat-media-card {
    position: relative;
    overflow: visible;
}
.chat-media-card .chat-audio {
    margin-top: 0 !important;
}
.chat-media-frame {
    position: relative;
    width: min(300px, calc(100vw - 170px));
    min-height: 168px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent),
        #e8edf2;
    background-size: 180% 100%, 100% 100%;
    animation: mediaLoadingSheen 1.15s ease-in-out infinite;
    cursor: pointer;
}
.chat-media-frame.is-media-ready {
    animation: none;
    background: transparent;
}
.chat-media-frame[data-viewer-type="video"]::before,
.chat-media-frame[data-viewer-type="video"]::after {
    content: "";
    position: absolute;
    left: var(--media-play-left, 50%);
    top: var(--media-play-top, 50%);
    pointer-events: none;
    z-index: 3;
}
.chat-media-frame[data-viewer-type="video"]::before {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(23, 116, 151, 0.74);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}
.chat-media-frame[data-viewer-type="video"]::after {
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid #fff;
    transform: translate(calc(-50% + 3px), -50%);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}
.chat-video-note-frame.is-playing::before,
.chat-video-note-frame.is-playing::after {
    opacity: 0;
}
.chat-video-note-frame.is-loading::before {
    opacity: .58;
}
.chat-video-note-frame.is-playing::before,
.chat-video-note-frame.is-playing::after,
.chat-video-note-frame.is-loading::before {
    transition: opacity .16s ease;
}
.chat-media-row .chat-media-frame[data-viewer-type="video"]::before {
    width: 42px;
    height: 42px;
}
.chat-media-row .chat-media-frame[data-viewer-type="video"]::after {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 13px;
    transform: translate(calc(-50% + 2px), -50%);
}
.chat-media-row .chat-media-frame {
    width: min(150px, calc(50vw - 56px));
    min-height: 118px;
}
.chat-media-frame img,
.chat-media-frame video {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100% !important;
    max-height: 420px;
    border-radius: 10px;
    background: transparent;
}
.chat-media-row .chat-media-frame img,
.chat-media-row .chat-media-frame video {
    max-height: 220px;
    object-fit: cover;
}
.chat-location-card {
    position: relative;
    display: block;
    width: min(300px, calc(100vw - 170px));
    aspect-ratio: 300 / 210;
    overflow: hidden;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent),
        #e7edf3;
    background-size: 180% 100%, 100% 100%;
    animation: mediaLoadingSheen 1.15s ease-in-out infinite;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    cursor: pointer;
}
.chat-location-card::before,
.chat-location-card::after {
    content: "";
    position: absolute;
    inset: auto;
    display: none;
    pointer-events: none;
    z-index: 1;
}
.chat-location-card::before {
    left: -12%;
    right: -10%;
    top: 24%;
    height: 14px;
    border-top: 3px solid rgba(235, 200, 76, .72);
    border-bottom: 3px solid rgba(235, 200, 76, .72);
    transform: rotate(-12deg);
}
.chat-location-card::after {
    left: 14%;
    right: -18%;
    bottom: 28%;
    height: 16px;
    border-top: 4px solid rgba(255, 255, 255, .85);
    border-bottom: 3px solid rgba(255, 255, 255, .85);
    transform: rotate(27deg);
}
.chat-location-map {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    opacity: 0;
}
.chat-location-card.is-map-loaded {
    animation: none;
    background: #e7edf3;
}
.chat-location-card.is-map-loaded .chat-location-map {
    opacity: 1;
}
.chat-location-pin {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: #ff4f5f;
    box-shadow: 0 6px 14px rgba(30, 45, 64, .24);
    transform: translate(-50%, -50%) rotate(-45deg);
}
.chat-location-pin::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}
@keyframes mediaLoadingSheen {
    0% { background-position: 160% 0, 0 0; }
    100% { background-position: -160% 0, 0 0; }
}
@media (prefers-color-scheme: dark) {
    .chat-media-frame {
        background:
            linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent),
            #142233;
    }
}
.chat-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 10, 16, 0.94);
    padding: 52px 18px 96px;
    box-sizing: border-box;
}
.chat-media-viewer.is-open {
    display: flex;
}
.chat-media-viewer-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.chat-media-viewer-stage img,
.chat-media-viewer-stage video {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.5);
    transition: transform .18s ease;
    transform-origin: center center;
}
.chat-media-viewer-stage img.is-rotated-sideways,
.chat-media-viewer-stage video.is-rotated-sideways {
    max-width: min(100%, calc(100vh - 148px));
    max-height: min(100%, calc(100vw - 36px));
}
.chat-media-viewer-close {
    position: absolute;
    z-index: 2;
    color: #fff;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(8px);
}
.chat-media-viewer-nav {
    position: absolute;
    top: 58px;
    bottom: 92px;
    z-index: 2;
    width: clamp(72px, 14vw, 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: transparent !important;
    border: 0 !important;
    font-size: 42px !important;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
    transition: background .16s ease, opacity .16s ease;
}
.chat-media-viewer-nav:hover {
    background: transparent !important;
}
.chat-media-viewer-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    font-size: 28px !important;
    line-height: 1;
    pointer-events: none;
}
.chat-media-viewer-prev {
    left: 0;
    padding-right: clamp(16px, 3vw, 44px);
}
.chat-media-viewer-next {
    right: 0;
    padding-left: clamp(16px, 3vw, 44px);
}
.chat-media-viewer-controls {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateX(-50%);
    padding: 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.26);
    backdrop-filter: blur(10px);
}
.chat-media-viewer-control {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 22px !important;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}
.chat-media-viewer-close {
    top: 14px;
    right: 16px;
    width: 46px;
    font-size: 28px !important;
    line-height: 34px;
    padding: 0;
    cursor: pointer;
}
.chat-media-viewer-nav[hidden] {
    display: none;
}
.chat-media-viewer-download span {
    transform: translateY(-1px);
    font-size: 24px;
    line-height: 1;
}
.chat-media-viewer-close:hover {
    background: rgba(255,255,255,0.18);
}
@media (max-width: 768px) {
    .chat-media-viewer {
        padding: 44px 12px 92px;
    }
    .chat-media-viewer-controls {
        bottom: 14px;
        gap: 8px;
    }
    .chat-media-viewer-control {
        width: 42px;
        height: 42px;
    }
    .chat-media-viewer-nav {
        top: 50px;
        bottom: 88px;
        width: 68px;
        font-size: 34px !important;
    }
    .chat-media-viewer-prev {
        padding-right: 10px;
    }
    .chat-media-viewer-next {
        padding-left: 10px;
    }
}
@keyframes replyTargetFlashFade {
    0% {
        box-shadow: 0 0 0 2px var(--reply-flash-ring-0), 0 0 28px var(--reply-flash-glow-0);
    }
    35% {
        box-shadow: 0 0 0 2px var(--reply-flash-ring-1), 0 0 22px var(--reply-flash-glow-1);
    }
    70% {
        box-shadow: 0 0 0 1px var(--reply-flash-ring-2), 0 0 14px var(--reply-flash-glow-2);
    }
    100% {
        box-shadow: none;
    }
}
@keyframes replyTargetRowFlashFade {
    0% {
        background: var(--reply-flash-glow-0);
    }
    35% {
        background: var(--reply-flash-glow-1);
    }
    70% {
        background: var(--reply-flash-glow-2);
    }
    100% {
        background: transparent;
    }
}
@keyframes replyTargetMediaTileFlashFade {
    0% {
        background: var(--reply-flash-glow-0);
        box-shadow: inset 0 0 0 999px var(--reply-flash-glow-0);
    }
    35% {
        background: var(--reply-flash-glow-1);
        box-shadow: inset 0 0 0 999px var(--reply-flash-glow-1);
    }
    70% {
        background: var(--reply-flash-glow-2);
        box-shadow: inset 0 0 0 999px var(--reply-flash-glow-2);
    }
    100% {
        background: transparent;
        box-shadow: none;
    }
}
@keyframes pinnedTargetFlashFade {
    0% {
        box-shadow: 0 0 0 2px var(--pinned-bar-accent), 0 0 28px rgba(43, 124, 255, 0.42);
    }
    45% {
        box-shadow: 0 0 0 2px rgba(43, 124, 255, 0.58), 0 0 20px rgba(43, 124, 255, 0.28);
    }
    100% {
        box-shadow: none;
    }
}
#replyBox {
    display: none;
    margin: 0 0 6px 0;
    padding: 8px;
    border-left: 3px solid var(--reply-accent);
    background: var(--reply-box-bg);
    border-radius: 4px;
}

#forwardModal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(15, 23, 35, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
#forwardModal .forward-modal-content {
    width: min(420px, 96vw);
    max-height: 85vh;
    background: var(--forward-modal-bg);
    color: var(--forward-modal-text);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#forwardModal .forward-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--forward-modal-border);
}
#forwardModal .forward-modal-close {
    border: none;
    background: transparent;
    color: var(--forward-modal-muted);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
}
#forwardSearchInput {
    margin: 10px 12px;
    border: 1px solid var(--forward-modal-border);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 14px;
    background: transparent;
    color: var(--forward-modal-text);
}
#forwardList {
    overflow: auto;
    padding: 0 8px 10px;
}
.forward-chat-item {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 0;
    text-align: left;
    padding: 6px 10px;
    margin: 0;
    cursor: pointer;
    color: var(--forward-modal-text);
    font-size: inherit;
}
.forward-chat-item:hover {
    background: var(--forward-item-hover-bg);
}
.forward-chat-item.is-sending {
    opacity: 0.65;
    pointer-events: none;
}
.forward-chat-item.is-sending .snippet {
    color: var(--forward-modal-muted);
    font-weight: 600;
}
.forward-chat-item .meta {
    color: var(--forward-modal-muted);
    font-size: 12px;
    margin-top: 2px;
}
#forwardModal .forward-empty {
    color: var(--forward-modal-muted);
    text-align: center;
    padding: 16px 10px;
    font-size: 13px;
}
#forwardModal .forward-loading {
    padding: 22px 10px;
}

.group-create-modal {
    position: fixed;
    inset: 0;
    z-index: 20100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0,0,0,0.5);
}
.group-create-modal.is-open {
    display: flex;
}
.group-create-dialog {
    width: min(440px, 96vw);
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.group-create-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
}
.group-create-head .group-create-close {
    border: none;
    border-radius: 8px;
    padding: 0 5px;
    background: transparent;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.group-create-head .group-create-close:hover {
    background: #f0f0f0;
}
.group-create-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}
.group-create-form label {
    font-size: 13px;
    color: #555;
}
.group-create-form input:not([type="checkbox"]),
.group-create-form select,
.group-create-form textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    padding: 9px 10px;
    font-size: 14px;
}
.group-create-form textarea {
    min-height: 78px;
    resize: vertical;
}
.group-create-form input:not([type="checkbox"]):focus,
.group-create-form select:focus,
.group-create-form textarea:focus {
    border-color: #cc0000;
    outline: none;
}
.group-create-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 2px 0 0;
    border-radius: 4px;
    flex: 0 0 16px;
}
.group-members-settings {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.group-members-settings-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.group-members-list {
    max-height: 180px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}
.group-member-row {
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    text-align: left;
    color: #333;
    cursor: pointer;
}
.group-member-text {
    display: block;
    text-align: left;
    line-height: 1.35;
}
.group-members-help {
    display: block;
    opacity: .8;
    margin-top: 6px;
}
.group-create-error {
    background: #fff1f1;
    color: #cc0000;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 13px;
}
.group-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}
.group-create-form .group-create-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}
.group-create-form .group-create-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}
.group-create-form .group-create-btn-primary {
    background: #cc0000;
    color: #fff;
}
.group-create-form .group-create-btn-primary:hover {
    background: #a40000;
}
.group-create-form .group-create-btn-muted {
    background: #f0f0f0;
    color: #333;
}
.group-create-form .group-create-btn-muted:hover {
    background: #e5e5e5;
}
@media (prefers-color-scheme: dark) {
    .group-create-modal {
        background: rgba(0,0,0,0.7);
    }
    .group-create-dialog {
        background: #2a2a2a;
        color: #fff;
        border: 1px solid #555;
    }
    .group-create-head {
        border-bottom: 1px solid #555;
    }
    .group-create-head .group-create-close {
        color: #fff;
    }
    .group-create-head .group-create-close:hover {
        background: #444;
    }
    .group-create-form label {
        color: #fff;
    }
    .group-create-form input:not([type="checkbox"]),
    .group-create-form select,
    .group-create-form textarea {
        background: #333;
        border: 1px solid #555;
        color: #fff;
    }
    .group-create-form input:not([type="checkbox"]):focus,
    .group-create-form select:focus,
    .group-create-form textarea:focus {
        border-color: #ff4d4d;
    }
    .group-members-settings {
        border-color: #555;
        background: #303030;
    }
    .group-members-settings-title,
    .group-member-row {
        color: #fff;
    }
    .group-create-error {
        background: #5a2a2a;
        color: #fff;
    }
    .group-create-form .group-create-btn-primary {
        background: #ff4d4d;
    }
    .group-create-form .group-create-btn-primary:hover {
        background: #cc0000;
    }
    .group-create-form .group-create-btn-muted {
        background: #333;
        color: #fff;
    }
    .group-create-form .group-create-btn-muted:hover {
        background: #444;
    }
}

#chatActionMenu,
#chatListActionMenu {
    position: fixed;
    z-index: 21000;
    min-width: 190px;
    display: none;
    background: var(--chat-menu-bg);
    border: 1px solid var(--chat-menu-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px var(--chat-menu-shadow);
    overflow: hidden;
}
#chatActionMenu button,
#chatListActionMenu button {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--chat-menu-text);
    cursor: pointer;
    font-size: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.2;
     text-align: left;
}
#chatActionMenu button:hover,
#chatListActionMenu button:hover {
    background: var(--chat-menu-hover-bg);
}
#chatActionMenu .chat-action-icon,
#chatListActionMenu .chat-action-icon {
    width: 18px;
    min-width: 18px;
    text-align: center;
    opacity: 0.92;
    font-size: 15px;
}
#chatActionMenu .chat-action-label,
#chatListActionMenu .chat-action-label {
    flex: 1 1 auto;
    white-space: nowrap;
}

#bulkActionBar {
    position: fixed;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    width: min(900px, calc(100vw - 18px));
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 20500;
    background: rgba(20, 34, 50, 0.98);
    border: 1px solid rgba(74, 120, 167, 0.6);
    border-radius: 10px;
    padding: 8px 10px;
    box-sizing: border-box;
}
#bulkActionBar .bulk-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
#bulkForwardBtn {
    background: #2f83c7;
    border: 1px solid #3c91d6;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    padding: 7px 13px;
    cursor: pointer;
}
#bulkForwardBtn:hover {
    background: #3a92da;
}
#bulkForwardBtn #bulkCount {
    font-weight: 700;
    margin-left: 4px;
}
#bulkCancelBtn.bulk-cancel {
    background: transparent;
    border: 1px solid transparent;
    color: #9ec4e8;
    font-size: 13px;
    padding: 7px 11px;
    cursor: pointer;
}
#bulkCancelBtn.bulk-cancel:hover {
    color: #d8ecff;
}
.chat-media-card.message-selected::after {
    top: 12px;
    transform: none;
}

@media (max-width: 768px) {
    #bulkActionBar {
        width: calc(100vw - 10px);
        top: 60px;
        border-radius: 8px;
        padding: 7px 8px;
    }
}



.conversation-list {
    flex: 0 0 500px;
    width: 500px;
    height: 90vh;
    font-size: 14px;
}
.conversation-itemqidiruv {
    padding: 8px 10px;
    gap: 8px;
}
.conversation-itemqidiruv .conversation-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
}
.conversation-itemqidiruv #searchInput,
.conversation-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 35px;
    padding: 8px 14px;
    line-height: 20px;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 20px !important;
    color: #333;
}
.conversation-itemqidiruv .group-add-trigger {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 22px;
    background: #fff;
    border-color: #ddd;
    color: #cc0000;
}
.conversation-itemqidiruv .group-add-trigger:hover {
    background: #fff;
    border-color: #cc0000;
}
.conversation-item {
    position: relative;
    min-height: 58px;
    padding: 6px 10px;
    box-sizing: border-box;
}
.conversation-avatar {
    flex: 0 0 46px;
    width: 46px;
    margin-right: 10px;
}
.avatar-img,
.avatar-noimage {
    width: 46px;
    height: 46px;
}
.avatar-noimage {
    font-size: 16px;
}
.avatar-saved svg {
    width: 17px;
    height: 17px;
}
.conversation-item-body {
    position: relative;
    min-width: 0;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0;
}
.conversation-title {
    display: block;
    min-height: 19px;
    margin: 0 0 2px;
    line-height: 19px;
    padding-right: 74px;
    box-sizing: border-box;
}
.conversation-title strong {
    display: block;
    font-size: 14.5px;
    line-height: 19px;
    font-weight: 700;
}
.conversation-item .snippet {
    display: block;
    min-width: 0;
    max-width: 100%;
    padding-right: var(--conversation-snippet-trailing, 0px);
    box-sizing: border-box;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
}
.conversation-item.has-unread .snippet {
    padding-right: var(--conversation-snippet-trailing, 30px);
}
.conversation-item.is-pinned-chat:not(.has-unread) .snippet {
    padding-right: var(--conversation-snippet-trailing, 24px);
}
.conversation-item .snippet-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-item .snippet-time {
    position: absolute;
    top: 0;
    right: 0;
    font-style: normal;
    font-size: 13px;
    line-height: 19px;
    color: #666 !important;
}
.conversation-pin-icon {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transform: rotate(-12deg);
}
.conversation-pin-icon svg {
    display: block;
}
.conversation-item.has-unread .conversation-pin-icon,
.conversation-item:not(.has-unread) .badge {
    display: none !important;
}
.badge {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    white-space: nowrap;
}
.conversation-item.selected {
    background: #cc0000;
}
.conversation-item.selected .snippet,
.conversation-item.selected .snippet-time {
    color: #fff !important;
}

@media (prefers-color-scheme: dark) {
    .conversation-list {
        background: #0e1621;
        border-color: #17212b;
    }
    .conversation-item:hover {
        background: #444;
    }
    .conversation-itemqidiruv {
        background: #0e1621;
    }
    .conversation-itemqidiruv #searchInput,
    .conversation-search-input {
        background: #17212b;
        color: #fff;
        border-color: #2a3c50;
    }
    .conversation-itemqidiruv .group-add-trigger {
        background: #17212b;
        border-color: #2a3c50;
        color: #ff4d4d;
    }
    .conversation-itemqidiruv .group-add-trigger:hover {
        background: #17212b;
        border-color: #ff4d4d;
    }
    .conversation-title {
        color: #fff;
    }
    .conversation-item .snippet-time {
        color: #bbb !important;
    }
    .conversation-item.selected {
        background: #ff4d4d;
    }
    .badge {
        background: #ff4d4d;
    }
}

@media (max-width: 900px) {
    .conversation-list {
        flex-basis: 350px;
        width: 350px;
    }
}

@media (max-width: 768px) {
    .inbox-container {
        flex-direction: column;
    }
    .conversation-list {
        flex: 0 0 auto;
        width: 100%;
        height: 42vh;
    }
}


.hidden-file-input {
    display: none;
}
.hidden-form {
    display: none;
}
.composer-form {
    display: flex;
    align-items: center;
}
.composer-icon-img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.voice-record-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reply-box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reply-box-title,
.reply-preview-text {
    font-size: 12px;
}
.reply-preview-text {
    margin-top: 4px;
}
.reply-cancel-btn {
    border: none;
    background: transparent;
    cursor: pointer;
}
.chat-list-empty {
    padding: 10px;
}
.group-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
}
.group-status-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.group-status-title {
    margin: 0;
    white-space: nowrap;
}
.group-status-type {
    opacity: .9;
    white-space: nowrap;
}
.group-status-text {
    margin: 0;
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.group-status-actions {
    flex: 0 0 auto;
    margin-left: auto;
}
#previewMediaGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    max-height: min(48vh, 360px);
    overflow-y: auto;
    overflow-x: hidden;
    flex: 0 1 auto;
}
.preview-file-item-document {
    display: flex;
    align-items: stretch;
    min-height: 88px;
}
.preview-document-card {
    width: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    box-sizing: border-box;
    border: 1px solid var(--forward-item-border);
    border-radius: 10px;
    background: var(--forward-item-bg);
}
.preview-document-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.preview-document-name {
    color: var(--forward-modal-text);
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-document-size {
    color: var(--forward-modal-muted);
    font-size: 12px;
    line-height: 1.2;
}
.preview-send-document-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex: 0 0 auto;
}
.sticker-panel-note {
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}
.sticker-media {
    width: 100%;
    height: 100%;
    max-width: 168px;
    object-fit: contain;
    display: block;
}
.chat-sticker-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 168px;
}
.chat-video-note-frame {
    width: 240px;
    height: 240px;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}
.video-note-media {
    border-radius: 50%;
    max-width: 240px;
}
.chat-deleted-state {
    padding: 16px;
    text-align: center;
    color: #777;
}
.search-result-empty {
    padding: 10px;
}
.shablon-menu-message {
    padding: 8px;
}
.shablon-menu-error {
    color: red;
}
.chat-media-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}
.chat-media-card {
    display: inline-block;
}
.chat-media-card-media {
    margin-top: 6px;
    max-width: 150px;
}
.chat-media-card-preview {
    max-width: 150px;
    border-radius: 10px;
}
.chat-media-frame {
    display: block;
    max-width: min(300px, 76vw);
    line-height: 0;
}
.chat-media-frame > img,
.chat-media-frame > video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    border-radius: inherit;
}
.chat-media-frame[data-media-fallback="video"] > video {
    object-fit: cover;
}
.chat-media-frame:not([style]) > img,
.chat-media-frame:not([style]) > video {
    width: auto !important;
    height: auto !important;
}
.chat-media-row .chat-media-frame > img,
.chat-media-row .chat-media-frame > video {
    object-fit: cover;
}
.chat-video-note-frame > video.video-note-media {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
.chat-video-note-frame .video-note-progress {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background:
        conic-gradient(
            rgba(255, 255, 255, .88) 0 var(--video-note-progress, 0deg),
            transparent var(--video-note-progress, 0deg) 360deg
        );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    transition: opacity .16s ease;
}
.chat-video-note-frame.is-playing .video-note-progress,
.chat-video-note-frame.has-progress .video-note-progress {
    opacity: 1;
}
.video-note-duration {
    position: absolute;
    left: 10px;
    bottom: 11px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
}
.video-note-duration[hidden],
.video-note-duration:empty {
    display: none !important;
}
.chat-media-row:has(.chat-document-card) {
    display: flex;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 7px;
    padding-top: 0;
}
.chat-media-row:has(.chat-document-card) .chat-media-card {
    width: 100%;
}
.chat-media-row:has(.chat-document-card) .chat-document-card.chat-media-card-media {
    max-width: none;
    margin-top: 0;
}
.chat-document-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
}
.chat-document-card.has-document-preview {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 72px;
}
.chat-document-card:hover .chat-document-name {
    text-decoration: underline;
}
.chat-document-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 44px;
    background: var(--pinned-bar-accent);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
    align-self: center;
}
.chat-document-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3.5V17.5' stroke='white' stroke-width='2.7' stroke-linecap='round'/%3E%3Cpath d='M6.8 12.3L12 17.5L17.2 12.3' stroke='white' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}
.chat-document-icon::after {
    content: none;
}
.chat-document-preview {
    position: relative;
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 7px;
    background: var(--quick-reply-thumb-bg, rgba(0, 0, 0, .08));
    align-self: start;
}
.chat-document-preview img,
.chat-document-preview video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 7px;
}
.chat-document-preview-video::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .48);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.chat-document-preview-video::before {
    content: "";
    position: absolute;
    left: calc(50% + 2px);
    top: 50%;
    z-index: 1;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.chat-document-meta {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    line-height: 1.2;
    padding-top: 0;
}
.chat-document-card.has-document-preview .chat-document-meta {
    padding-top: 7px;
}
.chat-document-name {
    color: var(--chat-menu-text, #152235);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}
.chat-document-name.tb-file-name,
.preview-document-name.tb-file-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-document-size {
    min-height: 14px;
    color: var(--forward-modal-muted, #6f8398);
    font-size: 11.5px;
    line-height: 1.2;
}
.chat-document-action {
    color: var(--quick-reply-accent, #cc0000);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.chat-document-size[data-size-loading="1"]::before {
    content: "";
}
@media (prefers-color-scheme: dark) {
    .chat-document-name {
        color: var(--chat-menu-text, #f4f8ff);
    }
    .chat-document-size {
        color: var(--forward-modal-muted, #92a8bf);
    }
}
.live-document-placeholder {
    margin-top: 6px;
}
.live-media-card {
    position: relative;
}
.live-media-preview {
    width: 300px;
    max-width: 100%;
    border-radius: 10px;
}
.chat-media-row .live-media-preview {
    width: 150px;
}
.live-upload-progress {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(7, 11, 18, .72);
    border-radius: 8px;
    padding: 6px;
    pointer-events: none;
}
.live-upload-track {
    height: 6px;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    overflow: hidden;
}
.live-upload-progress-bar {
    height: 100%;
    width: 0%;
    background: #23d18b;
    transition: width .2s ease;
}
.live-upload-progress-text {
    font-size: 11px;
    color: #fff;
    text-align: right;
    margin-top: 4px;
}
.live-upload-status {
    font-size: 12px;
    opacity: .85;
    margin-top: 6px;
}

/* KORZINKA EDIT: srok tanlash */
.section-note {
    margin: -6px 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}
.action-buttons button {
    margin: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}
.action-buttons form {
    display: inline;
}
.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
}
.srok-success-message {
    color: green;
}
#serverError {
    color: red;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
}
.srok-edit-actions {
    text-align: center;
    margin-top: 15px;
}
.srok-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    padding: 18px;
}
.srok-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}
.srok-dialog {
    width: min(420px, 100%);
    max-width: 100%;
    padding: 18px;
    position: relative;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 8px;
    overflow: visible;
}
.srok-dialog h3 {
    margin: 0 0 14px;
    text-align: center;
}
.srok-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #cc0000;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
}
.srok-close:hover {
    background: #a40000;
}
.srok-dialog label {
    display: block;
    margin: 10px 0 4px;
    font-weight: bold;
}
.srok-dialog input,
.srok-dialog select {
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 760px) {
    .srok-edit-actions button {
        width: calc(100% - 10px);
    }
}

@media (prefers-color-scheme: dark) {
    .srok-dialog {
        background: #0e1621;
        border: 1px solid #17212b;
        color: #fff;
    }
    .srok-close {
        background: #ff4d4d;
    }
    .srok-close:hover {
        background: #cc0000;
    }
}

/* Tijorat taklifi */
.tijorat-page {
    color: #000 !important;
}
.tijorat-empty-error {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #cc0000 !important;
}
.tijorat-empty-box {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    margin: 20px auto !important;
    max-width: 520px !important;
    padding: 20px !important;
    text-align: center !important;
}
.tijorat-actions {
    margin: 15px;
    top: 15px !important;
    right: 15px !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 9999 !important;
    justify-content: center !important;
}
.tijorat-btn {
    padding: 8px 12px !important;
    background: #cc0000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
}
.tijorat-btn:hover {
    background: #a40000 !important;
}
.tijorat-lang-select {
    padding: 6px 10px !important;
    background: #fff !important;
    color: #cc0000 !important;
    border: 1px solid #cc0000 !important;
}
.tijorat-hidden {
    display: none !important;
}
.tijorat-offer {
    background: #fff !important;
    padding: 0 50px 25px !important;
    max-width: 850px !important;
    margin: auto !important;
    border: 1px solid #ddd !important;
    page-break-inside: auto !important;
}
.tijorat-offer-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.tijorat-offer-date {
    font-size: 14px !important;
}
.tijorat-offer-logo {
    height: 100px !important;
}
.tijorat-offer-intro {
    color: #000;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
.tijorat-offer h1 {
    color: #cc0000 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 28px !important;
}
.tijorat-offer-table {
    background: #fff !important;
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
    table-layout: auto !important;
}
.tijorat-offer-table thead {
    display: table-header-group !important;
}
.tijorat-offer-table tfoot {
    display: table-footer-group !important;
}
.tijorat-offer-table th,
.tijorat-offer-table td {
    border: 1px solid #ddd !important;
    padding: 12px !important;
    color: #000 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}
.tijorat-offer-table th {
    background-color: #cb3837 !important;
    color: #fff !important;
    text-align: center !important;
}
.tijorat-offer-table tbody tr:nth-child(odd) td {
    background-color: #fff !important;
}
.tijorat-offer-table tbody tr:nth-child(even) td {
    background-color: #f2f2f2 !important;
}
.tijorat-offer-table td:first-child,
.tijorat-offer-table td:nth-child(3),
.tijorat-offer-table td:nth-child(4),
.tijorat-offer-table td:nth-child(5),
.tijorat-text-center {
    text-align: center !important;
}
.tijorat-text-right {
    text-align: right !important;
}
.tijorat-col-no {
    width: 40px !important;
}
.tijorat-col-qty {
    width: 110px !important;
}
.tijorat-col-unit {
    width: 120px !important;
}
.tijorat-col-total {
    width: 130px !important;
}
.tijorat-totals {
    background: #fff !important;
    margin-top: 20px !important;
    margin-left: auto !important;
    width: 220px !important;
    font-size: 16px !important;
    page-break-inside: avoid !important;
}
.tijorat-totals td {
    padding: 6px 8px !important;
}
.tijorat-totals tr:last-child td {
    background: #fff !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: 1px solid #ddd !important;
}
.tijorat-notes {
    font-size: 14px !important;
    margin-top: 25px !important;
    line-height: 1.45 !important;
    color: #3d0d0d !important;
}
.tijorat-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 35px !important;
    font-size: 12px !important;
    color: #3d0d0d !important;
    page-break-inside: avoid !important;
}
.tijorat-footer-right {
    text-align: right !important;
}


.conversation-list,
.chat-messages,
.sticker-panel {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.conversation-list:hover,
.conversation-list:focus-within,
.chat-messages:hover,
.chat-messages:focus-within,
.sticker-panel:hover,
.sticker-panel:focus-within {
    scrollbar-color: rgba(132, 159, 184, 0.6) transparent;
}

.conversation-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.sticker-panel::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.conversation-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.sticker-panel::-webkit-scrollbar-track {
    background: transparent;
}

.conversation-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.sticker-panel::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 999px;
}

.conversation-list:hover::-webkit-scrollbar-thumb,
.conversation-list:focus-within::-webkit-scrollbar-thumb,
.chat-messages:hover::-webkit-scrollbar-thumb,
.chat-messages:focus-within::-webkit-scrollbar-thumb,
.sticker-panel:hover::-webkit-scrollbar-thumb,
.sticker-panel:focus-within::-webkit-scrollbar-thumb {
    background-color: rgba(132, 159, 184, 0.6);
}

.conversation-list:hover::-webkit-scrollbar-thumb:hover,
.chat-messages:hover::-webkit-scrollbar-thumb:hover,
.sticker-panel:hover::-webkit-scrollbar-thumb:hover {
    background-color: rgba(165, 188, 207, 0.82);
}
.tijorat-stamp {
    width: 150px !important;
    height: 150px !important;
    border: 2px solid #0025d1 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #0025d1 !important;
    line-height: 1.1 !important;
}
.tijorat-offer.tijorat-editing .tijorat-editable-field {
    outline: 1px dashed #cc0000 !important;
    outline-offset: 2px !important;
    cursor: text !important;
}
.tijorat-offer.tijorat-editing td.tijorat-editable-field {
    outline-offset: -3px !important;
}
.tijorat-offer.tijorat-editing .tijorat-editable-field:focus {
    outline: 2px solid #cc0000 !important;
    background: #fff8f8 !important;
}

/* Futbolka/Kepka order */
.futbolka-order-page {
    color: #222;
}
.futbolka-order-page [hidden] {
    display: none !important;
}
.futbolka-order-page-title {
    margin: 0 0 16px;
}
#futbolkaOrderToggleBtn {
    margin-left: 10px;
    padding: 4px 10px;
    border: 1px solid #cc0000;
    border-radius: 4px;
    background: #fff;
    color: #cc0000;
    font-size: 14px;
    cursor: pointer;
}
#futbolkaOrderToggleBtn:hover {
    background: #fff3f3;
}
#futbolkaOrderShotBtn {
    display: block;
    margin: 20px auto;
    padding: 12px 26px;
    border: 0;
    border-radius: 6px;
    background: #cc0000;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
#futbolkaOrderShotBtn:hover {
    background: #a40000;
}
#futbolkaOrderMsg {
    margin-top: 10px;
    color: #cc0000;
    font-weight: 600;
    text-align: center;
}
.futbolka-order-shot-area {
    width: 100%;
    overflow-x: auto;
    background: transparent;
    color: inherit;
}
.futbolka-order-shot-area.futbolka-order-capturing {
    box-sizing: border-box;
    width: max-content;
    min-width: 100%;
    overflow: visible;
    padding: 16px 18px;
    background: #fff !important;
    color: #111 !important;
}
.futbolka-order-shot-area.futbolka-order-compact-shot {
    min-width: 0;
}
.futbolka-order-compact-shot .futbolka-order-prod-block,
.futbolka-order-compact-shot .futbolka-order-table {
    width: auto;
    min-width: 0;
}
.futbolka-order-prod-block {
    min-width: 980px;
}
.futbolka-order-table-title {
    margin: 8px 0 10px;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}
.futbolka-order-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: auto;
}
.futbolka-order-table th,
.futbolka-order-table td {
    border: 1px solid #ddd;
    padding: 12px;
    background: #fff;
    color: #111;
    text-align: center;
    white-space: nowrap;
}
.futbolka-order-table thead th:first-child,
.futbolka-order-total-row th {
    background: #cf3535;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.futbolka-order-table .futbolka-order-color-cell {
    background: var(--futbolka-order-color-bg);
    color: var(--futbolka-order-color-text);
    font-weight: 700;
}
.futbolka-order-row-label {
    font-weight: 600;
}
.futbolka-order-page input[type="number"] {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 16px;
    text-align: center;
}
.futbolka-order-separator {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 25px 0;
}
.futbolka-order-colors-panel {
    max-width: 980px;
    margin: 26px auto 20px;
}
.futbolka-order-note-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.futbolka-order-note-list li {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 28px;
}
.futbolka-order-note-list strong {
    color: inherit;
}
.futbolka-order-color-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.futbolka-order-color-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 4px;
    background: var(--futbolka-order-color-bg);
    color: var(--futbolka-order-color-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.futbolka-order-shot-value {
    display: block;
    width: 100%;
    min-height: 24px;
    color: #111;
    font: inherit;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
}
.futbolka-order-color-oq {
    --futbolka-order-color-bg: #fff;
    --futbolka-order-color-text: #111;
}
.futbolka-order-color-qora {
    --futbolka-order-color-bg: #000;
    --futbolka-order-color-text: #fff;
}
.futbolka-order-color-kulrang {
    --futbolka-order-color-bg: #c0c0c0;
    --futbolka-order-color-text: #111;
}
.futbolka-order-color-elektr-kok {
    --futbolka-order-color-bg: #06f;
    --futbolka-order-color-text: #fff;
}
.futbolka-order-color-qizil {
    --futbolka-order-color-bg: #f00;
    --futbolka-order-color-text: #fff;
}
.futbolka-order-color-yashil {
    --futbolka-order-color-bg: #4caf50;
    --futbolka-order-color-text: #fff;
}
.futbolka-order-color-toq-kok {
    --futbolka-order-color-bg: #036;
    --futbolka-order-color-text: #fff;
}
.futbolka-order-color-toq-qizil {
    --futbolka-order-color-bg: #8b0000;
    --futbolka-order-color-text: #fff;
}
.futbolka-order-color-custom {
    --futbolka-order-color-bg: #fff;
    --futbolka-order-color-text: #111;
}
@media (prefers-color-scheme: dark) {
    .futbolka-order-page {
        color: #f5f7fb;
    }
    #futbolkaOrderToggleBtn {
        border-color: #ff4d4d;
        background: #17212b;
        color: #ff7070;
    }
    #futbolkaOrderToggleBtn:hover {
        background: #223246;
    }
    #futbolkaOrderMsg {
        color: #ff7070;
    }
    .futbolka-order-shot-area.futbolka-order-capturing {
        background: #0e1621 !important;
        color: #f5f7fb !important;
    }
    .futbolka-order-table-title {
        color: #f5f7fb;
    }
    .futbolka-order-table th,
    .futbolka-order-table td {
        border-color: #26384c;
        background: #0e1621;
        color: #f5f7fb;
    }
    .futbolka-order-table tbody tr:nth-child(even) td {
        background: #132033;
    }
    .futbolka-order-table thead th:first-child,
    .futbolka-order-total-row th {
        background: #b82828;
        color: #fff;
    }
    .futbolka-order-table .futbolka-order-color-cell,
    .futbolka-order-color-badge {
        background: var(--futbolka-order-color-bg);
        color: var(--futbolka-order-color-text);
    }
    .futbolka-order-page input[type="number"] {
        border-color: #40556d;
        background: #17212b;
        color: #fff;
    }
    .futbolka-order-shot-value {
        color: #f5f7fb;
    }
    .futbolka-order-separator {
        border-top-color: #40556d;
    }
}
@media (max-width: 720px) {
    .futbolka-order-prod-block,
    .futbolka-order-table {
        min-width: 820px;
    }
    .futbolka-order-note-list {
        grid-template-columns: 1fr;
    }
    .futbolka-order-note-list li {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .futbolka-order-color-badges {
        padding-bottom: 2px;
    }
}
.adminpanel-page .navbar {
    background: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .05);
    margin-bottom: 20px;
    text-align: center;
}
.adminpanel-page .navbar a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
    text-align: center;
}
.adminpanel-page .msg {
    color: #10764f;
    background: #e5fff2;
    border: 1px solid #afe0cc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}
.adminpanel-page .btn-link,
.adminpanel-page .btn-save,
.adminpanel-page .btn-cancel {
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 5px;
}
.adminpanel-page .btn-link {
    background-color: #f9f9f9;
    color: #2196f3;
}
.adminpanel-page .btn-link:hover {
    background-color: #ddd;
}
.adminpanel-page .btn-link.btn-danger {
    background: #d93025;
    border-color: #d93025;
    color: #fff;
}
.adminpanel-page .btn-link.btn-danger:hover {
    background: #b3261e;
    border-color: #b3261e;
    color: #fff;
}
.adminpanel-page .btn-link.btn-success-link {
    color: #1f8f3a;
}
.adminpanel-page .btn-save {
    background: #4caf50;
    color: #fff;
    border: none;
}
.adminpanel-page .btn-cancel {
    background: #999;
    color: #fff;
    border: none;
}
.adminpanel-page .form-block {
    margin: 10px 0 25px 0;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}
.adminpanel-page .pw-generate-btn {
    cursor: pointer;
    margin-left: 5px;
    background: #f3f3f3;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 12px;
    display: inline-block;
}
.adminpanel-page .adminpanel-welcome {
    text-align: center;
}
.adminpanel-page .adminpanel-input-wide {
    width: 420px;
}
.adminpanel-page .adminpanel-input-url {
    width: 300px;
}
.adminpanel-page .adminpanel-input-md {
    width: 250px;
}
.adminpanel-page .adminpanel-input-sm {
    width: 200px;
}
.adminpanel-page .adminpanel-input-color {
    width: 120px;
    font-family: Consolas, "Courier New", monospace;
    text-transform: lowercase;
}
.adminpanel-page .adminpanel-color-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.adminpanel-page .adminpanel-color-picker {
    width: 44px;
    height: 34px;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid #1b2a3a;
    background: #132033;
    cursor: pointer;
}
.adminpanel-page .adminpanel-news-textarea {
    width: 100%;
    max-width: 900px;
}
.adminpanel-page .adminpanel-inline-form {
    display: inline;
}
.adminpanel-page .adminpanel-role-option {
    margin-right: 20px;
}
.adminpanel-page .adminpanel-muted {
    color: #999;
}
.adminpanel-page .adminpanel-error {
    color: red;
}
.auth-log-search-input {
    padding: 8px;
    width: 220px;
}
.auth-log-date-input {
    padding: 8px;
}
.diff-indicator-up {
    color: green;
}
.diff-indicator-down {
    color: red;
}
.is-hidden {
    display: none !important;
}
.excel-number {
    mso-number-format: '0';
}
.dashboard-tan-narxi-input {
    width: 70px;
}
.axcw-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}
.axcw-user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    display: block;
    margin: 6px auto 10px;
}
.kirim-option-disabled {
    font-weight: bold;
    color: #555;
}
.oylik-workers-toggle-link {
    margin-left: 10px;
    color: #fff;
    background: #555;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
}
.oylik-action-link {
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
}
.oylik-action-avans {
    background: #e67e22;
}
.oylik-action-shtraf {
    background: #c0392b;
}
.oylik-action-edit {
    background: #27ae60;
}
.oylik-action-delete {
    background: #e74c3c;
}
:root {
    --platform-light-background-color: #f5f5f7;
    --platform-light-secondary-color: #ffffff;
    --platform-light-theme-color: #ff4d4d;
    --platform-light-text-color: #333333;
    --platform-light-link-color: #cc0000;
    --platform-dark-background-color: #0e1621;
    --platform-dark-secondary-color: #17212b;
    --platform-dark-theme-color: #cc0000;
    --platform-dark-text-color: #ffffff;
    --platform-dark-link-color: #ff4d4d;
    --platform-background-color: var(--platform-light-background-color);
    --platform-secondary-color: var(--platform-light-secondary-color);
    --platform-surface-color: var(--platform-light-secondary-color);
    --platform-theme-color: var(--platform-light-theme-color);
    --platform-text-color: var(--platform-light-text-color);
    --platform-link-color: var(--platform-light-link-color);
    color-scheme: light dark;
}
html.axcw-theme-light {
    --platform-background-color: var(--platform-light-background-color);
    --platform-secondary-color: var(--platform-light-secondary-color);
    --platform-surface-color: var(--platform-light-secondary-color);
    --platform-theme-color: var(--platform-light-theme-color);
    --platform-text-color: var(--platform-light-text-color);
    --platform-link-color: var(--platform-light-link-color);
    color-scheme: light;
}
html.axcw-theme-dark {
    --platform-background-color: var(--platform-dark-background-color);
    --platform-secondary-color: var(--platform-dark-secondary-color);
    --platform-surface-color: var(--platform-dark-secondary-color);
    --platform-theme-color: var(--platform-dark-theme-color);
    --platform-text-color: var(--platform-dark-text-color);
    --platform-link-color: var(--platform-dark-link-color);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    html.axcw-theme-auto {
        --platform-background-color: var(--platform-dark-background-color);
        --platform-secondary-color: var(--platform-dark-secondary-color);
        --platform-surface-color: var(--platform-dark-secondary-color);
        --platform-theme-color: var(--platform-dark-theme-color);
        --platform-text-color: var(--platform-dark-text-color);
        --platform-link-color: var(--platform-dark-link-color);
        color-scheme: dark;
    }
}
body {
    background-color: var(--platform-background-color);
    color: var(--platform-text-color);
}
.container,
.qarorlarcontainer,
.stats-box,
.adminpanel-page .form-block {
    background-color: var(--platform-secondary-color);
    border-color: var(--platform-secondary-color);
}
.header,
.adminpanel-page .navbar {
    background-color: var(--platform-background-color);
}
.header .logo,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--platform-theme-color);
}
a {
    color: var(--platform-link-color);
}
table th,
.btn-save,
button[type] {
    background-color: var(--platform-theme-color);
}
textarea:focus {
    border-color: var(--platform-theme-color);
}
input[type="checkbox"] {
    accent-color: var(--platform-theme-color);
}
.axcw-nav-links a:hover,
.axcw-nav-links a.active,
.barchasi-btn:hover {
    border-bottom-color: var(--platform-theme-color);
}
.axcw-is-mobile .axcw-nav-links {
    display: none !important;
}
.axcw-widget-toggle__icon {
    font-size: 15px;
    line-height: 1;
}
.axcw-widget-toggle__text {
    line-height: 1;
    white-space: nowrap;
}
.axcw-is-desktop.axcw-show-chat-off .container {
    max-width: 1560px !important;
    margin: 20px auto !important;
}
.axcw-is-desktop .container {
    max-width: none !important;
    width: 95% !important;
}
.axcw-is-desktop .axcw-widget-toggle:hover {
    transform: translateY(-1px);
}
html.axcw-theme-pending body {
    visibility: hidden !important;
    opacity: 0 !important;
}
html.axcw-theme-ready body {
    visibility: visible !important;
    opacity: 1 !important;
}
html.axcw-light-forced,
html.axcw-light-forced body {
    background: var(--platform-light-background-color) !important;
    color: var(--platform-light-text-color) !important;
}
html.axcw-dark-forced,
html.axcw-dark-forced body {
    background: var(--platform-dark-background-color) !important;
    color: var(--platform-dark-text-color) !important;
}
.barchasi-container.sticky-open .barchasi-dropdown {
    display: block !important;
}
@media (prefers-color-scheme: dark) {
    .adminpanel-page .navbar {
        background: #2a2a2a;
        box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
    }
    .adminpanel-page .navbar a {
        color: #e0e0e0;
    }
    .adminpanel-page .msg {
        color: #27ae60;
        background: #2a3a2a;
        border: 1px solid #336633;
    }
    .adminpanel-page .btn-link {
        background-color: #333;
        color: #4da8ff;
        border: 1px solid #555;
    }
    .adminpanel-page .btn-link:hover {
        background-color: #444;
    }
    .adminpanel-page .btn-link.btn-danger {
        background: #d93025;
        border-color: #d93025;
        color: #fff;
    }
    .adminpanel-page .btn-link.btn-danger:hover {
        background: #b3261e;
        border-color: #b3261e;
        color: #fff;
    }
    .adminpanel-page .btn-link.btn-success-link {
        color: #55c56f;
    }
    .adminpanel-page .btn-save {
        background: #27ae60;
    }
    .adminpanel-page .btn-cancel {
        background: #666;
    }
    .adminpanel-page .form-block {
        border: 1px solid #555;
        background: #2a2a2a;
    }
    .adminpanel-page .pw-generate-btn {
        background: #333;
        color: #e0e0e0;
    }
    body,
    .header,
    .adminpanel-page .navbar {
        background-color: var(--platform-background-color) !important;
    }
    .header .logo,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: var(--platform-theme-color) !important;
    }
    a {
        color: var(--platform-link-color) !important;
    }
    table th,
    .btn-save,
    button[type] {
        background-color: var(--platform-theme-color) !important;
    }
    html.axcw-light-forced,
    html.axcw-light-forced body {
        background: var(--platform-light-background-color) !important;
        color: var(--platform-light-text-color) !important;
    }
}

body.auth-page {
    --auth-page-bg: var(--platform-background-color);
    --auth-text: var(--platform-text-color);
    --auth-title: var(--platform-theme-color);
    --auth-input-bg: var(--platform-background-color);
    --auth-input-text: var(--platform-text-color);
    --auth-input-border: #ccc;
    --auth-focus-ring: color-mix(in srgb, var(--platform-theme-color), transparent 72%);
    --auth-error-bg: color-mix(in srgb, var(--platform-background-color), var(--platform-theme-color) 16%);
    --auth-error-text: var(--platform-text-color);
    --auth-error-border: color-mix(in srgb, var(--platform-theme-color), var(--platform-background-color) 45%);
    --auth-message-bg: color-mix(in srgb, var(--platform-background-color), var(--platform-link-color) 12%);
    --auth-message-text: var(--platform-text-color);
    --auth-message-border: color-mix(in srgb, var(--platform-link-color), var(--platform-background-color) 45%);
    --auth-link: var(--platform-link-color);
    min-height: 100vh;
    margin: 0;
    padding: 48px 18px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--auth-page-bg);
    color: var(--auth-text);
    color-scheme: inherit;
}
body.auth-page .container {
    width: min(90%, 390px);
    max-width: 390px;
    margin: 72px auto 0;
    padding: 34px 30px 30px;
    box-sizing: border-box;
}
html.axcw-theme-dark body.auth-page .container {
    background: var(--platform-secondary-color);
    border-color: var(--platform-secondary-color);
}
html.axcw-theme-dark body.auth-page {
    --auth-input-border: #555;
}
@media (prefers-color-scheme: dark) {
    html.axcw-theme-auto body.auth-page .container {
        background: var(--platform-secondary-color);
        border-color: var(--platform-secondary-color);
    }
    html.axcw-theme-auto body.auth-page {
        --auth-input-border: #555;
    }
}
body.auth-page h2 {
    margin: 0 0 24px;
    text-align: center;
    color: var(--auth-title);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
body.auth-page .form-group {
    margin: 0 0 18px;
}
body.auth-page label {
    display: block;
    margin: 0 0 7px;
    color: var(--auth-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}
body.auth-page input[type="text"],
body.auth-page input[type="password"] {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid var(--auth-input-border);
    border-radius: 6px;
    background: var(--auth-input-bg) !important;
    color: var(--auth-input-text) !important;
    font-size: 16px;
    line-height: 1.25;
    box-shadow: none;
    outline: none;
}
body.auth-page input[type="text"]:focus,
body.auth-page input[type="password"]:focus {
    border-color: var(--auth-title);
    box-shadow: 0 0 0 3px var(--auth-focus-ring);
}
body.auth-page button[type="submit"] {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}
body.auth-page .error,
body.auth-page .message {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 6px;
    text-align: left;
    font-size: 14px;
    line-height: 1.45;
}
body.auth-page .error {
    background: var(--auth-error-bg);
    color: var(--auth-error-text);
    border: 1px solid var(--auth-error-border);
}
body.auth-page .message {
    background: var(--auth-message-bg);
    color: var(--auth-message-text);
    border: 1px solid var(--auth-message-border);
}
body.auth-page .forgot-link {
    display: block;
    margin-top: 12px;
    color: var(--auth-link);
    text-align: center;
    text-decoration: none;
}
body.auth-page .forgot-link:hover {
    text-decoration: underline;
}
@media (max-width: 520px) {
    body.auth-page {
        min-height: 100svh;
        padding: 42px 16px 24px;
        align-items: flex-start;
    }
    body.auth-page .container {
        width: 100%;
        margin-top: 0;
        padding: 28px 16px 18px;
    }
    body.auth-page h2 {
        margin-bottom: 28px;
        font-size: 21px;
        line-height: 1.25;
    }
    body.auth-page label {
        margin-bottom: 9px;
        font-size: 15px;
    }
    body.auth-page .form-group {
        margin-bottom: 20px;
    }
    body.auth-page input[type="text"],
    body.auth-page input[type="password"] {
        height: 52px;
        padding: 13px 14px;
        border-radius: 8px;
        font-size: 16px;
    }
    body.auth-page button[type="submit"] {
        min-height: 52px;
        padding: 14px 16px;
        border-radius: 8px;
        font-size: 16px;
    }
    body.auth-page .error,
    body.auth-page .message {
        margin-bottom: 20px;
        padding: 13px 14px;
        font-size: 14px;
    }
}
body.auth-log-view-page{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;margin:16px;color:#111;}
    body.auth-log-view-page .row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-bottom:12px}
    body.auth-log-view-page .card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff}
    body.auth-log-view-page .kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0}
    body.auth-log-view-page .kpi .card b{font-size:20px;display:block}
    body.auth-log-view-page table{width:100%;border-collapse:collapse}
    body.auth-log-view-page th, body.auth-log-view-page td{border-bottom:1px solid #eee;padding:8px 6px;text-align:left;font-size:14px}
    body.auth-log-view-page th{background:#fafafa;position:sticky;top:0}
    body.auth-log-view-page .muted{color:#6b7280}
    body.auth-log-view-page .pill{display:inline-block;padding:2px 8px;border-radius:999px;background:#f3f4f6;font-size:12px}
    body.auth-log-view-page .nowrap{white-space:nowrap}
    body.auth-log-view-page .right{text-align:right}
    body.auth-log-view-page .small{font-size:12px}
    body.auth-log-view-page .btn{display:inline-block;padding:6px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;text-decoration:none;color:#111}
    body.auth-log-view-page .btn:hover{background:#f9fafb}
    body.auth-log-view-page .grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
    @media(max-width:900px){body.auth-log-view-page .grid{grid-template-columns:1fr}}
    body.auth-log-view-page .table-wrap{max-height:60vh;overflow:auto;border:1px solid #eee;border-radius:10px}

body.bugalter-main-page .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
body.bugalter-main-page .stat-box {
    flex: 1;
    min-width: 200px;
    background: #fafafa;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
body.bugalter-main-page .stat-box h3 {
    margin: 0;
    font-size: 18px;
}
body.bugalter-main-page .stat-box p {
    margin: 8px 0 0;
    font-size: 16px;
    color: #333;
}
body.bugalter-main-page .highlight {
    background: #eafbea;
}
body.bugalter-main-page .pagination {
    margin-top: 15px;
    text-align: center;
}
body.bugalter-main-page .pagination a {
    display: inline-block;
    text-decoration: none;
    padding: 6px 12px;
    margin: 0 5px;
    background: #cc0000;
    color: #fff;
    border-radius: 4px;
}
body.bugalter-main-page .pagination a:hover {
    background: #a40000;
    color: #fff;
}
body.bugalter-main-page .pagination .active-page {
    background: #fff !important;
    color: #f00 !important;
    border: 1px solid #f00 !important;
}
body.bugalter-main-page .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
}
body.bugalter-main-page .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
body.bugalter-main-page .filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
}
body.bugalter-main-page .filter-group select {
    padding: 5px;
}
body.bugalter-main-page .filter-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
body.bugalter-main-page .filter-buttons-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
body.bugalter-main-page .filter-buttons-left button {
    color: #fff;
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
body.bugalter-main-page .filter-buttons-left a {
    display: inline-block;
    background-color: #ddd;
    color: #333;
    text-align: center;
    line-height: normal;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 14px;
}
body.bugalter-main-page .filter-buttons-left a:hover {
    background-color: #bbb;
}
body.bugalter-main-page .excel-btn {
    background: #cc0000;
    color: #fff;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 14px;
}
body.bugalter-main-page .excel-btn:hover {
    background: #a40000;
}

@media (prefers-color-scheme: dark) {
    body.bugalter-main-page .stats {
        background: #1a1a1a;
    }
    body.bugalter-main-page .stat-box {
        background: #2a2a2a;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    body.bugalter-main-page .stat-box h3 {
        color: #e0e0e0;
    }
    body.bugalter-main-page .stat-box p {
        color: #e0e0e0;
    }
    body.bugalter-main-page .highlight {
        background: #2a3a2a;
    }
    body.bugalter-main-page .pagination a {
        background: #ff4d4d;
    }
    body.bugalter-main-page .pagination a:hover {
        background: #cc0000;
    }
    body.bugalter-main-page .pagination .active-page {
        background: #2a2a2a !important;
        color: #ff6b6b !important;
        border: 1px solid #ff6b6b !important;
    }
    body.bugalter-main-page .filter-row {
        background: #2a2a2a;
    }
    body.bugalter-main-page .filter-group label {
        color: #e0e0e0;
    }
    body.bugalter-main-page .filter-group select {
        background: #333;
        border: 1px solid #555;
        color: #e0e0e0;
    }
    body.bugalter-main-page .filter-buttons {
        background: #2a2a2a;
    }
    body.bugalter-main-page .filter-buttons-left button {
        background: #ff4d4d;
    }
    body.bugalter-main-page .filter-buttons-left a {
        background-color: #444;
        color: #e0e0e0;
    }
    body.bugalter-main-page .filter-buttons-left a:hover {
        background-color: #555;
    }
    body.bugalter-main-page .excel-btn {
        background: #ff4d4d;
    }
    body.bugalter-main-page .excel-btn:hover {
        background: #cc0000;
    }
}

body.dashboard-all-page table {
                width: 100%;
                border-collapse: collapse;
                margin: 10px 0;
            }
            body.dashboard-all-page th, body.dashboard-all-page td {
                border: 1px solid #ccc;
                padding: 5px;
                text-align: center;
            }
            body.dashboard-all-page th {
                background-color: #eee;
            }
            body.dashboard-all-page .stats-block {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.5;
    min-width: 280px;
}
body.dashboard-all-page .stats-block p {
    margin: 5px 0;
}
body.dashboard-all-page .stats-block h3 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 10px;
}
body.dashboard-all-page .special-manager-row {
    background-color: #fff7e6 !important;
}
body.dashboard-all-page .filter-sum {
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    padding-right: 20px;
}
body.dashboard-all-page .filter-form {
    display: flex;
    text-align: center;
    border: 2px dashed #999;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
}
body.dashboard-all-page .filter-form label {
    margin: 0 5px 0 0;
    font-weight: bold;
}
body.dashboard-all-page .filter-form .multi-select-container {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-right: 10px;
    margin-bottom: 5px;
}
body.dashboard-all-page .filter-form .multi-select-container label {
    margin-right: 0;
}
body.dashboard-all-page .filter-form .multi-select-input {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #aaa;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    white-space: nowrap;
    min-width: 120px;
}
body.dashboard-all-page .filter-form .multi-select-input .ms-tag {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
}
body.dashboard-all-page .filter-form .multi-select-input .ms-tag .remove-tag {
    margin-left: 6px;
    color: #c00;
    font-weight: bold;
    cursor: pointer;
}
body.dashboard-all-page .filter-form .multi-select-input .ms-placeholder {
    color: #888;
}
body.dashboard-all-page .filter-form .multi-select-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    width: 600px; /* 2x kattaroq o'lcham */
    max-height: 800px; /* 2x kattaroq o'lcham */
    overflow-y: auto;
    border: 1px solid #aaa;
    border-radius: 4px;
    background-color: #fff;
    z-index: 9999;
    display: none;
}
body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-header {
    padding: 6px 8px;
    border-bottom: 1px solid #ccc;
    background: #f0f0f0;
    display: flex;
    gap: 8px;
    align-items: center;
}
body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-header input.ms-search {
    flex: 1;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-header button.ms-select-all-btn {
    padding: 4px 8px;
    cursor: pointer;
}
body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-list {
    padding: 6px 0;
}
body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-list div {
    padding: 6px 8px;
    cursor: pointer;
}
body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-list div:hover {
    background-color: #eee;
}
body.dashboard-all-page .filter-form button {
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    margin: 5px;
}
body.dashboard-all-page .toggle-controls {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    border: 2px dashed #999;
    border-radius: 5px;
}
body.dashboard-all-page .toggle-controls label {
    margin-right: 10px;
}
body.dashboard-all-page .hidden-col {
    display: none !important;
}
body.dashboard-all-page .boxes-list span {
    background: #eee;
    padding: 2px 5px;
    margin-right: 5px;
    border-radius: 3px;
    display: inline-block;
}
body.dashboard-all-page .progress-bar {
    width: 100px;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
}
body.dashboard-all-page .progress-fill {
    height: 100%;
}
body.dashboard-all-page .progress-text {
    font-size: 14px;
    margin-top: 4px;
}
body.dashboard-all-page .tan-narxi-updated-row td {
    background-color: #e9fff0 !important;
    color: #083b1f;
    box-shadow: inset 0 1px 0 #b8eec7, inset 0 -1px 0 #b8eec7;
}
body.dashboard-all-page .tan-narxi-updated-cell {
    min-width: 140px;
}
body.dashboard-all-page .tan-narxi-updated-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #18a058;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
body.dashboard-all-page .msgbox-success {
    color: green;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}
body.dashboard-all-page .msgbox-error {
    color: red;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

@media (prefers-color-scheme: dark) {
    body.dashboard-all-page .stats-block {
        background: #2a2a2a;
        border: 1px solid #555;
        color: #e0e0e0;
    }
    body.dashboard-all-page .stats-block h3 {
        color: #e0e0e0;
    }
    body.dashboard-all-page .stats-block p {
        color: #e0e0e0;
    }
    body.dashboard-all-page .special-manager-row {
        background-color: #3a3a2a !important;
    }
    body.dashboard-all-page .filter-sum {
        color: #e0e0e0;
    }
    body.dashboard-all-page .filter-form {
        background: #2a2a2a;
        border: 2px dashed #555;
    }
    body.dashboard-all-page .filter-form label {
        color: #e0e0e0;
    }
    body.dashboard-all-page .filter-form .multi-select-container label {
        color: #e0e0e0;
    }
    body.dashboard-all-page .filter-form .multi-select-input {
        background: #333;
        border: 1px solid #555;
    }
    body.dashboard-all-page .filter-form .multi-select-input .ms-tag {
        background: #2a3a2a;
        border: 1px solid #336633;
        color: #e0e0e0;
    }
    body.dashboard-all-page .filter-form .multi-select-input .ms-tag .remove-tag {
        color: #ff6b6b;
    }
    body.dashboard-all-page .filter-form .multi-select-input .ms-placeholder {
        color: #bbb;
    }
    body.dashboard-all-page .filter-form .multi-select-dropdown {
        background: #2a2a2a;
        border: 1px solid #555;
    }
    body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-header {
        background: #444;
        border-bottom: 1px solid #555;
    }
    body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-header input.ms-search {
        background: #333;
        border: 1px solid #555;
        color: #e0e0e0;
    }
    body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-header button.ms-select-all-btn {
        background: #388e3c;
        color: #fff;
        border: none;
    }
    body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-list div {
        color: #e0e0e0;
    }
    body.dashboard-all-page .filter-form .multi-select-dropdown .ms-dropdown-list div:hover {
        background: #444;
    }
    body.dashboard-all-page .filter-form button {
        background: #388e3c;
        color: #fff;
    }
    body.dashboard-all-page .toggle-controls {
        background: #2a2a2a;
        border: 2px dashed #555;
    }
    body.dashboard-all-page .toggle-controls label {
        color: #e0e0e0;
    }
    body.dashboard-all-page .boxes-list span {
        background: #444;
        color: #e0e0e0;
    }
    body.dashboard-all-page .progress-bar {
        background: #555;
    }
    body.dashboard-all-page .progress-text {
        color: #e0e0e0;
    }
    body.dashboard-all-page .tan-narxi-updated-row td {
        background-color: #123622 !important;
        color: #e8fff0;
        box-shadow: inset 0 1px 0 #207947, inset 0 -1px 0 #207947;
    }
    body.dashboard-all-page .tan-narxi-updated-badge {
        background: #27ae60;
        color: #fff;
    }
    body.dashboard-all-page .msgbox-success {
        color: #27ae60;
    }
    body.dashboard-all-page .msgbox-error {
        color: #ff6b6b;
    }
}

body.dashboard-all-page #toggle-stats-btn:hover { opacity: .9; }
            body.dashboard-all-page table {
                width: 100%;
                border-collapse: collapse;
                margin: 20px 0;
            }
            body.dashboard-all-page th, body.dashboard-all-page td {
                padding: 8px;
                border: 1px solid #ccc;
                text-align: center;
                vertical-align: middle;
            }
            body.dashboard-all-page th {
                background-color: #cb3837;
                color: #fff;
            }
            body.dashboard-all-page tr:nth-child(even) {
                background-color: #f2f2f2;
            }
            body.dashboard-all-page .special-manager-row {
                background-color: #fff7e6 !important;
            }
            body.dashboard-all-page .filter-sum {
                text-align: right;
                font-weight: bold;
                font-size: 16px;
                padding-right: 20px;
            }
            body.dashboard-all-page .progress-bar, body.dashboard-all-page .progress-fill, body.dashboard-all-page .progress-text {
                display: inline !important;
            }

body.ishga-keldim-page {
            --primary-color: #e74c3c;
            --secondary-color: #c0392b;
            --accent-color: #457b9d;
            --success-color: #2a9d8f;
            --error-color: #e63946;
            --text-color: #212529;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --gray-color: #e9ecef;
        }
        
        body.ishga-keldim-page * {
            box-sizing: border-box;
        }
        
        body.ishga-keldim-page {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f8edeb, #fae1dd);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            color: var(--text-color);
        }
        
        body.ishga-keldim-page .container {
            width: 100%;
            max-width: 480px;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        body.ishga-keldim-page .card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 20px;
            flex: 1;
        }
        
        body.ishga-keldim-page h1 {
            margin-top: 0;
            font-size: 28px;
            text-align: center;
            color: var(--primary-color);
            margin-bottom: 30px;
            position: relative;
        }
        
        body.ishga-keldim-page h1:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 3px;
        }
        
        body.ishga-keldim-page label {
            display: block;
            margin: 15px 0 8px;
            font-size: 16px;
            font-weight: 600;
            color: var(--dark-color);
        }
        
        body.ishga-keldim-page select, body.ishga-keldim-page input[type="text"], body.ishga-keldim-page input[type="number"] {
            width: 100%;
            font-size: 16px;
            padding: 12px 15px;
            margin-bottom: 15px;
            border: 2px solid var(--gray-color);
            border-radius: 8px;
            background-color: var(--light-color);
        }
        
        body.ishga-keldim-page select:focus, body.ishga-keldim-page input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
        }
        
        body.ishga-keldim-page .input-group {
            display: flex;
            gap: 10px;
        }
        
        body.ishga-keldim-page .input-group input {
            flex: 1;
            text-align: center;
        }
        
        body.ishga-keldim-page button {
            font-size: 16px;
            font-weight: 600;
            padding: 12px 20px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 20px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
        }
        
        body.ishga-keldim-page button:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(231, 76, 60, 0.3);
        }
        
        body.ishga-keldim-page button:active {
            transform: translateY(1px);
        }
        
        body.ishga-keldim-page .btn-secondary {
            background: #e9ecef;
            color: var(--dark-color);
        }
        
        body.ishga-keldim-page .btn-secondary:hover {
            background: #dde2e6;
        }
        
        body.ishga-keldim-page .btn-success {
            background: var(--success-color);
        }
        
        body.ishga-keldim-page .btn-success:hover {
            background: #218c7e;
        }
        
        body.ishga-keldim-page .btn-danger {
            background: var(--error-color);
        }
        
        body.ishga-keldim-page .btn-danger:hover {
            background: #d32535;
        }
        
        body.ishga-keldim-page .button-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        body.ishga-keldim-page .step {
            display: none;
            animation: fadeIn 0.5s;
        }
        
        body.ishga-keldim-page .step.active {
            display: block;
        }
        
        body.ishga-keldim-page .alert {
            background: #ffe2e2;
            color: #b10000;
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        body.ishga-keldim-page .alert i {
            font-size: 20px;
        }
        
        body.ishga-keldim-page .success-alert {
            background: #d4edda;
            color: #155724;
            border-color: #c3e6cb;
        }
        
        body.ishga-keldim-page .progress-container {
            margin-top: 20px;
            display: none;
        }
        
        body.ishga-keldim-page .progress-bar {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        
        body.ishga-keldim-page .progress-fill {
            height: 100%;
            width: 0%;
            background-color: var(--success-color);
            border-radius: 4px;
            transition: width 0.3s ease;
        }
        
        body.ishga-keldim-page .progress-text {
            text-align: center;
            font-size: 14px;
        }
        
        body.ishga-keldim-page .camera-container {
            position: relative;
            width: 100%;
            border-radius: 10px;
            overflow: hidden;
            margin: 20px 0;
            background: #000;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        body.ishga-keldim-page video {
            width: 100%;
            max-width: 100%;
            display: block;
            transform: scaleX(-1);
        }
        
        body.ishga-keldim-page canvas {
            display: none;
        }
        
        body.ishga-keldim-page .camera-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            padding-bottom: 20px;
        }
        
        body.ishga-keldim-page .camera-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        body.ishga-keldim-page .camera-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            border: none;
        }
        
        body.ishga-keldim-page .camera-btn i {
            font-size: 24px;
            color: var(--dark-color);
        }
        
        body.ishga-keldim-page .camera-btn.capture {
            background: var(--accent-color);
        }
        
        body.ishga-keldim-page .camera-btn.capture i {
            color: white;
        }
        
        body.ishga-keldim-page .camera-guide {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200px;
            height: 200px;
            border: 3px solid rgba(255, 255, 255, 0.7);
            border-radius: 50%;
            pointer-events: none;
        }
        
        body.ishga-keldim-page .preview-container {
            display: none;
            margin: 20px 0;
        }
        
        body.ishga-keldim-page .preview-img {
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        body.ishga-keldim-page .steps-indicator {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            position: relative;
            padding: 0 10px;
        }
        
        body.ishga-keldim-page .step-item {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--gray-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--dark-color);
            z-index: 2;
        }
        
        body.ishga-keldim-page .step-item.active {
            background: var(--primary-color);
            color: white;
        }
        
        body.ishga-keldim-page .step-item.completed {
            background: var(--success-color);
            color: white;
        }
        
        body.ishga-keldim-page .steps-line {
            position: absolute;
            top: 15px;
            left: 40px;
            right: 40px;
            height: 3px;
            background: var(--gray-color);
            z-index: 1;
        }
        
        body.ishga-keldim-page .steps-line-progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: var(--success-color);
            width: 0%;
            transition: width 0.5s ease;
        }
        
        body.ishga-keldim-page .success-card {
            text-align: center;
            padding: 40px 20px;
        }
        
        body.ishga-keldim-page .success-icon {
            font-size: 80px;
            color: var(--success-color);
            margin-bottom: 20px;
        }
        
        body.ishga-keldim-page .success-title {
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--dark-color);
        }
        
        body.ishga-keldim-page .success-message {
            font-size: 16px;
            color: #6c757d;
            margin-bottom: 30px;
        }
        
        body.ishga-keldim-page .work-stats {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }
        
        body.ishga-keldim-page .stat-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #dee2e6;
        }
        
        body.ishga-keldim-page .stat-item:last-child {
            border-bottom: none;
        }
        
        body.ishga-keldim-page .stat-label {
            font-weight: 500;
            color: #495057;
        }
        
        body.ishga-keldim-page .stat-value {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        body.ishga-keldim-page .stat-value.highlighted {
            font-size: 1.2em;
            color: var(--success-color);
        }
        
        body.ishga-keldim-page .animation-container {
            height: 150px;
            margin: 20px 0;
            position: relative;
            overflow: hidden;
        }
        
        body.ishga-keldim-page .clock-animation {
            position: relative;
            width: 100px;
            height: 100px;
            background: white;
            border-radius: 50%;
            margin: 0 auto;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        body.ishga-keldim-page .clock-face {
            position: absolute;
            width: 80px;
            height: 80px;
            top: 10px;
            left: 10px;
            border-radius: 50%;
            background: #f8f9fa;
        }
        
        body.ishga-keldim-page .clock-center {
            position: absolute;
            width: 10px;
            height: 10px;
            top: 45px;
            left: 45px;
            background: var(--primary-color);
            border-radius: 50%;
        }
        
        body.ishga-keldim-page .clock-hour {
            position: absolute;
            width: 4px;
            height: 30px;
            background: var(--dark-color);
            top: 20px;
            left: 48px;
            transform-origin: bottom center;
            animation: rotateClockHand 3s infinite linear;
        }
        
        body.ishga-keldim-page .clock-minute {
            position: absolute;
            width: 2px;
            height: 40px;
            background: var(--primary-color);
            top: 10px;
            left: 49px;
            transform-origin: bottom center;
            animation: rotateClockHand 0.5s infinite linear;
        }
        
        @keyframes rotateClockHand {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        body.ishga-keldim-page .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }
        
        body.ishga-keldim-page .particle {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            animation: particleMove 2s infinite ease-out;
        }
        
        body.ishga-keldim-page .particle:nth-child(1) {
            background: var(--primary-color);
            top: 20%;
            left: 20%;
            animation-delay: 0.2s;
        }
        
        body.ishga-keldim-page .particle:nth-child(2) {
            background: var(--success-color);
            top: 30%;
            left: 70%;
            animation-delay: 0.5s;
        }
        
        body.ishga-keldim-page .particle:nth-child(3) {
            background: var(--accent-color);
            top: 70%;
            left: 40%;
            animation-delay: 0.8s;
        }
        
        body.ishga-keldim-page .particle:nth-child(4) {
            background: var(--secondary-color);
            top: 60%;
            left: 80%;
            animation-delay: 1.1s;
        }
        
        body.ishga-keldim-page .particle:nth-child(5) {
            background: var(--primary-color);
            top: 80%;
            left: 10%;
            animation-delay: 1.4s;
        }
        
        @keyframes particleMove {
            0% { transform: translate(0, 0); opacity: 1; }
            100% { transform: translate(20px, -50px); opacity: 0; }
        }

body.ishdan-ketdim-page {
            --primary-color: #e74c3c;
            --secondary-color: #c0392b;
            --accent-color: #f72585;
            --success-color: #4cc9f0;
            --error-color: #e63946;
            --text-color: #212529;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --gray-color: #e9ecef;
        }
        
        body.ishdan-ketdim-page * {
            box-sizing: border-box;
        }
        
        body.ishdan-ketdim-page {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #fae2e2, #f5f5f5);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            color: var(--text-color);
        }
        
        body.ishdan-ketdim-page .container {
            width: 100%;
            max-width: 480px;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        body.ishdan-ketdim-page .card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 20px;
            flex: 1;
        }
        
        body.ishdan-ketdim-page h1 {
            margin-top: 0;
            font-size: 28px;
            text-align: center;
            color: var(--primary-color);
            margin-bottom: 30px;
            position: relative;
        }
        
        body.ishdan-ketdim-page h1:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 3px;
        }
        
        body.ishdan-ketdim-page label {
            display: block;
            margin: 15px 0 8px;
            font-size: 16px;
            font-weight: 600;
            color: var(--dark-color);
        }
        
        body.ishdan-ketdim-page select, body.ishdan-ketdim-page input[type="text"], body.ishdan-ketdim-page input[type="number"] {
            width: 100%;
            font-size: 16px;
            padding: 12px 15px;
            margin-bottom: 15px;
            border: 2px solid var(--gray-color);
            border-radius: 8px;
            background-color: var(--light-color);
        }
        
        body.ishdan-ketdim-page select:focus, body.ishdan-ketdim-page input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
        }
        
        body.ishdan-ketdim-page .input-group {
            display: flex;
            gap: 10px;
        }
        
        body.ishdan-ketdim-page .input-group input {
            flex: 1;
            text-align: center;
        }
        
        body.ishdan-ketdim-page button {
            font-size: 16px;
            font-weight: 600;
            padding: 12px 20px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 20px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
        }
        
        body.ishdan-ketdim-page button:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(231, 76, 60, 0.3);
        }
        
        body.ishdan-ketdim-page button:active {
            transform: translateY(1px);
        }
        
        body.ishdan-ketdim-page .btn-secondary {
            background: #e9ecef;
            color: var(--dark-color);
        }
        
        body.ishdan-ketdim-page .btn-success {
            background: var(--success-color);
        }
        
        body.ishdan-ketdim-page .btn-danger {
            background: var(--error-color);
        }
        
        body.ishdan-ketdim-page .button-group {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        body.ishdan-ketdim-page .step {
            display: none;
            animation: fadeIn 0.5s;
        }
        
        body.ishdan-ketdim-page .step.active {
            display: block;
        }
        
        body.ishdan-ketdim-page .alert {
            background: #ffe2e2;
            color: #b10000;
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        body.ishdan-ketdim-page .alert i {
            font-size: 20px;
        }
        
        body.ishdan-ketdim-page .progress-container {
            margin-top: 20px;
            display: none;
        }
        
        body.ishdan-ketdim-page .progress-bar {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        
        body.ishdan-ketdim-page .progress-fill {
            height: 100%;
            width: 0%;
            background-color: var(--success-color);
            border-radius: 4px;
            transition: width 0.3s ease;
        }
        
        body.ishdan-ketdim-page .progress-text {
            text-align: center;
            font-size: 14px;
        }
        
        body.ishdan-ketdim-page .camera-container {
            position: relative;
            width: 100%;
            border-radius: 10px;
            overflow: hidden;
            margin: 20px 0;
            background: #000;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        body.ishdan-ketdim-page video {
            width: 100%;
            max-width: 100%;
            display: block;
            transform: scaleX(-1);
        }
        
        body.ishdan-ketdim-page canvas {
            display: none;
        }
        
        body.ishdan-ketdim-page .camera-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            padding-bottom: 20px;
        }
        
        body.ishdan-ketdim-page .camera-controls {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        body.ishdan-ketdim-page .camera-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            border: none;
        }
        
        body.ishdan-ketdim-page .camera-btn.capture {
            background: var(--accent-color);
        }
        
        body.ishdan-ketdim-page .camera-guide {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200px;
            height: 200px;
            border: 3px solid rgba(255, 255, 255, 0.7);
            border-radius: 50%;
            pointer-events: none;
        }
        
        body.ishdan-ketdim-page .preview-container {
            display: none;
            margin: 20px 0;
        }
        
        body.ishdan-ketdim-page .preview-img {
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        body.ishdan-ketdim-page #latePenalty {
            margin: 15px 0;
            padding: 12px;
            background: rgba(230, 57, 70, 0.1);
            border-left: 4px solid var(--error-color);
            font-weight: 500;
            color: var(--error-color);
            border-radius: 5px;
            display: none;
        }
        
        body.ishdan-ketdim-page .steps-indicator {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            position: relative;
            padding: 0 10px;
        }
        
        body.ishdan-ketdim-page .step-item {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--gray-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--dark-color);
            z-index: 2;
        }
        
        body.ishdan-ketdim-page .step-item.active {
            background: var(--primary-color);
            color: white;
        }
        
        body.ishdan-ketdim-page .step-item.completed {
            background: var(--success-color);
            color: white;
        }
        
        body.ishdan-ketdim-page .steps-line {
            position: absolute;
            top: 15px;
            left: 40px;
            right: 40px;
            height: 3px;
            background: var(--gray-color);
            z-index: 1;
        }
        
        body.ishdan-ketdim-page .steps-line-progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: var(--success-color);
            width: 0%;
            transition: width 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

body.legacy-form-page form {
            margin-bottom: 30px;
            background: #fafafa;
            padding: 15px;
            border-radius: 8px;
        }
        body.legacy-form-page label {
            display: block;
            margin-top: 10px;
        }
        body.legacy-form-page select, body.legacy-form-page input[type="text"] {
            padding: 8px;
            width: 200px;
            margin-top: 5px;
        }
        body.legacy-form-page .back-to-main {
            display: inline-block;
            margin-top: 20px;
            background: #f44336;
            color: #fff;
            padding: 10px;
            border-radius: 4px;
            text-decoration: none;
        }
        body.legacy-form-page .back-to-main:hover {
            background: #d32f2f;
        }

        @media (prefers-color-scheme: dark) {
            body.legacy-form-page form {
                background: #2a2a2a;
                border: 1px solid #555;
            }
            body.legacy-form-page label {
                color: #e0e0e0;
            }
            body.legacy-form-page select, body.legacy-form-page input[type="text"] {
                background: #333;
                border: 1px solid #555;
                color: #e0e0e0;
            }
            body.legacy-form-page .back-to-main {
                background: #c0392b;
            }
            body.legacy-form-page .back-to-main:hover {
                background: #b32d2a;
            }
        }

body.print-page{font-family:DejaVu Sans, Arial, sans-serif; font-size:14px; line-height:1.6; color:#111;}
        body.print-page .wrap{padding:20px;}
        body.print-page h1{font-size:18px; margin:0 0 10px;}
        body.print-page .meta{font-size:12px; color:#666; margin-bottom:10px;}
        body.print-page pre{white-space:pre-wrap; word-wrap:break-word; background:#f7f7f7; padding:12px; border:1px solid #eee; border-radius:6px;}
        body.print-page .sign{margin-top:40px;}
        body.print-page .sign .line{border-top:1px solid #333; width:260px}

body.korzinka-page .container3 {
        position: relative;
        display: flex;
        height: 90vh;
        padding: 10px;
    }
    body.korzinka-page .panel {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        padding: 10px;
        overflow-y: auto;
    }
    body.korzinka-page .leftPanel {
        position: absolute;
        left: 10px;
        top: 10px;
        bottom: 10px;
        width: 300px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 0.85em;
    }
    body.korzinka-page .panelBlock {
    background: #fff;
    padding-left: 10px;
    padding-right: 10px;
}
    body.korzinka-page .centerPanel {
        flex: 1;
        margin: 0 350px;
        display: flex;
        flex-direction: column;
    }
    body.korzinka-page .rightPanel {
        position: absolute;
        right: 10px;
        top: 10px;
        bottom: 10px;
        width: 300px;
    }
    body.korzinka-page .btn {
        padding: 8px 15px;
        border: none;
        border-radius: 5px;
        background: #cc0000;
        color: #fff;
        cursor: pointer;
        font-size: 0.9em;
        transition: background 0.3s;
    }
    body.korzinka-page .btn:hover {
        background: #ff6b6b;
    }
    body.korzinka-page input, body.korzinka-page select {
        width: 100%;
        padding: 6px;
        margin: 5px 0 2px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.9em;
    }
    body.korzinka-page input[readonly] {
        background: #f0f0f0;
    }
    body.korzinka-page .cart-item {
        background: #fafafa;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 10px;
        font-size: 0.85em;
        position: relative;
    }
    body.korzinka-page .remove-btn {
        background: #cc0000;
        color: #fff;
        border: none;
        border-radius: 3px;
        padding: 3px 6px;
        cursor: pointer;
        font-size: 0.8em;
        float: right;
    }
    body.korzinka-page .drop-zone {
        border: 2px dashed #999;
        border-radius: 5px;
        padding: 5px;
        text-align: center;
        color: #666;
        margin: 5px 0;
        position: relative;
    }
    body.korzinka-page .drop-zone.dragover {
        background-color: #eee;
    }
    body.korzinka-page .preview {
        position: relative;
        display: inline-block;
        max-width: 100%;
        max-height: 100%;
    }
    body.korzinka-page .preview img {
        max-width: 100%;
        max-height: 80px;
    }
    body.korzinka-page [id^="dzChek_"][id$="Preview"] {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 6px;
    }
    body.korzinka-page #dzUnivChekPreview {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 6px;
    }
    body.korzinka-page .remove-preview-btn {
        position: absolute;
        top: 0;
        right: 5px;
        background: rgba(255,255,255,0.7);
        color: #f00;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 50%;
        cursor: pointer;
    }
    body.korzinka-page .result-qarz {
        margin-left: 5px;
        font-size: 0.8em;
    }
    body.korzinka-page .total-sum {
        margin-top: 15px;
        font-size: 0.9em;
        font-weight: bold;
        color: #fff;
        background: #cc0000;
        padding: 8px 15px;
        border-radius: 5px;
        text-align: center;
        position: sticky;
        bottom: 0;
        transition: background 0.3s;
    }
    body.korzinka-page .total-sum:hover {
        background: #ff6b6b;
    }
    body.korzinka-page #serverError {
        margin-top: 10px;
        color: #e74c3c;
        font-weight: 500;
        font-size: 0.9em;
    }
    @media (max-width: 1024px) {
        body.korzinka-page .container3 {
            flex-direction: column;
            padding: 5px;
            height: auto;
        }
        body.korzinka-page .leftPanel, body.korzinka-page .rightPanel {
            position: static;
            width: 100%;
            margin: 0 0 10px 0;
            height: auto;
        }
        body.korzinka-page .centerPanel {
            margin: 0;
        }
    }
    body.korzinka-page .orderTypeContainer {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    body.korzinka-page .orderTypeContainer label {
        display: flex;
        align-items: center;
        gap: 3px;
        margin: 0;
    }
    body.korzinka-page .srokAndOrderTypeRow {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 8px;
    }
    body.korzinka-page .qayerdaContainer {
        display: flex;
        align-items: center;
        margin-top: 5px;
    }
    body.korzinka-page .qayerdaContainer input[readonly] {
        flex: 1;
        margin-right: 5px;
    }
    body.korzinka-page #variantToolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        margin: 10px 0;
    }
    body.korzinka-page .variantViewSelectWrap {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    body.korzinka-page .variantViewSelectWrap select {
        width: auto;
        min-width: 110px;
        margin: 0;
        padding: 6px;
    }
    body.korzinka-page .variantFilters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        flex: 1;
    }
    body.korzinka-page .variantFilters select {
        width: auto;
        min-width: 150px;
        margin: 0;
        padding: 6px;
    }
    body.korzinka-page .variantQtyInput {
        width: 56px;
        text-align: center;
    }
    
    body.korzinka-page .variantGroupTitle {
        background: #a40000;
        color: #fff;
        font-weight: 700;
        padding: 8px 10px;
    }
    body.korzinka-page .variantEmpty {
        color: #aaa;
        text-align: center;
    }
    body.korzinka-page .variantsTable {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }
    body.korzinka-page .variantsTable th, body.korzinka-page .variantsTable td {
        padding: 8px 10px;
        vertical-align: middle;
    }
    body.korzinka-page .variantsTable tbody th:first-child {
        white-space: nowrap;
    }
    body.korzinka-page .variantsTable th:last-child, body.korzinka-page .variantsTable td:last-child {
        width: 80px;
        text-align: center;
    }
    body.korzinka-page .error-field {
        border-color: #e74c3c !important;
    }
    body.korzinka-page .switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 20px;
    }
    body.korzinka-page .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    body.korzinka-page .slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 20px;
    }
    body.korzinka-page .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    body.korzinka-page input:checked + .slider {
        background-color: #2ecc71;
    }
    body.korzinka-page input:checked + .slider:before {
        transform: translateX(20px);
    }
    body.korzinka-page #searchProductList {
        display: none;
        position: absolute;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        z-index: 999;
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 200px;
        overflow-y: auto;
        width: 100%;
    }
    body.korzinka-page #searchProductList li {
        padding: 6px 10px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
    }
    body.korzinka-page #searchProductList li:hover {
        background: #f2f2f2;
    }
    body.korzinka-page #clearSearchProduct {
        position: absolute;
        right: 10px;
        top: 6px;
        cursor: pointer;
        color: #e74c3c;
        font-weight: bold;
        font-size: 16px;
        display: none;
    }
body.korzinka-page .debt-box{
  background:#fff3f3;
  border:1px solid #ffb3b3;
  color:#a30000;
  border-radius:8px;
  padding:12px;
  margin-top:10px;
}
    @media (prefers-color-scheme: dark) {
        body.korzinka-page .container3 {
            background: #1a1a1a;
        }
        body.korzinka-page .debt-box{
    background:#5a2a2a;
    border:1px solid #ffb3b3;
    color:#ffb3b3;
  }
        body.korzinka-page .panel {
            background: #2a2a2a;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        body.korzinka-page .panelBlock {
            background: #2a2a2a;
        }
        body.korzinka-page .btn {
            background: #ff4d4d;
        }
        body.korzinka-page .btn:hover {
            background: #cc0000;
        }
        body.korzinka-page input, body.korzinka-page select {
            background: #333;
            border: 1px solid #555;
            color: #e0e0e0;
        }
        body.korzinka-page input[readonly] {
            background: #444;
        }
        body.korzinka-page .cart-item {
            background: #333;
            border: 1px solid #555;
        }
        body.korzinka-page .remove-btn {
            background: #ff4d4d;
        }
        body.korzinka-page .drop-zone {
            border: 2px dashed #777;
            color: #bbb;
        }
        body.korzinka-page .drop-zone.dragover {
            background: #444;
        }
        body.korzinka-page .remove-preview-btn {
            background: rgba(0,0,0,0.7);
            color: #ff4d4d;
        }
        body.korzinka-page .result-qarz {
            color: #e0e0e0;
        }
        body.korzinka-page .total-sum {
            background: #ff4d4d;
        }
        body.korzinka-page .total-sum:hover {
            background: #cc0000;
        }
        body.korzinka-page #serverError {
            color: #ff6b6b;
        }
        body.korzinka-page .orderTypeContainer label {
            color: #e0e0e0;
        }
        body.korzinka-page .qayerdaContainer input[readonly] {
            background: #444;
        }
        body.korzinka-page .error-field {
            border-color: #ff6b6b !important;
        }
        body.korzinka-page .slider {
            background-color: #555;
        }
        body.korzinka-page input:checked + .slider {
            background-color: #27ae60;
        }
        body.korzinka-page #searchProductList {
            background: #2a2a2a;
            border: 1px solid #555;
        }
        body.korzinka-page #searchProductList li {
            border-bottom: 1px solid #555;
            color: #e0e0e0;
        }
        body.korzinka-page #searchProductList li:hover {
            background: #444;
        }
        body.korzinka-page #clearSearchProduct {
            color: #ff6b6b;
        }
    }

body.order-list-page .section-note{
  margin: -6px 0 12px 0;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}
        body.order-list-page .fullscreen-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 6px 14px;
            font-size: 14px;
            cursor: pointer;
            background-color: #4CAF50;
            color: #fff;
            border: none;
            border-radius: 4px;
            outline: none;
        }
        body.order-list-page .fullscreen-btn:hover {
            background-color: #45a049;
        }
        body.order-list-page .action-buttons button {
            margin: 5px;
            padding: 5px 10px;
            font-size: 14px;
            cursor: pointer;
        }
        body.order-list-page .action-buttons form {
            display: inline;
        }
        body.order-list-page .error-message {
            color: red;
            font-weight: bold;
            text-align: center;
        }
        body.order-list-page .toggle-controls {
            text-align: center;
            margin: 20px 0;
            padding: 10px;
            border: 2px dashed #999;
            border-radius: 5px;
        }
        body.order-list-page .toggle-controls label {
            margin-right: 15px;
        }
        body.order-list-page .hidden-col {
            display: none !important;
        }
        body.order-list-page .countdown {
            font-weight: bold;
            display: inline-block;
            padding: 4px 6px;
            border-radius: 4px;
        }
        body.order-list-page .expired-blink {
            color: #fff;
            animation: blink 1s infinite;
        }
        @keyframes blink {
            0%   { background-color: #9F342D; }
            50%  { background-color: #000;    }
            100% { background-color: #9F342D; }
        }
        body.order-list-page .pct-121plus { background-color: #024792; color: #fff; }
        body.order-list-page .pct-111-120 { background-color: #1C6179; color: #fff; }
        body.order-list-page .pct-101-110 { background-color: #337863; color: #fff; }
        body.order-list-page .pct-96-100  { background-color: #498F4E; color: #fff; }
        body.order-list-page .pct-91-95   { background-color: #5CA23B; color: #fff; }
        body.order-list-page .pct-86-90   { background-color: #7EB535; }
        body.order-list-page .pct-81-85   { background-color: #9DBA47; }
        body.order-list-page .pct-76-80   { background-color: #BFBE5A; }
        body.order-list-page .pct-71-75   { background-color: #E8C471; }
        body.order-list-page .pct-66-70   { background-color: #E7B26D; }
        body.order-list-page .pct-61-65   { background-color: #D4925D; }
        body.order-list-page .pct-56-60   { background-color: #C2714C; }
        body.order-list-page .pct-51-55   { background-color: #B1543D; }
        body.order-list-page .pct-0-50    { background-color: #9F342D; color: #fff; }
        body.order-list-page .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }
        body.order-list-page .pagination a {
            padding: 8px 16px;
            text-decoration: none;
            color: #4CAF50;
            margin: 0 5px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        body.order-list-page .pagination a:hover {
            background-color: #ddd;
        }
        body.order-list-page .pagination .active {
            background-color: #4CAF50;
            color: white;
        }

body.oyliklar-page .toggle-container {
    display: none;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #ddd;
}
body.oyliklar-page .toggle-btn {
    cursor: pointer;
    padding: 5px 8px;
    color: #fff;
    background: #555;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 5px;
}
body.oyliklar-page .toggle-btn:hover {
    background: #333;
}
body.oyliklar-page .date-select, body.oyliklar-page .month-select {
    border: 1px solid #ccc;
    display: inline-block;
    margin-left: 20px;
    padding: 5px;
    background: #f9f9f9;
    cursor: pointer;
    position: relative;
}
body.oyliklar-page .select-items {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 100;
    margin-top: 5px;
    width: 150px;
}
body.oyliklar-page .select-items a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
}
body.oyliklar-page .select-items a:hover {
    background: #f0f0f0;
}
body.oyliklar-page .select-items a.selected {
    background: #d0f0d0;
}
body.oyliklar-page td.clickable:hover {
    background: #f8f8d0;
    cursor: pointer;
}
body.oyliklar-page .shtraf-details-container {
    display: none;
    background: #fafafa;
    border: 1px solid #ccc;
    margin: 5px 0;
    padding: 5px 10px;
}
body.oyliklar-page .avans-details-container {
    display: none;
    background: #fafafa;
    border: 1px solid #ccc;
    margin: 5px 0;
    padding: 5px 10px;
}
body.oyliklar-page .shtraf-details-container h4, body.oyliklar-page .avans-details-container h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    body.oyliklar-page .toggle-container {
        background: #2a2a2a;
        border: 1px solid #555;
    }
    body.oyliklar-page .toggle-btn {
        background: #666;
    }
    body.oyliklar-page .toggle-btn:hover {
        background: #444;
    }
    body.oyliklar-page .date-select, body.oyliklar-page .month-select {
        background: #333;
        border: 1px solid #555;
        color: #e0e0e0;
    }
    body.oyliklar-page .select-items {
        background: #2a2a2a;
        border: 1px solid #555;
    }
    body.oyliklar-page .select-items a {
        color: #e0e0e0;
    }
    body.oyliklar-page .select-items a:hover {
        background: #444;
    }
    body.oyliklar-page .select-items a.selected {
        background: #2a4a2a;
    }
    body.oyliklar-page td.clickable:hover {
        background: #4a4a2a;
    }
    body.oyliklar-page .shtraf-details-container {
        background: #333;
        border: 1px solid #555;
    }
    body.oyliklar-page .avans-details-container {
        background: #333;
        border: 1px solid #555;
    }
    body.oyliklar-page .shtraf-details-container h4, body.oyliklar-page .avans-details-container h4 {
        color: #e0e0e0;
    }
}

body.pul-tekshirish-page .debt-toolbar {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: end;
            column-gap: 16px;
            row-gap: 8px;
            margin: 10px 0 14px;
        }

        body.pul-tekshirish-page .debt-filter-form {
            display: grid;
            gap: 8px;
            min-width: 0;
            max-width: 100%;
            padding: 10px 12px;
            border-radius: 6px;
        }

        body.pul-tekshirish-page .debt-download-action {
            grid-column: 2;
            justify-self: end;
            align-self: end;
            white-space: nowrap;
        }

        body.pul-tekshirish-page .debt-filter-row {
            display: grid;
            grid-template-columns: 180px minmax(0, 1fr);
            gap: 8px;
            align-items: start;
        }

        body.pul-tekshirish-page .debt-filter-title {
            font-weight: 700;
            line-height: 24px;
            white-space: nowrap;
        }

        body.pul-tekshirish-page .debt-filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            min-width: 0;
        }

        body.pul-tekshirish-page .debt-filter-option {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            line-height: 24px;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        body.pul-tekshirish-page .debt-filter-option input {
            margin: 0;
        }

        body.pul-tekshirish-page .selected-total-form {
            align-items: center;
            gap: 10px;
            font-weight: bold;
            margin: 6px 0;
        }

        body.pul-tekshirish-page .selected-total-form .action-button {
            padding: 7px 12px;
        }

        @media (max-width: 700px) {
            body.pul-tekshirish-page .debt-toolbar {
                grid-template-columns: 1fr;
            }

            body.pul-tekshirish-page .debt-download-action {
                grid-column: 1;
                justify-self: end;
            }

            body.pul-tekshirish-page .debt-filter-row {
                grid-template-columns: 1fr;
                gap: 4px;
            }
        }

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
    
    body.vedemost-page {
      --primary-color: #e74c3c;
      --primary-dark: #c0392b;
      --secondary-color: #ff7675;
      --accent-color: #ff7f50;
      --bg-light: #f8f9fa;
      --bg-dark: #343a40;
      --text-light: #f8f9fa;
      --text-dark: #212529;
      --success-color: #2ecc71;
      --warning-color: #f1c40f;
      --danger-color: #e74c3c;
      --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      --hover-shadow: 0 15px 30px rgba(231, 76, 60, 0.2);
      --border-radius: 12px;
    }
    
    body.vedemost-page * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body.vedemost-page {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(135deg, #f5f7fa 0%, #fbe9e7 100%);
      margin: 0;
      padding: 0;
      color: var(--text-dark);
      min-height: 100vh;
    }
    
    body.vedemost-page .container {
      width: 100%;
      max-width: 820px;
      margin: 0 auto;
      background: #fff;
      padding: 24px;
      box-sizing: border-box;
      min-height: 100vh;
      box-shadow: var(--card-shadow);
      border-radius: 0;
    }
    
    body.vedemost-page h1 {
      margin-top: 0;
      font-size: 32px;
      text-align: center;
      color: var(--primary-color);
      font-weight: 600;
      margin-bottom: 20px;
      position: relative;
      padding-bottom: 10px;
    }
    
    body.vedemost-page h1:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 3px;
      background: var(--accent-color);
      border-radius: 50px;
    }
    
    body.vedemost-page .nav-links {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin: 20px 0;
      justify-content: center;
    }
    
    body.vedemost-page .nav-links a {
      text-decoration: none;
      color: var(--text-light);
      background: var(--primary-color);
      padding: 12px 20px;
      border-radius: var(--border-radius);
      font-size: 16px;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
    }
    
    body.vedemost-page .nav-links a:hover {
      background: var(--primary-dark);
      transform: translateY(-3px);
      box-shadow: var(--hover-shadow);
    }
    
    body.vedemost-page .nav-links a:active {
      transform: translateY(0);
    }
    
    body.vedemost-page .section-title {
      margin-top: 30px;
      font-size: 22px;
      font-weight: 600;
      color: var(--primary-dark);
      position: relative;
      display: inline-block;
      margin-bottom: 15px;
    }
    
    body.vedemost-page .section-title:after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--secondary-color);
      border-radius: 50px;
    }
    
    body.vedemost-page .page-info {
      background: var(--bg-light);
      padding: 10px 15px;
      border-radius: var(--border-radius);
      display: inline-block;
      font-size: 15px;
      margin-bottom: 15px;
      color: var(--primary-dark);
      font-weight: 500;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    
    body.vedemost-page .pagination {
      margin: 20px 0;
      text-align: center;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }
    
    body.vedemost-page .pagination a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 16px;
      border-radius: var(--border-radius);
      text-decoration: none;
      color: var(--primary-color);
      font-size: 15px;
      font-weight: 500;
      background: white;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      min-width: 40px;
    }
    
    body.vedemost-page .pagination a.active {
      background: var(--primary-color);
      color: white;
      box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
    }
    
    body.vedemost-page .pagination a:hover:not(.active) {
      background: #fff1f0;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    body.vedemost-page .pagination a:active {
      transform: translateY(0);
    }
    
    body.vedemost-page .date-card {
      background: white;
      border-radius: var(--border-radius);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
      margin-bottom: 15px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    body.vedemost-page .date-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }
    
    body.vedemost-page .date-header {
      display: flex;
      align-items: center;
    }
    
    body.vedemost-page .date-col {
      padding: 15px;
      background: var(--primary-color);
      color: white;
      width: 120px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 100%;
    }
    
    body.vedemost-page .date-col .day {
      font-size: 32px;
      font-weight: 700;
      line-height: 1;
    }
    
    body.vedemost-page .date-col .month {
      font-size: 16px;
      font-weight: 500;
      opacity: 0.9;
    }
    
    body.vedemost-page .date-col .year {
      font-size: 14px;
      opacity: 0.7;
    }
    
    body.vedemost-page .count-col {
      flex-grow: 1;
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    body.vedemost-page .count-col .count {
      font-size: 18px;
      font-weight: 500;
      color: var(--text-dark);
    }
    
    body.vedemost-page .count-col .count-label {
      font-size: 13px;
      color: #6c757d;
    }
    
    body.vedemost-page .count-col .view-btn {
      margin-left: auto;
      background: var(--secondary-color);
      color: white;
      border: none;
      border-radius: var(--border-radius);
      padding: 8px 15px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 4px rgba(255, 118, 117, 0.2);
    }
    
    body.vedemost-page .count-col .view-btn:hover {
      background: var(--primary-dark);
      box-shadow: 0 4px 8px rgba(255, 118, 117, 0.3);
    }
    
    body.vedemost-page .detail-section {
      margin-top: 15px;
      background: white;
      border-radius: var(--border-radius);
      padding: 20px;
      box-shadow: var(--card-shadow);
      animation: fadeIn 0.5s ease;
      display: none;
    }
    
    body.vedemost-page .detail-date {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid #e9ecef;
    }
    
    body.vedemost-page .detail-date h3 {
      font-size: 22px;
      font-weight: 600;
      color: var(--primary-dark);
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    body.vedemost-page .detail-date .back-link {
      color: var(--primary-color);
      text-decoration: none;
      font-size: 15px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    body.vedemost-page .detail-date .back-link:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }
    
    body.vedemost-page .employee-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
    }
    
    body.vedemost-page .employee-card {
      background: white;
      border-radius: var(--border-radius);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      border: 1px solid #e9ecef;
    }
    
    body.vedemost-page .employee-header {
      background: var(--secondary-color);
      color: white;
      padding: 12px 15px;
      font-weight: 500;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    body.vedemost-page .employee-body {
      padding: 15px;
    }
    
    body.vedemost-page .time-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid #f1f3f9;
    }
    
    body.vedemost-page .time-row:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }
    
    body.vedemost-page .time-label {
      color: #6c757d;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    body.vedemost-page .time-value {
      font-weight: 500;
      color: var(--text-dark);
      font-size: 15px;
    }
    
    body.vedemost-page .time-value.arrived {
      color: var(--success-color);
    }
    
    body.vedemost-page .time-value.left {
      color: var(--accent-color);
    }
    
    body.vedemost-page .empty-state {
      text-align: center;
      padding: 30px;
      background: #f8f9fa;
      border-radius: var(--border-radius);
      color: #6c757d;
      font-size: 16px;
      margin-top: 20px;
    }
    
    body.vedemost-page .empty-state i {
      font-size: 40px;
      margin-bottom: 15px;
      display: block;
      color: #adb5bd;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    body.vedemost-page .animate-fade-in {
      animation: fadeIn 0.5s ease forwards;
    }
    
    @media (max-width: 768px) {
      body.vedemost-page .container {
        padding: 16px;
      }
      
      body.vedemost-page h1 {
        font-size: 24px;
      }
      
      body.vedemost-page .nav-links a {
        padding: 10px 15px;
        font-size: 14px;
      }
      
      body.vedemost-page .section-title {
        font-size: 18px;
      }
      
      body.vedemost-page .date-col {
        width: 90px;
        padding: 10px;
      }
      
      body.vedemost-page .date-col .day {
        font-size: 24px;
      }
      
      body.vedemost-page .date-col .month {
        font-size: 14px;
      }
      
      body.vedemost-page .count-col {
        padding: 10px 15px;
      }
      
      body.vedemost-page .count-col .count {
        font-size: 16px;
      }
      
      body.vedemost-page .employee-cards {
        grid-template-columns: 1fr;
      }
    }
    
    @media (max-width: 480px) {
      body.vedemost-page .container {
        padding: 12px;
      }
      
      body.vedemost-page .nav-links {
        gap: 10px;
      }
      
      body.vedemost-page .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
      }
      
      body.vedemost-page .date-header {
        flex-direction: column;
      }
      
      body.vedemost-page .date-col {
        width: 100%;
        padding: 10px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
      }
      
      body.vedemost-page .date-col .day {
        font-size: 22px;
      }
      
      body.vedemost-page .count-col {
        width: 100%;
        padding: 15px;
      }
      
      body.vedemost-page .count-col .view-btn {
        margin-top: 10px;
      }
    }

body.xodimlar-add-page label { display:block; margin:8px 0; }
        body.xodimlar-add-page input[type="text"], body.xodimlar-add-page input[type="number"], body.xodimlar-add-page textarea {
            padding:6px;
            width:300px;
        }
        body.xodimlar-add-page .inline-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
        body.xodimlar-add-page .inline-row input[type="number"] { width:90px; }
        body.xodimlar-add-page .ish-rejimi-table {
            border-collapse:collapse; 
            margin:10px 0;
        }
        body.xodimlar-add-page .ish-rejimi-table th, body.xodimlar-add-page .ish-rejimi-table td {
            border:1px solid #ccc;
            padding:6px;
            text-align:center;
        }
        body.xodimlar-add-page button {
            margin-top:15px;
            padding:8px 20px;
            background:#27ae60;
            color:#fff;
            border:none;
            border-radius:4px;
            cursor:pointer;
            font-size:14px;
        }
        body.xodimlar-add-page button:hover {
            background:#219150;
        }
        body.xodimlar-add-page .radio-group { margin:8px 0; }

body.xodimlar-edit-page label { display:block; margin:8px 0; }
        body.xodimlar-edit-page input[type="text"], body.xodimlar-edit-page input[type="number"], body.xodimlar-edit-page textarea { padding:6px; width:320px; margin-top:5px; }
        body.xodimlar-edit-page button { padding:8px 20px; background:#27ae60; color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:14px; margin-top:10px; }
        body.xodimlar-edit-page button:hover { background:#219150; }
        body.xodimlar-edit-page .ishrejim-table { border-collapse:collapse; margin:8px 0; }
        body.xodimlar-edit-page .ishrejim-table th, body.xodimlar-edit-page .ishrejim-table td { border:1px solid #ccc; padding:6px; text-align:center; }
        body.xodimlar-edit-page hr { margin-top:20px; margin-bottom:20px; }
        body.xodimlar-edit-page .thumbs { display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
        body.xodimlar-edit-page .thumb { border:1px solid #ddd; padding:6px; border-radius:4px; background:#fafafa; width:160px; }
        body.xodimlar-edit-page .thumb img { max-width:100%; height:auto; display:block; margin-bottom:6px; }
        body.xodimlar-edit-page .thumb label { font-size:12px; display:flex; align-items:center; gap:6px; margin:0; }
        body.xodimlar-edit-page .note { color:#666; font-size:12px; }

.moved-inline-a58e8b24d9{flex:1;min-width:260px;}

.moved-inline-d60e50b0d3{margin:0 0 8px 0;}

.moved-inline-8a77e5a311{margin-top:8px;}

.moved-inline-01f4942aa7{margin:16px 0 8px 0;}

.moved-inline-56f4356299{margin-top:12px;}

.moved-inline-38900bae05{max-height:50vh;}

.moved-inline-bff3d12c90{font-weight:bold;}

.moved-inline-d9f149756a{margin-top:40px;}

.moved-inline-737c9f566f{color:red; font-weight:bold; text-align:center;}

.moved-inline-3d5bee48ca{margin:10px 0 15px;}

.moved-inline-0e0d19e4c7{padding:6px 12px; font-size:14px; cursor:pointer;}

.moved-inline-2a34c015b0{display:none; flex-wrap:wrap; gap:20px; align-items:flex-start; margin-bottom:20px;}

.moved-inline-97445a8d93{flex:1;}

.moved-inline-6b99de8b69{display:none;}

.moved-inline-cb728509ed{margin-left:6px; cursor:pointer;}

.moved-inline-3eaa625412{font-size:14px; line-height:1.8;}

.moved-inline-78fa54ea43{margin-left:10px;}

.moved-inline-2a9295c304{cursor:default;}

.moved-inline-8f93fd3a8b{margin:0 6px;}

.moved-inline-7e9d3e76c3{padding: 6px 15px; font-size: 14px; cursor: pointer; margin-left:20px;}

.moved-inline-5e444415f1{padding: 6px 15px; font-size: 14px; cursor:pointer; margin-left:10px;}

.moved-inline-0737898d2b{text-align:center; margin-bottom:15px;}

.moved-inline-55cec09fd9{margin-top:5px;}

.moved-inline-90ad96210e{color:red;}

.moved-inline-1fcdcb7d3c{background-color: #ff4d4d; color: white; border: none; padding: 5px 10px; cursor: pointer;}

.moved-inline-7169ec5266{background-color:#e0e7eb;}

.moved-inline-54c2afb7ba{text-align:right;}

.moved-inline-8d5edb4672{width:100%; height:500px; margin-top:50px; display:none;}

.moved-inline-8fd988a7df{width:24px;height:24px;}

.moved-inline-0205bbb676{color:#e53935;font-weight:bold;}

.moved-inline-b87ca3241d{display:flex;align-items:center;gap:10px;}

.moved-inline-08f01b7cbb{width:36px;height:36px;border-radius:50%; border:2px solid #e5e7eb;display:flex; align-items:center;justify-content:center; box-sizing:border-box; padding:0 2px; font-size:7px; line-height:1; white-space:nowrap; text-align:center; text-transform:uppercase; color:#6b7280;background:#f3f4f6; overflow:hidden;}

.moved-inline-b5eee22356{width:100px;height:100px;border-radius:50%; border:2px solid #e5e7eb;display:flex; align-items:center;justify-content:center; font-size:10px;text-transform:uppercase; color:#6b7280;background:#f3f4f6; margin:6px auto 10px;}

.moved-inline-9e40de2341{margin:6px 0 4px;}

.moved-inline-df671843ff{margin:0 0 8px;}

.moved-inline-dec4275e88{width:100%;border-collapse:collapse;margin:0;}

.moved-inline-18a1527442{display:flex;flex-wrap:wrap;gap:10px;}

.moved-inline-675418994e{flex:1;min-width:200px;background:#f5f5f5;border:1px solid #ccc;border-radius:4px;padding:10px;}

.moved-inline-561dee1173{margin:0;text-align:center;}

.moved-inline-05232b3ba6{margin:5px 0;}

.moved-inline-3d24228d93{border:1px solid #ddd;padding:5px;margin-bottom:5px;background:#fff;border-radius:4px;}

.moved-inline-b393da4633{font-size:12px;color:#666;}

.moved-inline-4389825999{font-size:12px;color:#777;margin:0;}

.moved-inline-6a010f77d4{margin-top:25px;}

.moved-inline-41d7d7e25b{padding:0;}

.moved-inline-5db4a70bab{color:#666;}

.moved-inline-8ab184b79a{font-family:Arial;padding:24px;background:#fff5f5;color:#333;}

.moved-inline-ae8a11e4d9{color:#b10000;margin-top:0;}

.moved-inline-550ccde004{color:#555;}

.moved-inline-601dcf9bfe{display:inline-block;padding:10px 14px;background:#b10000;color:#fff;text-decoration:none;border-radius:6px;}

.moved-inline-31c46edb27{font-family:Arial;padding:24px;background:#f6ffed;color:#333;}

.moved-inline-6f156798d2{color:#27ae60;margin-top:0;}

.moved-inline-40f0f894bc{font-family:Arial;padding:24px;background:#f7f9fc;color:#333;}

.moved-inline-aa8d5e159d{color:#2c3e50;margin-top:0;}

.moved-inline-2f6945524c{padding:8px;font-size:16px;width:200px;margin-top:8px;}

.moved-inline-ce009b7e36{padding:8px 16px;font-size:16px;margin-left:10px;background:#27ae60;color:#fff;border:none;border-radius:4px;cursor:pointer;}

.moved-inline-8d1fc20f20{display:none; background: #ffe2e2; color: #b10000;}

.moved-inline-9cdf81d40c{color:green;}

.moved-inline-d1c861a985{display:flex; gap:10px; flex-wrap:wrap;}

.moved-inline-5af557a50a{min-width:220px;}

.moved-inline-cdf035a93d{flex:1; min-width:220px;}

.moved-inline-bcce8b88d2{width:50px;}

.moved-inline-fb2f3da1a5{width:100%; margin-top:5px;}

.moved-inline-42e4acca13{display:flex; align-items:center; gap:8px;}

.moved-inline-eed0f8fb89{font-weight:600;}

.moved-inline-b121b66e83{padding:4px 10px;}

.moved-inline-17ab9ecd8b{width:100%; box-sizing:border-box; margin-top:3px;}

.moved-inline-2320fccfbf{display:flex; align-items:center; gap:8px; margin-top:10px; margin-bottom:12px;}

.moved-inline-f73a22fb61{margin-right:20px;}

.moved-inline-e49ce8ed62{white-space:nowrap; margin-right:5px;}

.moved-inline-a733879e59{margin-top:5px; display:none;}

.moved-inline-761d3addb2{margin-bottom:10px;}

.moved-inline-688de3084b{margin-bottom:15px;}

.moved-inline-07ebdd03d7{width:100%; padding:4px; margin-bottom:5px;}

.moved-inline-484aac6215{width:100%; margin-bottom:8px;}

.moved-inline-9813a0dd21{margin-left:5px;}

.moved-inline-bdddd761e6{margin-left:5px; font-size:0.8em;}

.moved-inline-e853a260c4{position:relative; margin-bottom:10px;}

.moved-inline-4f8aa9577d{width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;}

.moved-inline-8db0c822b0{text-align:center; margin-top:10px;}

.moved-inline-5ee35efb2c{display:none; max-width:150px; border-radius:5px;}

.moved-inline-8312b7e8f8{font-weight:500; margin-top:5px;}

.moved-inline-5e820eaa01{flex:1; overflow:auto;}

.moved-inline-d2c171b18b{margin-top:10px;}

.moved-inline-c99edcc064{color: green; font-size: 18px;}

.moved-inline-ebd2c73038{font-size: 18px;}

.moved-inline-d820091d24{color: blue;}

.moved-inline-91c5e718d9{color: green;}

.moved-inline-64fec1ef17{margin:0; padding:0 0 0 15px;}

.moved-inline-98327af297{text-align:right; font-weight:bold;}

.moved-inline-cbe61b9395{margin:10px 20px; padding:10px; border-radius:6px;}

.moved-inline-cccfa4560d{display:inline;}

.moved-inline-bc1a4ae11c{color:red; font-weight:bold;}

.moved-inline-6be0d8ba2c{text-align:left;}

.moved-inline-465bfea3ed{width:120px;}

.moved-inline-28c0f6ec6e{width:160px;}

.moved-inline-726b6ddb04{margin-top:10px; font-size:16px; font-weight:bold;}

.moved-inline-6980d4121b{display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:1000; align-items:center; justify-content:center;}

.moved-inline-668d777401{background:#fff; padding:20px; border-radius:8px; max-width:80%; max-height:90%; overflow:auto;}

.moved-inline-55f7bb3509{float:right; font-size:20px; border:none; background:transparent; cursor:pointer;}

.moved-inline-27aeb61711{max-width:100%;}

.moved-inline-ece3468dc7{color:#000;}

.moved-inline-a16ac60608{margin: 0 5px;}
