/* Toolkit Mobile Quick Create FAB */
#toolkit-mobile-fab {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 9999;
}

#toolkit-mobile-fab button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2563ea;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 234, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#toolkit-quick-create-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    scale: 0.95;
    border-radius: 20px;
    box-shadow: 0px 0px 100px 100px #0000009c;


    /* Animation state hidden by default, handled by JS but base helpers here */
    opacity: 0;
}

#toolkit-quick-create-modal h3 {
    margin: 0;
    font-weight: bold;
    color: #333;
}

#toolkit-quick-create-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    padding: 10px;
}

.toolkit-quick-action-item {
    margin-bottom: 20px;
}

.toolkit-quick-action-link {
    display: block;
    padding: 20px 10px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.toolkit-quick-action-icon {
    margin-bottom: 10px;
}

.toolkit-quick-action-icon i {
    font-size: 24px;
    color: #2563ea;
}

.toolkit-quick-action-text {
    font-weight: 500;
    font-size: 14px;
}

/* Hide Adjustment in Estimates and Invoices creation/edit */
tr:has(input[name="adjustment"]) {
    display: none !important;
}

/* Image Popup */
.toolkit-image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    /* Above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toolkit-image-popup.active {
    opacity: 1;
    pointer-events: all;
}

.toolkit-image-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.toolkit-image-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toolkit-image-popup.active .toolkit-image-popup-content {
    transform: scale(1);
}

.toolkit-image-wrapper {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.toolkit-image-popup-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

.toolkit-image-popup-actions {
    position: absolute;
    top: -50px;
    right: 0;
    display: flex;
    gap: 15px;
}

.toolkit-image-popup-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
}

.toolkit-image-popup-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.toolkit-image-popup-btn i {
    font-size: 18px;
}

body.toolkit-popup-open {
    overflow: hidden;
}

.bootstrap-select.dropup .dropdown-menu {
    margin: 0 !important;
}

/* Hide Due Date in Client View */
.invoice-html-duedate {
    display: none !important;
}