/* 操作ガイドの赤枠オーバーレイ (task giip-1700 / S10・spec 9-1).

   New file. Every selector below starts with .zc-guide-, and every element that
   carries one is created by zc-guide.js at run time. A screen opened without
   ?zc_guide never gets one, so adding this stylesheet cannot change a single
   pixel of any existing screen (V20).

   WHY AN OVERLAY RATHER THAN AN OUTLINE ON THE TARGET. The existing ?hl=
   highlight paints table rows, which own no outline of their own. A guide
   points at buttons, tabs, menu items and inputs -- things that already have
   outline / box-shadow / overflow:hidden in the screens' own CSS. Painting them
   directly moves the layout or lets a parent clip the frame. An absolutely
   positioned box over the top depends on none of the target's CSS and changes
   none of it (rules/31_css_immutability_rule.md).

   This file is byte-identical between SMART ORDER and SMART STOCK (V21). */

.zc-guide-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 2147483000;   /* above the modals the guides point into */
    pointer-events: none;  /* the reader must be able to press what is framed */
}

.zc-guide-frame {
    position: absolute;
    border: 3px solid #E60012;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(230, 0, 18, .18);
    pointer-events: none;
}

.zc-guide-tip {
    position: absolute;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e4cfa4;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #0d0d0d;
    pointer-events: auto;  /* the close button has to be pressable */
}

.zc-guide-step {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #9a6a1d;
    background: #faf5ea;
    border: 1px solid #e4cfa4;
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.zc-guide-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.zc-guide-note {
    color: #555;
}

.zc-guide-close {
    display: block;
    margin: 8px 0 0 auto;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-family: inherit;
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
}

.zc-guide-close:hover {
    background: #f5f5f5;
}

@media (prefers-reduced-motion: reduce) {
    .zc-guide-frame,
    .zc-guide-tip {
        transition: none !important;
        animation: none !important;
    }
}
