/* KSeF Button Component Styles */

.ksef-toolbar-btn-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.ksef-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    min-height: 36px;
    padding: 7px 12px;

    background: #ffffff;
    border: 1px solid #d7dee7;
    border-radius: 8px;

    color: #111827;
    font: inherit;
    text-align: left;
    cursor: pointer;

    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ksef-toolbar-btn:hover {
    background: #f8fafc;
    border-color: #8fd3ff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.ksef-toolbar-btn:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.ksef-toolbar-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 12px;
    width: 14px;
    flex: 0 0 auto;
}

.ksef-toolbar-btn__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.ksef-toolbar-btn__title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.ksef-toolbar-btn__subtitle {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
}

.ksef-toolbar-btn__tooltip {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;

    padding: 4px 7px;
    background: #111827;
    color: #ffffff;
    font-size: 10px;
    line-height: 1.2;
    border-radius: 4px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.ksef-toolbar-btn-wrapper:hover .ksef-toolbar-btn__tooltip {
    opacity: 1;
}
