/*
 * The organisation (組織) forms of mod_guild.js, laid out from the WLR client (aLogin.exe, image base 0x10000):
 *   guild          the 組織 page of the group form, TSe_TeamForm (ctor 0x283d98), 371 × 539, four sub pages
 *   guild-myauth   我的權限 (TTH_MYauthorityForm)      guild-setauth  權限開放 (TTH_setauthorityForm), 239 × 345 each
 *   guild-rules    修改規章 (TSe_ChangeDeclareForm, Form_EditRule_1), 347 × 415
 * Coordinates are the form's, as the constructors create the widgets; a text line at (x, y) is drawn with its 16 px
 * WLO Small line box at the same place (the original text drawer's cell, owner's screenshots). Pictures: assets/skin.
 * This file comes after forms_mod.css: the og- / oa- / or- classes replace its older gd- / gr- rules for these windows.
 */

/* ══ The form ═════════════════════════════════════════════════════════════════════════════════════════ */

/* The picture follows the sub page (0x287441): 資訊 Form_ArmyGrounpInfo_1, 成員 Form_ArmyGrounp_1, 徽章 Form_Emblem_1,
   留言 Form_OrgNotice; Btn_Close_s_1 (321, 24). */
#win-guild { --fw: 371px; --fh: 539px; --fbg: url(../assets/skin/white/Form_ArmyGrounpInfo_1.png); --cx: 321px; --cy: 24px; }
#win-guild[data-page=members] { --fbg: url(../assets/skin/white/Form_ArmyGrounp_1.png); }
#win-guild[data-page=emblem]  { --fbg: url(../assets/skin/white/Form_Emblem_1.png); }
#win-guild[data-page=notice]  { --fbg: url(../assets/skin/white/Form_OrgNotice.png); }

/* A page (and a card or row in it) is a corner at the form's (0, 0): its parts sit at form coordinates. */
#win-guild .og-page, #win-guild .og-card { left: 0; top: 0; width: 0; height: 0; pointer-events: none !important; }
#win-guild .og-card { position: absolute; }
#win-guild .og-page > *, #win-guild .og-card > * { position: absolute; pointer-events: auto; }
#win-guild .og-t { height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; pointer-events: none !important; }
/* a button the player may not use: its grey single picture */
#win-guild .sbtn:disabled { opacity: 1; background-position: 0 0; }

/* page tabs 66 × 21 at y 41, sub tabs 44 × 21 at y 65 (0x284024 / 0x284112); the current one pressed */
#win-guild .og-tab { top: 41px; --w: 66px; --h: 21px; }
#win-guild .og-tab-team     { left: 20px;  --img: url(../assets/skin/default/Btn_Team_1.png); }
#win-guild .og-tab-guild    { left: 85px;  --img: url(../assets/skin/default/Btn_ArmyGrounp_1.png); }
#win-guild .og-tab-instance { left: 150px; --img: url(../assets/skin/default/Btn_DupMis.png); }
#win-guild .og-sub { top: 65px; --w: 44px; --h: 21px; }
#win-guild .og-sub-info    { left: 26px;  --img: url(../assets/skin/default/Btn_ArmyGrounpinfo_1.png); }
#win-guild .og-sub-members { left: 70px;  --img: url(../assets/skin/default/Btn_ArmyGrounpHum_1.png); }
#win-guild .og-sub-emblem  { left: 114px; --img: url(../assets/skin/default/Btn_Emblem_1.png); }
#win-guild .og-sub-notice  { left: 158px; --img: url(../assets/skin/default/Btn_OrgNotice.png); }
#win-guild .og-close { left: 157px; top: 500px; }      /* Btn_Close_1 「[ESC]」 (0x285f2a) */

/* ══ 資訊 (paint 0x28c060) ════════════════════════════════════════════════════════════════════════════ */

/* the name in orange 0xFC00 at (35, 88) in a 150 × 16 box (one px lower: WLO Small draws a Big5 glyph 1 px higher) */
#win-guild .og-name { left: 35px; top: 89px; width: 150px; color: #ff8200; }
/* 組織人數 (110, 105) and the leader (210, 106) in the form's ink, black */
#win-guild .og-count  { left: 110px; top: 105px; color: #000000; }
#win-guild .og-leader { left: 210px; top: 106px; width: 120px; color: #000000; }
#win-guild .og-orgleader { left: 150px; top: 103px; width: 59px; height: 20px; background: url(../assets/skin/default/OrgLeader.png) 0 0 no-repeat; pointer-events: none !important; }
/* the insignia 24 × 24 in the white box (306, 94) */
#win-guild .og-insignia { left: 306px; top: 94px; width: 24px; height: 24px; image-rendering: pixelated; pointer-events: none !important; }
/* the rules memo (0x284349): (40, 150), 250 wide, white, 15 lines 20 px apart (the first line's baseline at 161) */
#win-guild .og-rules { left: 40px; top: 148px; width: 250px; height: 300px; overflow: hidden; color: #ffffff; }
#win-guild .og-rules > div { height: 20px; line-height: 20px; white-space: pre; overflow: hidden; }
#win-guild .og-up   { left: 312px; top: 148px; --img: url(../assets/skin/default/Btn_ArrowUp_1.png); --w: 17px; --h: 17px; }
#win-guild .og-down { left: 312px; top: 439px; --img: url(../assets/skin/default/Btn_ArrowDn_1.png); --w: 17px; --h: 17px; }
/* the thumb in the track (313, 169) 15 × 265; top and height set by the script */
#win-guild .og-thumb { left: 316px; width: 9px; pointer-events: none !important; }
#win-guild .og-dismiss  { left: 115px; top: 463px; --img: url(../assets/skin/default/Btn_dismiss_1.png);   --w: 61px; --h: 20px; }
#win-guild .og-editrule { left: 195px; top: 463px; --img: url(../assets/skin/default/Btn_edit_Rule_1.png); --w: 61px; --h: 20px; }
#win-guild .og-dismiss:disabled  { --img: url(../assets/skin/default/Btn_dismiss_gary_1.png); }
#win-guild .og-editrule:disabled { --img: url(../assets/skin/default/Btn_edit_Rule_gary_1.png); }

/* ══ 成員 (paint 0x28c748) ════════════════════════════════════════════════════════════════════════════ */

/* A card (the first; the others 65 px lower). The face box 32..91 × 91..150 clips a 70 × 70 canvas centred on (62, 119). */
#win-guild .og-facebox { left: 32px; top: 91px; width: 60px; height: 60px; overflow: hidden; pointer-events: none !important; }
#win-guild .og-face { position: absolute; left: -5px; top: -7px; width: 70px; height: 70px; image-rendering: pixelated; }
/* the name: TSe_Editor (94, 84) 90 × 40, 0x0841, bold */
#win-guild .og-mname { left: 99px; top: 96px; width: 85px; color: #080808; text-shadow: 1px 0 0 #080808; }
/* LV: Main_Word_Lv (204, 95), the Num_White3_1 digits 30 px on (234, 96) */
#win-guild .og-lv { left: 204px; top: 95px; width: 60px; height: 15px; background: url(../assets/skin/default/Main_Word_Lv.png) 0 0 no-repeat; pointer-events: none !important; }
#win-guild .og-lv .wl-digits { position: absolute; left: 30px; top: 1px; }
#win-guild .og-element { left: 278px; top: 95px; width: 25px; height: 25px; }
/* the VIP badge at (face x − 30, face y + 32 − its height) */
#win-guild .og-vip { left: 32px; top: 138px; width: 13px; height: 13px; pointer-events: none !important; }
/* 暱稱 (135, 117) and 職稱 (135, 135) values, 0x0841; Icon_OrgPosition 「職稱：」 (95, 131) over the picture's 「組織：」 */
#win-guild .og-nick { left: 139px; top: 116px; width: 126px; color: #080808; }
#win-guild .og-rank { left: 139px; top: 134px; width: 64px; color: #080808; }
#win-guild .og-pos { left: 95px; top: 131px; width: 44px; height: 18px; background: url(../assets/skin/default/Icon_OrgPosition.png) 0 0 no-repeat; pointer-events: none !important; }
/* 職業: Icon_Career (204, 129) and the job's icon (247, 132), its name as the hint */
#win-guild .og-career { left: 204px; top: 129px; width: 42px; height: 22px; background: url(../assets/skin/default/Icon_Career.png) 0 0 no-repeat; pointer-events: none !important; }
#win-guild .og-job { left: 247px; top: 132px; width: 16px; height: 16px; }
/* the status (273, 132): 線上 / 忙碌 / 掛網 / 離線 */
#win-guild .og-state { left: 273px; top: 132px; width: 32px; height: 17px; background: 0 0 no-repeat; }
#win-guild .og-state[data-state="0"] { background-image: url(../assets/skin/default/Icon_online_1.png); }
#win-guild .og-state[data-state="1"] { background-image: url(../assets/skin/default/Icon_busy_1.png); }
#win-guild .og-state[data-state="2"] { background-image: url(../assets/skin/default/Icon_inline_1.png); }
#win-guild .og-state[data-state="3"] { background-image: url(../assets/skin/default/icon_offline_1.png); }
/* the envelope (310, 95 + 66i; the script adds i), grey on an empty row */
#win-guild .og-mail, #win-guild .og-mail:hover, #win-guild .og-mail:active { left: 310px; --img: url(../assets/skin/default/icon_mail_1.png); --w: 20px; --h: 15px; background-position: 0 0; }
#win-guild .og-mail.empty { --img: url(../assets/skin/default/icon_mailGary_1.png); }
/* 勾選 (311, 129): btn_UnCheck_1 / btn_Check_1 */
#win-guild .og-check { left: 311px; top: 129px; --img: url(../assets/skin/default/btn_UnCheck_1.png); --w: 16px; --h: 16px; }
#win-guild .og-check.on { --img: url(../assets/skin/default/btn_Check_1.png); }
/* the pager: Btn_ArrowL_8 / R_8 (133 / 214, 414), the page in Num_MainInfo at y 418 (glyphs 11 px apart) */
#win-guild .og-prev { left: 133px; top: 414px; --img: url(../assets/skin/default/Btn_ArrowL_8.png); --w: 21px; --h: 21px; }
#win-guild .og-next { left: 214px; top: 414px; --img: url(../assets/skin/default/Btn_ArrowR_8.png); --w: 21px; --h: 21px; }
#win-guild .og-mpage { left: 0; top: 418px; width: 0; height: 10px; pointer-events: none !important; }
#win-guild .og-mpage .wl-digits { position: absolute; top: 0; }
/* the seven buttons 61 × 20 (0x28d97a) and their grey twins */
#win-guild .og-mail-all { left: 55px;  top: 438px; --img: url(../assets/skin/default/Btn_groupMail_1.png);    --w: 61px; --h: 20px; }
#win-guild .og-invite   { left: 120px; top: 438px; --img: url(../assets/skin/default/Btn_InviteJoin_1.png);   --w: 61px; --h: 20px; }
#win-guild .og-leave    { left: 185px; top: 438px; --img: url(../assets/skin/default/btn_exitgroup_1.png);    --w: 61px; --h: 20px; }
#win-guild .og-fire     { left: 250px; top: 438px; --img: url(../assets/skin/default/Btn_fireMember_1.png);   --w: 61px; --h: 20px; }
#win-guild .og-mine     { left: 55px;  top: 462px; --img: url(../assets/skin/default/Btn_myauthority_1.png);  --w: 61px; --h: 20px; }
#win-guild .og-setauth  { left: 120px; top: 462px; --img: url(../assets/skin/default/btn_setauthority_1.png); --w: 61px; --h: 20px; }
#win-guild .og-abdicate { left: 185px; top: 462px; --img: url(../assets/skin/default/Btn_Abdicate.png);       --w: 61px; --h: 20px; }
#win-guild .og-mail-all:disabled { --img: url(../assets/skin/default/Btn_groupMai_gary_1.png); }
#win-guild .og-invite:disabled   { --img: url(../assets/skin/default/Btn_InviteJoin_gary_1.png); }
#win-guild .og-leave:disabled    { --img: url(../assets/skin/default/btn_exitgroup_gary_1.png); }
#win-guild .og-fire:disabled     { --img: url(../assets/skin/default/Btn_fireMember_Gary_1.png); }
#win-guild .og-mine:disabled     { --img: url(../assets/skin/default/Btn_myauthority_gary_1.png); }
#win-guild .og-setauth:disabled  { --img: url(../assets/skin/default/btn_setauthority_gary_1.png); }
#win-guild .og-abdicate:disabled { --img: url(../assets/skin/default/Btn_Abdicate_Gray.png); }

/* ══ 徽章 (paint 0x28dd24) ════════════════════════════════════════════════════════════════════════════ */

/* the template strip: arrows (59 / 236, 105), five 24 × 24 thumbnails from (90, 103), 28 px apart (left by the script) */
#win-guild .og-em-left  { left: 59px;  top: 105px; --img: url(../assets/skin/default/Btn_ArrowL_8.png); --w: 21px; --h: 21px; }
#win-guild .og-em-right { left: 236px; top: 105px; --img: url(../assets/skin/default/Btn_ArrowR_8.png); --w: 21px; --h: 21px; }
#win-guild .og-em-thumb { top: 103px; width: 24px; height: 24px; image-rendering: pixelated; }
/* the preview in icon_portentFram_1 (270, 101) */
#win-guild .og-em-frame { left: 270px; top: 101px; width: 28px; height: 28px; background: url(../assets/skin/default/icon_portentFram_1.png) 0 0 no-repeat; pointer-events: none !important; }
#win-guild .og-em-preview { left: 272px; top: 103px; width: 24px; height: 24px; image-rendering: pixelated; pointer-events: none !important; }
/* 載入 / 儲存 / 上傳 44 × 20 */
#win-guild .og-em-load   { left: 112px; top: 133px; --img: url(../assets/skin/default/Btn_readFile_1.png); --w: 44px; --h: 20px; }
#win-guild .og-em-save   { left: 162px; top: 133px; --img: url(../assets/skin/default/Btn_saveFile_1.png); --w: 44px; --h: 20px; }
#win-guild .og-em-upload { left: 262px; top: 133px; --img: url(../assets/skin/default/Btn_Upload_1.png);   --w: 44px; --h: 20px; }
/* the grid: Icon_drafting_1 (59, 162) gives the lines, the cells are drawn 9 × 9 every 10 px from (62, 165) */
#win-guild .og-em-drafting { left: 59px; top: 162px; width: 247px; height: 247px; background: url(../assets/skin/default/Icon_drafting_1.png) 0 0 no-repeat; pointer-events: none !important; }
#win-guild .og-em-grid { left: 62px; top: 165px; width: 240px; height: 240px; image-rendering: pixelated; touch-action: none; }
/* the tools 27 × 27, the chosen one pressed */
#win-guild .og-em-pencil, #win-guild .og-em-line, #win-guild .og-em-rect, #win-guild .og-em-ellipse,
#win-guild .og-em-fill, #win-guild .og-em-undo, #win-guild .og-em-redo, #win-guild .og-em-del { --w: 27px; --h: 27px; }
#win-guild .og-em-pencil  { left: 59px;  top: 427px; --img: url(../assets/skin/default/Btn_drawpoint_1.png); }
#win-guild .og-em-line    { left: 87px;  top: 427px; --img: url(../assets/skin/default/Btn_drawLine_1.png); }
#win-guild .og-em-rect    { left: 115px; top: 427px; --img: url(../assets/skin/default/Btn_drawsquare_1.png); }
#win-guild .og-em-ellipse { left: 143px; top: 427px; --img: url(../assets/skin/default/Btn_darwcircle_1.png); }
#win-guild .og-em-fill    { left: 59px;  top: 455px; --img: url(../assets/skin/default/btn_fillColor_1.png); }
#win-guild .og-em-undo    { left: 87px;  top: 455px; --img: url(../assets/skin/default/Btn_Updo_1.png); }
#win-guild .og-em-redo    { left: 115px; top: 455px; --img: url(../assets/skin/default/Btn_Redo_1.png); }
#win-guild .og-em-del     { left: 143px; top: 455px; --img: url(../assets/skin/default/Btn_Delete_2.png); }
/* the palette Icon_mixpaints_1 (181, 436); the chosen swatch's frame (left / top by the script) */
#win-guild .og-em-palette { left: 181px; top: 436px; width: 127px; height: 37px; background: url(../assets/skin/default/Icon_mixpaints_1.png) 0 0 no-repeat; }
#win-guild .og-em-pick { width: 18px; height: 18px; box-sizing: border-box; border: 2px solid #ffff00; pointer-events: none !important; }

/* ══ 留言 (TOrgNoticeForm, paint 0x21afd4) ════════════════════════════════════════════════════════════ */

/* a row (the first; the others 65 px lower): author (155, 95), date (245, 95), title (95, 132), all yellow 0xFFE0 */
#win-guild .og-nauthor { left: 155px; top: 95px; width: 88px; color: #ffff00; }
#win-guild .og-ndate   { left: 245px; top: 95px; width: 88px; color: #ffff00; }
#win-guild .og-ntitle  { left: 95px; top: 132px; width: 238px; color: #ffff00; }
/* the pointer over the green box (93, 91) 241 wide: #9EFAFE at 80 / 255 */
#win-guild .og-nhover { left: 93px; top: 91px; width: 241px; height: 60px; }
#win-guild .og-nhover:hover { background: rgba(158, 250, 254, 0.314); }
/* 「cur / max」 in blue 0x001F at y 430 (left by the script), Btn_ArrowL_5 / R_5 (135 / 220, 430), 新增 / 更新 */
#win-guild .og-npage { top: 430px; color: #0000ff; }
#win-guild .og-nprev   { left: 135px; top: 430px; --img: url(../assets/skin/default/Btn_ArrowL_5.png); --w: 17px; --h: 17px; }
#win-guild .og-nnext   { left: 220px; top: 430px; --img: url(../assets/skin/default/Btn_ArrowR_5.png); --w: 17px; --h: 17px; }
#win-guild .og-nadd    { left: 100px; top: 460px; --img: url(../assets/skin/default/Btn_AddNew_1.png); --w: 56px; --h: 20px; }
#win-guild .og-nupdate { left: 215px; top: 460px; --img: url(../assets/skin/default/Btn_Updata_1.png); --w: 56px; --h: 20px; }

/* ══ 我的權限 / 權限開放 (239 × 345; their pictures hold 組織權限 and the three empty boxes) ═══════════════════ */

#win-guild-myauth, #win-guild-setauth { --fw: 239px; --fh: 345px; --cx: 190px; --cy: 24px; }
#win-guild-myauth  { --fbg: url(../assets/skin/white/Form_MYauthority_1.png); }
#win-guild-setauth { --fbg: url(../assets/skin/white/Form_setauthority_1.png); }
/* the name: TSe_Editor (20, 40) 90 × 40 */
#win-guild-myauth .oa-name, #win-guild-setauth .oa-name { left: 25px; top: 52px; width: 160px; height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; color: #080808; text-shadow: 1px 0 0 #080808; pointer-events: none; }
/* 我的權限: icon_check_1 ticks at (35, 99 / 119 / 139) (top by the script); 關閉 (90, 310) */
#win-guild-myauth .oa-tick { left: 35px; width: 15px; height: 15px; background: url(../assets/skin/default/icon_check_1.png) 0 0 no-repeat; pointer-events: none; }
#win-guild-myauth .oa-close { left: 90px; top: 310px; }
/* 權限開放: btn_UnCheck_1 / btn_Check_1 boxes at x 35 (top by the script); 確定 (40, 310), 關閉 (110, 310) */
#win-guild-setauth .oa-box { left: 35px; --img: url(../assets/skin/default/btn_UnCheck_1.png); --w: 16px; --h: 16px; }
#win-guild-setauth .oa-box.on { --img: url(../assets/skin/default/btn_Check_1.png); }
#win-guild-setauth .oa-ok    { left: 40px;  top: 310px; --img: url(../assets/skin/default/btn_ok_1.png); --w: 56px; --h: 20px; }
#win-guild-setauth .oa-close { left: 110px; top: 310px; }

/* ══ 修改規章 (Form_EditRule_1 347 × 415, 0x313cec) ═════════════════════════════════════════════════════ */

#win-guild-rules { --fw: 347px; --fh: 415px; --fbg: url(../assets/skin/white/Form_EditRule_1.png); --cx: 297px; --cy: 24px; }
/* the memo (4, 4) in its panel (25, 59): 270 wide, white, 20 px lines; the arrows (300, 59 / 350), the thumb in (301, 80) */
#win-guild-rules .or-text { left: 29px; top: 63px; width: 270px; height: 300px; padding: 0; margin: 0; resize: none; overflow-y: scroll;
  scrollbar-width: none; line-height: 20px; color: #ffffff; background: transparent; border: 0; outline: 0; }
#win-guild-rules .or-text::-webkit-scrollbar { display: none; }
#win-guild-rules .or-up    { left: 300px; top: 59px;  --img: url(../assets/skin/default/Btn_ArrowUp_1.png); --w: 17px; --h: 17px; }
#win-guild-rules .or-down  { left: 300px; top: 350px; --img: url(../assets/skin/default/Btn_ArrowDn_1.png); --w: 17px; --h: 17px; }
#win-guild-rules .or-thumb { left: 304px; width: 9px; pointer-events: none; }
#win-guild-rules .or-ok     { left: 122px; top: 378px; --img: url(../assets/skin/default/Btn_OK_2.png);     --w: 39px; --h: 20px; }
#win-guild-rules .or-cancel { left: 185px; top: 378px; --img: url(../assets/skin/default/Btn_Cancel_3.png); --w: 39px; --h: 20px; }
