/* desktop-demo.css
 * Lokasi: public/assets/app/desktop-demo.css
 * Di-load setelah CSS theme ExtJS di app/Views/spa/index.php
 *
 * CSS minimal supaya elemen desktop (html, body, viewport) mengisi
 * penuh layar browser dan wallpaper punya warna dasar yang layak
 * meski belum ada gambar wallpaper kustom.
 */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Warna dasar wallpaper (dipakai kalau getWallpapers() dikosongkan) */
.x-desktop {
    background-color: #2c3e50;
}

/* Restore default ExtJS sprite icons untuk window header tools */
.x-window .x-tool {
    background-image: url('../ext/build/classic/theme-triton/resources/images/tools/tool-sprites.png') !important;
    background-repeat: no-repeat !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 16px !important;
    font-style: normal !important;
    font-weight: normal !important;
}

.x-window .x-tool-close:before,
.x-window .x-tool-minimize:before,
.x-window .x-tool-maximize:before,
.x-window .x-tool-restore:before,
.x-window .x-tool-plus:before {
    content: none !important;
    font-family: inherit !important;
}

.x-window .x-tool-close { background-position: 0 0 !important; }
.x-window .x-tool-minimize { background-position: 0 -16px !important; }
.x-window .x-tool-maximize { background-position: 0 -32px !important; }
.x-window .x-tool-restore { background-position: 0 -48px !important; }
.x-window .x-tool-plus { background-position: 0 -256px !important; }

/* Override FontAwesome icon pada clear-trigger agar tidak menumpuk */
/* .my-custom-search-field .x-form-clear-trigger:before, */
.x-form-clear-trigger:before,
.x-form-trigger-default:before {
    content: none !important;
}

/* Seragamkan tinggi form field di window desktop */
.x-window .x-form-field {
    min-height: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.x-window .x-form-field.x-form-textarea {
    min-height: 60px !important;
    height: auto !important;
    line-height: normal !important;
}

.dlgExportClipboard .x-form-field.x-form-textarea {
    min-height: 100% !important;
}

.x-window .x-field {
    margin-bottom: 8px !important;
}

.x-window .x-form-item-label {
    line-height: 24px !important;
    height: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.x-window .x-form-item-body {
    min-height: 24px !important;
    height: auto !important;
}

/* Pastikan numberfield spinner tidak menambah tinggi */
.x-window .x-field-number .x-form-spinner {
    top: 2px !important;
    height: 20px !important;
}

/* Compact clock di taskbar (kanan) */
.my-taskbar-clock {
    padding: 0 10px !important;
    text-align: center !important;
    line-height: 1.1 !important;
    color: #000 !important;
    cursor: default !important;
    user-select: none !important;
    min-width: 80px !important;
}

.my-taskbar-clock .my-clock-time {
    font-size: 11px !important;
    font-weight: bold !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
}

.my-taskbar-clock .my-clock-date {
    font-size: 9px !important;
    opacity: 0.85 !important;
    white-space: nowrap !important;
}

/* NULL placeholder & format error indicator */
.null-placeholder {
    font-style: italic;
    color: #999;
}
.cell-format-error {
    position: relative;
    padding-right: 14px;
}
.cell-format-error .error-triangle {
    position: absolute;
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    color: #e74c3c;
    font-size: 10px;
    line-height: 1;
}

/* Ticket combobox dropdown visibility */
.ticketformwindow .x-boundlist-item {
    color: #000 !important;
}

.ticketformwindow .x-boundlist-item:hover,
.ticketformwindow .x-boundlist-item.x-boundlist-selected {
    color: #fff !important;
    background-color: #5fa2dd !important;
}

/* About window styling */
#about-win .x-window-body {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

#about-win h3 {
    font-size: 16px !important;
    font-weight: bold !important;
    margin: 0 0 8px 0 !important;
}

#about-win h4 {
    font-size: 13px !important;
    font-weight: bold !important;
    margin: 12px 0 6px 0 !important;
}

#about-win p {
    margin: 4px 0 !important;
}

#about-win a {
    color: #5fa2dd !important;
    text-decoration: none !important;
}

#about-win a:hover {
    text-decoration: underline !important;
}

#about-win ul {
    margin: 4px 0 !important;
    padding-left: 20px !important;
}

#about-win li {
    margin: 2px 0 !important;
}
